Table of Contents

Method FindNode

Namespace
Alternet.Syntax
Assembly
Alternet.Syntax.v9.dll

FindNode(string)

Finds child node by its name.

public virtual ISyntaxNode FindNode(string name)

Parameters

name string

Specifies 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 int

Specifies 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 ISyntaxNode

Specifies node to locate.

comparer IComparer<ISyntaxNode>

Specifies method that compares nodes in the sorted child collection.

Returns

ISyntaxNode

ISyntaxNode that is located.