In This Article

AstNodeMatch Class

Represents an IAstNode match made within the current IAstNodeBuilder scope.

public class AstNodeMatch : IAstNodeMatch
Inheritance:
object object
Implements:
IAstNodeMatch

Constructors

AstNodeMatch(IAstNode)

Represents an IAstNode match made within the current IAstNodeBuilder scope.

public AstNodeMatch(IAstNode node)
Parameter Type Description
node IAstNode

The IAstNode that was matched.

AstNodeMatch(IAstNode, string?)

Initializes an instance of the class.

public AstNodeMatch(IAstNode node, string? label)
Parameter Type Description
node IAstNode

The IAstNode that was matched.

label string

The optional label applied to the match that can be used for identification during tree construction.

Properties

Label

The optional label applied to the match that can be used for identification during tree construction.

public string? Label { get; set; }

Property Value

string

Node

The IAstNode that was matched.

public IAstNode Node { get; }

Property Value

IAstNode

Methods

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods