Property | Type | Description | |
---|---|---|---|
_children | TextRangeCollection |
Method | Description | |
---|---|---|
Accept ( Func |
||
Accept ( IAstVisitor visitor, object parameter ) : bool | ||
AppendChild ( IAstNode child ) : void | ||
Contains ( int position ) : bool | ||
GetElementsEnclosingRange ( int start, int length, IAstNode &startNode, PositionType &startPositionType, IAstNode &endNode, PositionType &endPositionType ) : IAstNode |
Finds two nodes that surround given text range
|
|
GetPositionNode ( int position, IAstNode &node ) : PositionType |
Determines position type and the enclosing node for a given position in the document text.
|
|
NodeFromPosition ( int position ) : IAstNode |
Finds deepest node that contains given position
|
|
NodeFromRange ( ITextRange range, bool inclusiveEnd = false ) : IAstNode |
Finds deepest node that fully encloses given range
|
|
Parse ( |
||
RemoveChildren ( int start, int count ) : void | ||
Shift ( int offset ) : void | ||
ShiftStartingFrom ( int position, int offset ) : void |
public Accept ( Func |
||
visitor | Func |
|
parameter | object | |
return | bool |
public Accept ( IAstVisitor visitor, object parameter ) : bool | ||
visitor | IAstVisitor | |
parameter | object | |
return | bool |
public GetElementsEnclosingRange ( int start, int length, IAstNode &startNode, PositionType &startPositionType, IAstNode &endNode, PositionType &endPositionType ) : IAstNode | ||
start | int | Range start |
length | int | Range length |
startNode | IAstNode | Node that precedes the range or null if there is none |
startPositionType | PositionType | Type of position in the start node |
endNode | IAstNode | Node that follows the range or null if there is none |
endPositionType | PositionType | Type of position in the end node |
return | IAstNode |
public GetPositionNode ( int position, IAstNode &node ) : PositionType | ||
position | int | Position in the document text |
node | IAstNode | Node that contains position |
return | PositionType |
public NodeFromPosition ( int position ) : IAstNode | ||
position | int | Position |
return | IAstNode |
public NodeFromRange ( ITextRange range, bool inclusiveEnd = false ) : IAstNode | ||
range | ITextRange | |
inclusiveEnd | bool | |
return | IAstNode |
public Parse ( |
||
context | ||
parent | IAstNode | |
return | bool |
public RemoveChildren ( int start, int count ) : void | ||
start | int | |
count | int | |
return | void |
public ShiftStartingFrom ( int position, int offset ) : void | ||
position | int | |
offset | int | |
return | void |