public override void CaseAFuncDecl(AFuncDecl node)
 {
     // find the scope of the func decl, and make it the
     // current scope.
     mEnv.CurrentScope = mEnv.CurrentScope.GetScope(node);
     mOutputFile.Add(new Label(node.GetName().Text));
     base.CaseAFuncDecl(node);
 }
Exemple #2
0
 public FunctionShell(AFuncDecl decl)
 {
     ReturnType = TypeEnvironment.GetTypename(decl.GetType());
     Name       = decl.GetName().ToString();
 }