Method | Description | |
---|---|---|
AstRoot ( ITextProvider textProvider ) : System.Collections.Generic | ||
AstRoot ( ITextProvider textProvider, ICodeEvaluator codeEvaluator ) : System.Collections.Generic | ||
Contains ( int position ) : bool | ||
NodeFromPosition ( int position ) : IAstNode |
Finds deepest element node that contains given position
|
|
NodeFromRange ( ITextRange range, bool inclusiveEnd = false ) : IAstNode |
Finds deepest element node that contains given position
|
|
Parse ( |
||
ReflectTextChange ( int start, int oldLength, int newLength, ITextProvider newText ) : void |
Updates positions of nodes in the tree reflecting changes made to the source text buffer.
|
|
ReflectTextChanges ( IReadOnlyCollection |
Updates positions of nodes in the tree reflecting multiple changes made to the source text buffer.
|
|
WriteTree ( ) : string |
public AstRoot ( ITextProvider textProvider ) : System.Collections.Generic | ||
textProvider | ITextProvider | |
return | System.Collections.Generic |
public AstRoot ( ITextProvider textProvider, ICodeEvaluator codeEvaluator ) : System.Collections.Generic | ||
textProvider | ITextProvider | |
codeEvaluator | ICodeEvaluator | |
return | System.Collections.Generic |
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 ReflectTextChange ( int start, int oldLength, int newLength, ITextProvider newText ) : void | ||
start | int | Start position of the change |
oldLength | int | Length of changed fragment before the change |
newLength | int | Length of changed fragment after the change |
newText | ITextProvider | Complete new text snapshot |
return | void |
public ReflectTextChanges ( IReadOnlyCollection |
||
textChanges | IReadOnlyCollection |
|
newText | ITextProvider | |
return | void |