Exemplo n.º 1
0
 @Override
 public void visit(Tree.MethodArgument that) {
   if (that.getDeclarationModel() == declaration) {
     declare();
     specify();
   }
   super.visit(that);
 }
Exemplo n.º 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(")");
 }