/**
  * Visit a method node
  *
  * @param node the method node
  * @return result of the visit
  */
 public Object visit(Method node) {
   this.currMethodName = node.getName();
   this.numLocalVars.put(this.currKey(), new Integer(0));
   return super.visit(node);
 }
Beispiel #2
0
 public Object visit(Method node) {
   return layoutBinary(
       "Method " + node.getName() + ":" + node.getReturnType(),
       node.getFormalList(),
       node.getStmtList());
 }