declareVariableWithValue method
Declares a variable of type
and name
with an optional value
in this context.
Implementation
bool declareVariableWithValue(ASTType type, String name, ASTValue? value) {
value ??= ASTValueNull.instance;
var variable = ASTRuntimeVariable(type, name, value);
return declareVariable(variable);
}