Examples of ForeachStatementGoal


Examples of org.eclipse.php.internal.core.typeinference.goals.ForeachStatementGoal

          } else if (decl.getNode() instanceof GlobalStatement) {
            mergeWithGlobalScope = true;
          } else {
            ASTNode declNode = decl.getNode();
            if (declNode instanceof ForEachStatement) {
              subGoals.add(new ForeachStatementGoal(context,
                  ((ForEachStatement) declNode)
                      .getExpression()));
            } else {
              subGoals.add(new ExpressionTypeGoal(context,
                  declNode));
View Full Code Here

Examples of org.eclipse.php.internal.core.typeinference.goals.ForeachStatementGoal

  public ForeachStatementEvaluator(IGoal goal) {
    super(goal);
  }

  public IGoal[] init() {
    ForeachStatementGoal typedGoal = (ForeachStatementGoal) goal;
    return new IGoal[] { new IteratorTypeGoal(goal.getContext(),
        typedGoal.getExpression()) };
  }
View Full Code Here

Examples of org.eclipse.php.internal.core.typeinference.goals.ForeachStatementGoal

            subGoals.add(new ArrayDeclarationGoal(context,
                arrayDeclaration));
          } else {
            ASTNode declNode = decl.getNode();
            if (declNode instanceof ForEachStatement) {
              subGoals.add(new ForeachStatementGoal(context,
                  ((ForEachStatement) declNode)
                      .getExpression()));
            } else {
              subGoals.add(new ExpressionTypeGoal(context,
                  declNode));
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.