LangFunc class

Represents a function definition in the Balbismo language.

A LangFunc encapsulates both the function name and its AST declaration node. This is used by the symbol table to track function definitions and enable function calls during compilation.

Example usage:

final func = LangFunc("addNumbers", funcDeclarationNode);

Constructors

LangFunc.new(String name, FuncDec funcDec)
Constructs a language function with the specified name and declaration.

Properties

funcDec FuncDec
The AST declaration node containing the function's implementation details.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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