AstNodeLinks

class AstNodeLinks(var parent: AstNode? = null, var firstChild: AstNode? = null, var lastChild: AstNode? = null, var previous: AstNode? = null, var next: AstNode? = null)

All the pointers that can exist for a node in an AST.

Links are mutable to make it possible to instantiate a Node which can then reconfigure its children and siblings. Please do not modify the links after an ASTNode is created and the scope is finished.

Constructors

Link copied to clipboard
constructor(parent: AstNode? = null, firstChild: AstNode? = null, lastChild: AstNode? = null, previous: AstNode? = null, next: AstNode? = null)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Stop infinite loop and only calculate towards bottom-right direction

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard