visitFunctionDeclaration method
Implementation
@override
bool visitFunctionDeclaration(FunctionDeclaration node) {
if (node.function.name != null) {
_interpreter.addToContext(node.function.name!, true);
}
// Get the function's context and push it onto the stack
Context functionContext =
_interpreter.contexts[node.function] ?? SimpleContext({});
pushContext(functionContext);
visit(node.function.body);
popContext();
return true;
}