Examples of ForeachLoop


Examples of com.google.caja.parser.js.ForEachLoop

    } else if (grandparent.node instanceof ExpressionStmt
               && grandparent.parent != null
               && grandparent.parent.node instanceof ForEachLoop) {
      // Handle
      //    for (k in obj) { ... }
      ForEachLoop loop = grandparent.parent.cast(ForEachLoop.class).node;
      if (grandparent.node == loop.getKeyReceiver()) { return Operator.ASSIGN; }
    }
    return null;
  }
View Full Code Here

Examples of com.google.caja.parser.js.ForEachLoop

    } else if (grandparent.node instanceof ExpressionStmt
               && grandparent.parent != null
               && grandparent.parent.node instanceof ForEachLoop) {
      // Handle
      //    for (k in obj) { ... }
      ForEachLoop loop = grandparent.parent.cast(ForEachLoop.class).node;
      if (grandparent.node == loop.getKeyReceiver()) { return Operator.ASSIGN; }
    }
    return null;
  }
View Full Code Here

Examples of jadx.core.dex.regions.loops.ForEachLoop

        wrapArg.getParentInsn().replaceArg(wrapArg, iterVar);
      } else {
        LOG.debug(" checkArrayForEach: Wrapped insn not found: {}, mth: {}", arrGetInsn, mth);
      }
    }
    return new ForEachLoop(iterVar, len.getArg(0));
  }
View Full Code Here

Examples of jadx.core.dex.regions.loops.ForEachLoop

    assignInsn.add(AFlag.SKIP);
    for (InsnNode insnNode : toSkip) {
      insnNode.add(AFlag.SKIP);
    }
    loopRegion.setType(new ForEachLoop(iterVar, iterableArg));
    return true;
  }
View Full Code Here

Examples of jadx.core.dex.regions.loops.ForEachLoop

        makeRegionIndent(code, region.getBody());
        code.startLine('}');
        return code;
      }
      if (type instanceof ForEachLoop) {
        ForEachLoop forEachLoop = (ForEachLoop) type;
        code.startLine("for (");
        declareVar(code, forEachLoop.getVarArg());
        code.add(" : ");
        addArg(code, forEachLoop.getIterableArg(), false);
        code.add(") {");
        makeRegionIndent(code, region.getBody());
        code.startLine('}');
        return code;
      }
View Full Code Here

Examples of org.jboss.errai.codegen.control.ForeachLoop

      public void doDeferred(CallWriter writer, Context context, Statement statement) {
          GenUtil.assertIsIterable(statement);
          final Variable loopVar = createForEachLoopVar(statement, loopVarName, loopVarType, context);
          final String collection = writer.getCallString();
          writer.reset();
          writer.append(new ForeachLoop(loopVar, collection, body).generate(Context.create(context)));
      }
    }));

    return createLoopBody(body);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.ForeachLoop

      public void doDeferred(CallWriter writer, Context context, Statement statement) {
          GenUtil.assertIsIterable(statement);
          Variable loopVar = createForEachLoopVar(statement, loopVarName, loopVarType, context);
          String collection = writer.getCallString();
          writer.reset();
          writer.append(new ForeachLoop(loopVar, collection, body).generate(Context.create(context)));
      }
    }));

    return createLoopBody(body);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.ForeachLoop

      public void doDeferred(CallWriter writer, Context context, Statement statement) {
          GenUtil.assertIsIterable(statement);
          Variable loopVar = createForEachLoopVar(statement, loopVarName, loopVarType);
          String collection = writer.getCallString();
          writer.reset();
          writer.append(new ForeachLoop(loopVar, collection, body).generate(Context.create(context)));
      }
    }));

    return createLoopBody(body);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.ForeachLoop

      public void doDeferred(CallWriter writer, Context context, Statement statement) {
          GenUtil.assertIsIterable(statement);
          Variable loopVar = createForEachLoopVar(statement, loopVarName, loopVarType, context);
          String collection = writer.getCallString();
          writer.reset();
          writer.append(new ForeachLoop(loopVar, collection, body).generate(Context.create(context)));
      }
    }));

    return createLoopBody(body);
  }
View Full Code Here

Examples of org.jboss.errai.codegen.control.ForeachLoop

      public void doDeferred(CallWriter writer, Context context, Statement statement) {
          GenUtil.assertIsIterable(statement);
          final Variable loopVar = createForEachLoopVar(statement, loopVarName, loopVarType, context);
          final String collection = writer.getCallString();
          writer.reset();
          writer.append(new ForeachLoop(loopVar, collection, body).generate(Context.create(context)));
      }
    }));

    return createLoopBody(body);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.