Stmt class abstract

Base class for all statement nodes in the Abstract Syntax Tree (AST).

Statements represent actions or control flow constructs (e.g., assignment, function definition, loops, conditionals). They typically do not produce values directly. All statement nodes must implement the accept method for the Visitor pattern.

Constructors

Stmt(Token startToken)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startToken → Token
Accepts a StmtVisitor and calls the appropriate visit method based on the concrete type of this statement node. Returns the result produced by the visitor's method (often void).
final

Methods

accept<R>(StmtVisitor<R> visitor) → R
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited