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

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

Защищенные свойства (Protected)

Свойство Тип Описание
_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