Examples of ForeachStatement


Examples of anvil.script.statements.ForeachStatement

      stmt.onWhile((Expression)pop());
    flowPop();
  }

  final public void ForeachStatement(String label) throws ParseException {
  ForeachStatement foreach = null;
    foreach = ForeachStatementHeader(flowPeek(), label);
    flowPushChild(foreach);
    Statement();
    flowPop();
  }
View Full Code Here

Examples of anvil.script.statements.ForeachStatement

          index = null;
        }
        break;
      case 3:
      }
      {if (true) return new ForeachStatement(parent, toLocation(t), index, key, value, expr, label);}
    throw new Error("Missing return statement in function");
  }
View Full Code Here

Examples of com.google.dart.engine.ast.ForEachStatement

  public Void visitDeclaredIdentifier(DeclaredIdentifier node) {
    SimpleIdentifier variableName = node.getIdentifier();
    Token keyword = node.getKeyword();

    LocalVariableElementImpl element = new LocalVariableElementImpl(variableName);
    ForEachStatement statement = (ForEachStatement) node.getParent();
    int declarationEnd = node.getOffset() + node.getLength();
    int statementEnd = statement.getOffset() + statement.getLength();
    element.setVisibleRange(declarationEnd, statementEnd - declarationEnd - 1);
    element.setConst(matches(keyword, Keyword.CONST));
    element.setFinal(matches(keyword, Keyword.FINAL));

    currentHolder.addLocalVariable(element);
View Full Code Here

Examples of com.google.dart.engine.ast.ForEachStatement

        iterableSpec.length(),
        iterableOffset);
    // resolve as: for (name in iterable) {}
    DeclaredIdentifier loopVariable = new DeclaredIdentifier(null, null, null, null, varName);
    Block loopBody = new Block(null, new ArrayList<Statement>(), null);
    ForEachStatement loopStatement = new ForEachStatement(
        null,
        null,
        null,
        loopVariable,
        null,
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ForeachStatement

  //statements
  this.astLengthPtr--;
  Statement statement = (Statement) this.astStack[this.astPtr--];

  // foreach statement is on the ast stack
  ForeachStatement foreachStatement = (ForeachStatement) this.astStack[this.astPtr];
  foreachStatement.action = statement;
  // remember useful empty statement
  if (statement instanceof EmptyStatement) statement.bits |= ASTNode.IsUsefulEmptyStatement;

  foreachStatement.sourceEnd = this.endStatementPosition;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ForeachStatement

  foreachStatement.sourceEnd = this.endStatementPosition;
}
protected void consumeEnhancedForStatementHeader(){
  // EnhancedForStatementHeader ::= EnhancedForStatementHeaderInit ':' Expression ')'
  final ForeachStatement statement = (ForeachStatement) this.astStack[this.astPtr];
  //updates are on the expression stack
  this.expressionLengthPtr--;
  final Expression collection = this.expressionStack[this.expressionPtr--];
  statement.collection = collection;
  // https://bugs.eclipse.org/393719 - [compiler] inconsistent warnings on iteration variables
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ForeachStatement

    localDeclaration.declarationSourceStart = type.sourceStart;
  }
  localDeclaration.type = type;
  localDeclaration.bits |= (type.bits & ASTNode.HasTypeAnnotations);

  ForeachStatement iteratorForStatement =
    new ForeachStatement(
      localDeclaration,
      this.intStack[this.intPtr--]);
  pushOnAstStack(iteratorForStatement);

  iteratorForStatement.sourceEnd = localDeclaration.declarationSourceEnd;
View Full Code Here

Examples of org.neo4j.cypherdsl.grammar.ForEachStatement

    }

    @Override
    public ForEachStatement create( PathExpression... paths )
    {
        return new ForEachStatement( add( new CreateClause( Arrays.asList( paths ) ) ) );
    }
View Full Code Here

Examples of org.neo4j.cypherdsl.grammar.ForEachStatement

    }

    @Override
    public ForEachStatement create( Iterable<PathExpression> paths )
    {
        return new ForEachStatement( add( new CreateClause( paths ) ) );
    }
View Full Code Here

Examples of org.neo4j.cypherdsl.grammar.ForEachStatement

    }

    @Override
    public ForEachStatement set( SetProperty... setProperties )
    {
        return new ForEachStatement( add( new SetClause( Arrays.asList( setProperties ) ) ) );
    }
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.