Examples of ArrayVariableReference


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

      s.getDispatcher().traverse(this);
      operations.pop();
    }
    if (s.getField() != null) {
      if (s.getField() instanceof ArrayVariableReference) {
        ArrayVariableReference ref = (ArrayVariableReference) s.getField();
        if (ref.getIndex() != null) {
          operations.push(Operation.USE);
          ref.getIndex().traverse(this);
          operations.pop();
        }
      } else if (!(s.getField() instanceof VariableReference)) {
        s.getField().traverse(this);
      }
View Full Code Here

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

      arrayType = ArrayVariableReference.VARIABLE_HASHTABLE;
    }
    if (!"".equals(start)) { //$NON-NLS-1$
      int startIndex = variableName.indexOf(start);
      String name = variableName.substring(0, startIndex);
      return new ArrayVariableReference(position, position
          + variableName.length(), name, null, arrayType);
    }
    return new VariableReference(position,
        position + variableName.length(), variableName);
  }
View Full Code Here

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

    super(goal);
  }

  public IGoal[] init() {
    ExpressionTypeGoal typedGoal = (ExpressionTypeGoal) goal;
    ArrayVariableReference reference = (ArrayVariableReference) typedGoal
        .getExpression();
    return new IGoal[] { new ExpressionTypeGoal(goal.getContext(),
        new VariableReference(reference.sourceStart(),
            reference.sourceEnd(), reference.getName())) };
  }
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.