C# Класс Microsoft.R.Core.AST.AstRoot

Наследование: AstNode
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

AstRoot() публичный Метод

public AstRoot ( ITextProvider textProvider ) : System.Collections.Generic
textProvider ITextProvider
Результат System.Collections.Generic

AstRoot() публичный Метод

public AstRoot ( ITextProvider textProvider, ICodeEvaluator codeEvaluator ) : System.Collections.Generic
textProvider ITextProvider
codeEvaluator ICodeEvaluator
Результат System.Collections.Generic

Contains() публичный Метод

public Contains ( int position ) : bool
position int
Результат bool

NodeFromPosition() публичный Метод

Finds deepest element node that contains given position
public NodeFromPosition ( int position ) : IAstNode
position int Position
Результат IAstNode

NodeFromRange() публичный Метод

Finds deepest element node that contains given position
public NodeFromRange ( ITextRange range, bool inclusiveEnd = false ) : IAstNode
range ITextRange
inclusiveEnd bool
Результат IAstNode

Parse() публичный Метод

public Parse ( ParseContext context, IAstNode parent ) : bool
context Microsoft.R.Core.Parser.ParseContext
parent IAstNode
Результат bool

ReflectTextChange() публичный Метод

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
Результат void

ReflectTextChanges() публичный Метод

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
Результат void

WriteTree() публичный Метод

public WriteTree ( ) : string
Результат string