Method FindNode
FindNode(string)
Finds child node by its name.
public virtual ISyntaxNode FindNode(string name)
Parameters
name
stringSpecifies name of node.
Returns
- ISyntaxNode
First occurrence of
ISyntaxNode
with specified name.
FindNode(int)
Finds child node by its type.
public virtual ISyntaxNode FindNode(int nodeType)
Parameters
nodeType
intSpecifies type of node.
Returns
- ISyntaxNode
First occurrence of
ISyntaxNode
with specified type.
FindNode(ISyntaxNode, IComparer<ISyntaxNode>)
Finds child node by comparing nodes with the given object.
public virtual ISyntaxNode FindNode(ISyntaxNode node, IComparer<ISyntaxNode> comparer)
Parameters
node
ISyntaxNodeSpecifies node to locate.
comparer
IComparer<ISyntaxNode>Specifies method that compares nodes in the sorted child collection.
Returns
- ISyntaxNode
ISyntaxNode
that is located.