C# Class Microsoft.R.Core.AST.AstRoot

Inheritance: AstNode
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Méthodes publiques

Méthode 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 ( ParseContext context, IAstNode parent ) : bool
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 textChanges, ITextProvider newText ) : void

Updates positions of nodes in the tree reflecting multiple changes made to the source text buffer.

WriteTree ( ) : string

Method Details

AstRoot() public méthode

public AstRoot ( ITextProvider textProvider ) : System.Collections.Generic
textProvider ITextProvider
Résultat System.Collections.Generic

AstRoot() public méthode

public AstRoot ( ITextProvider textProvider, ICodeEvaluator codeEvaluator ) : System.Collections.Generic
textProvider ITextProvider
codeEvaluator ICodeEvaluator
Résultat System.Collections.Generic

Contains() public méthode

public Contains ( int position ) : bool
position int
Résultat bool

NodeFromPosition() public méthode

Finds deepest element node that contains given position
public NodeFromPosition ( int position ) : IAstNode
position int Position
Résultat IAstNode

NodeFromRange() public méthode

Finds deepest element node that contains given position
public NodeFromRange ( ITextRange range, bool inclusiveEnd = false ) : IAstNode
range ITextRange
inclusiveEnd bool
Résultat IAstNode

Parse() public méthode

public Parse ( ParseContext context, IAstNode parent ) : bool
context Microsoft.R.Core.Parser.ParseContext
parent IAstNode
Résultat bool

ReflectTextChange() public méthode

Updates positions of nodes in the tree reflecting changes made to the source text buffer.
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
Résultat void

ReflectTextChanges() public méthode

Updates positions of nodes in the tree reflecting multiple changes made to the source text buffer.
public ReflectTextChanges ( IReadOnlyCollection textChanges, ITextProvider newText ) : void
textChanges IReadOnlyCollection
newText ITextProvider
Résultat void

WriteTree() public méthode

public WriteTree ( ) : string
Résultat string