C# 클래스 Microsoft.R.Core.AST.AstRoot

상속: AstNode
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
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