Package org.eclipse.php.internal.core.typeinference.goals

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


  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

            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

Related Classes of org.eclipse.php.internal.core.typeinference.goals.ForeachStatementGoal

Copyright © 2018 www.massapicom. 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.