@Override
 public void visit(Tree.MethodArgument that) {
   if (that.getDeclarationModel() == declaration) {
     declare();
     specify();
   }
   super.visit(that);
 }
Beispiel #2
0
 static void methodArgument(final Tree.MethodArgument that, final GenerateJsVisitor gen) {
   gen.out("(");
   if (that.getBlock() == null) {
     singleExprFunction(
         that.getParameterLists(),
         that.getSpecifierExpression().getExpression(),
         that.getScope(),
         false,
         true,
         gen);
   } else {
     multiStmtFunction(that.getParameterLists(), that.getBlock(), that.getScope(), false, gen);
   }
   gen.out(")");
 }