Package org.eclipse.dltk.ast.references

Examples of org.eclipse.dltk.ast.references.VariableReference.sourceStart()


  @Override
  public boolean visit(Expression expression) throws Exception {
    if (expression instanceof VariableReference) {
      VariableReference varRef = (VariableReference) expression;
      this.fRequestor.acceptFieldReference(varRef.getName(), varRef.sourceStart());
    }
    return super.visit(expression);
  }

  private void processPackage(Statement statement) {
View Full Code Here


  @Override
  public boolean visit(Expression expression) throws Exception {
    if (expression instanceof VariableReference) {
      VariableReference varRef = (VariableReference) expression;
      this.fRequestor.acceptFieldReference(varRef.getName(), varRef.sourceStart());
    }
    return super.visit(expression);
  }

  private void processPackage(Statement statement) {
View Full Code Here

            methodContext.getSourceModule()) {
          @Override
          public boolean visit(Expression s) throws Exception {
            if (s instanceof LambdaFunctionDeclaration) {
              LambdaFunctionDeclaration lambda = (LambdaFunctionDeclaration) s;
              if (variableReference.sourceStart() > lambda
                  .sourceStart()
                  && variableReference.sourceEnd() < lambda
                      .sourceEnd()) {
                lambdas[0] = lambda;
              }
View Full Code Here

          public int compare(VarComment o1, VarComment o2) {
            return o2.sourceStart() - o1.sourceStart();
          }
        });
        for (VarComment varComment : newList) {
          if (varComment.sourceStart() > variableReference
              .sourceStart()) {
            continue;
          }
          if (varComment.getVariableReference().getName()
              .equals(variableReference.getName())) {
View Full Code Here

          public int compare(PHPDocBlock o1, PHPDocBlock o2) {
            return o1.sourceStart() - o1.sourceStart();
          }
        });
        for (PHPDocBlock block : docBlocks) {
          if (block.sourceStart() > variableReference.sourceStart()
              || localScopeNode.sourceStart() > block
                  .sourceStart()) {
            continue;
          }
View Full Code Here

        locator.match(decl, getNodeSet());
      }
    } else if (node instanceof CatchClause) {
      VariableReference ref = ((CatchClause) node).getVariable();
      FieldDeclaration decl = new FieldDeclarationLocation(ref.getName(),
          ref.sourceStart(), ref.sourceEnd(), node.sourceStart(),
          node.sourceEnd());
      locator.match(decl, getNodeSet());
    }
  }
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.