Package org.eclipse.php.internal.core.compiler.ast.nodes

Examples of org.eclipse.php.internal.core.compiler.ast.nodes.ConditionalExpression


    return null;
  }

  public IGoal[] init() {
    ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal;
    ConditionalExpression conditionalExpression = (ConditionalExpression) typedGoal
        .getExpression();
    // https://bugs.eclipse.org/bugs/show_bug.cgi?id=339405
    List<IGoal> result = new ArrayList<IGoal>();
    if (conditionalExpression.getIfTrue() != null) {
      result.add(new ExpressionTypeGoal(goal.getContext(),
          conditionalExpression.getIfTrue()));
    }
    if (conditionalExpression.getIfFalse() != null) {
      result.add(new ExpressionTypeGoal(goal.getContext(),
          conditionalExpression.getIfFalse()));
    }
    return result.toArray(new IGoal[result.size()]);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.core.compiler.ast.nodes.ConditionalExpression

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.