FuncDec constructor
- TypeNode returnType,
- IdentifierNode identifier,
- ParameterList params,
- BlockNode block,
Constructs a function declaration with all its components.
Parameters:
returnType: The function's return type (int, float, or void)identifier: The function nameparams: The parameter listblock: The function body block
Implementation
FuncDec(TypeNode returnType, IdentifierNode identifier,ParameterList params, BlockNode block)
: super(null, [returnType, identifier, params, block]);