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

상속: IAstNode
파일 보기 프로젝트 열기: Microsoft/RTVS

보호된 프로퍼티들

프로퍼티 타입 설명
_children TextRangeCollection

공개 메소드들

메소드 설명
Accept ( Func visitor, object parameter ) : bool
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 ( ParseContext context, IAstNode parent = null ) : bool
RemoveChildren ( int start, int count ) : void
Shift ( int offset ) : void
ShiftStartingFrom ( int position, int offset ) : void

메소드 상세

Accept() 공개 메소드

public Accept ( Func visitor, object parameter ) : bool
visitor Func
parameter object
리턴 bool

Accept() 공개 메소드

public Accept ( IAstVisitor visitor, object parameter ) : bool
visitor IAstVisitor
parameter object
리턴 bool

AppendChild() 공개 메소드

public AppendChild ( IAstNode child ) : void
child IAstNode
리턴 void

Contains() 공개 메소드

public Contains ( int position ) : bool
position int
리턴 bool

GetElementsEnclosingRange() 공개 메소드

Finds two nodes that surround given text range
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
리턴 IAstNode

GetPositionNode() 공개 메소드

Determines position type and the enclosing node for a given position in the document text.
public GetPositionNode ( int position, IAstNode &node ) : PositionType
position int Position in the document text
node IAstNode Node that contains position
리턴 PositionType

NodeFromPosition() 공개 메소드

Finds deepest node that contains given position
public NodeFromPosition ( int position ) : IAstNode
position int Position
리턴 IAstNode

NodeFromRange() 공개 메소드

Finds deepest node that fully encloses given range
public NodeFromRange ( ITextRange range, bool inclusiveEnd = false ) : IAstNode
range ITextRange
inclusiveEnd bool
리턴 IAstNode

Parse() 공개 메소드

public Parse ( ParseContext context, IAstNode parent = null ) : bool
context Microsoft.R.Core.Parser.ParseContext
parent IAstNode
리턴 bool

RemoveChildren() 공개 메소드

public RemoveChildren ( int start, int count ) : void
start int
count int
리턴 void

Shift() 공개 메소드

public Shift ( int offset ) : void
offset int
리턴 void

ShiftStartingFrom() 공개 메소드

public ShiftStartingFrom ( int position, int offset ) : void
position int
offset int
리턴 void

프로퍼티 상세

_children 보호되어 있는 프로퍼티

protected TextRangeCollection _children
리턴 TextRangeCollection