ParameterList class
Represents a list of function parameters in Balbismo.
A parameter list contains the formal parameters of a function declaration. Each parameter is represented as a DeclareNode that specifies the parameter's type and name. Parameter lists are used during function definition and call validation.
Example Balbismo code:
int add(int x, int y) { // 'int x, int y' is a ParameterList
return x + y;
}
Constructors
-
ParameterList.new(List<
DeclareNode> children) - Constructs a parameter list from declaration nodes.
Properties
-
children
→ List<
Node> -
Child nodes that form the structure of this node.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
Unique identifier for this node, used for LLVM register naming.
getter/setter pairinherited
- nodeValue → void
-
The primary value associated with this node (varies by node type).
finalinherited
-
params
→ List<
DeclareNode> -
Gets the list of parameter declarations.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
evaluate(
SymbolTable table) → void -
Evaluates this AST node and generates corresponding LLVM IR code.
inherited
-
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