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

Inheritance: IAstNode
Afficher le fichier Open project: Microsoft/RTVS

Protected Properties

Свойство Type Description
_children TextRangeCollection

Méthodes publiques

Méthode Description
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

Method Details

Accept() public méthode

public Accept ( Func visitor, object parameter ) : bool
visitor Func
parameter object
Résultat bool

Accept() public méthode

public Accept ( IAstVisitor visitor, object parameter ) : bool
visitor IAstVisitor
parameter object
Résultat bool

AppendChild() public méthode

public AppendChild ( IAstNode child ) : void
child IAstNode
Résultat void

Contains() public méthode

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

GetElementsEnclosingRange() public méthode

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
Résultat IAstNode

GetPositionNode() public méthode

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
Résultat PositionType

NodeFromPosition() public méthode

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

NodeFromRange() public méthode

Finds deepest node that fully encloses given range
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 = null ) : bool
context Microsoft.R.Core.Parser.ParseContext
parent IAstNode
Résultat bool

RemoveChildren() public méthode

public RemoveChildren ( int start, int count ) : void
start int
count int
Résultat void

Shift() public méthode

public Shift ( int offset ) : void
offset int
Résultat void

ShiftStartingFrom() public méthode

public ShiftStartingFrom ( int position, int offset ) : void
position int
offset int
Résultat void

Property Details

_children protected_oe property

protected TextRangeCollection _children
Résultat TextRangeCollection