visitFuncDecl method
void
visitFuncDecl(
- FuncDecl node
)
override
Implementation
@override
void visitFuncDecl(FuncDecl node) {
for (final param in node.genericTypeParameters) {
visitGenericTypeParamExpr(param);
}
node.returnType?.accept(this);
node.redirectingCtorCallExpr?.accept(this);
final savedCurrrentNamespace = _currentNamespace;
_currentNamespace = HTDeclarationNamespace(
lexicon: _lexicon, id: node.internalName, closure: _currentNamespace);
for (final param in node.paramDecls) {
visitParamDecl(param);
}
node.definition?.accept(this);
_currentNamespace = savedCurrrentNamespace;
}