Class AstNode
Base class for all AST nodes. Stores line number and provides an accept method for the visitor pattern.
Assembly: VM.dll
Syntax
public abstract class AstNode
Properties
Line
The line number in the source code where this node appears.
Declaration
public int Line { get; init; }
Property Value
Methods
Accept<T>(IAstVisitor<T>)
Accepts a visitor that returns a value.
Declaration
public abstract T Accept<T>(IAstVisitor<T> visitor)
Parameters
Returns
Type Parameters
ToString()
Returns a string representation of the AST node for debugging.
Declaration
public override abstract string ToString()
Returns
Overrides