Package org.eclipse.dltk.ast.references

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


      if (!name.startsWith(DOLOR)) {
        name = DOLOR + name;
      }
      modifyReference(access, new ReferenceInfo(IModelElement.FIELD,
          simpleReference.sourceStart(), simpleReference.sourceEnd()
              - simpleReference.sourceStart(), name, null, null));
    }

    return visitGeneral(access);
  }
View Full Code Here


          && "$this".equals(((VariableReference) dispatcher).getName())) { //$NON-NLS-1$
        Expression field = fieldAccess.getField();
        if (field instanceof SimpleReference) {
          SimpleReference var = (SimpleReference) field;
          int modifiers = Modifiers.AccPublic;
          int offset = var.sourceStart();
          int length = var.sourceEnd() - offset;
          modifyDeclaration(assignment, new DeclarationInfo(
              IModelElement.FIELD, modifiers, offset, length,
              offset, length, '$' + var.getName(), null, null,
              fCurrentQualifier, fCurrentParent));
View Full Code Here

    } else if (node instanceof FieldAccess) {
      Expression field = ((FieldAccess) node).getField();
      if (field instanceof SimpleReference) {
        SimpleReference ref = (SimpleReference) field;
        SimpleReferenceLocation refLoc = new SimpleReferenceLocation(
            ref.sourceStart(), ref.sourceEnd(), '$' + ref.getName());
        locator.match(refLoc, getNodeSet());
      }
    } else if (node instanceof StaticFieldAccess) {
      Expression field = ((StaticFieldAccess) node).getField();
      if (field instanceof SimpleReference) {
View Full Code Here

    } else if (node instanceof StaticFieldAccess) {
      Expression field = ((StaticFieldAccess) node).getField();
      if (field instanceof SimpleReference) {
        SimpleReference ref = (SimpleReference) field;
        SimpleReferenceLocation refLoc = new SimpleReferenceLocation(
            ref.sourceStart(), ref.sourceEnd(), '$' + ref.getName());
        locator.match(refLoc, getNodeSet());
      }
    } else if (node instanceof StaticConstantAccess) {
      ConstantReference constantRef = ((StaticConstantAccess) node)
          .getConstant();
View Full Code Here

        if (dispatcher instanceof VariableReference) { // && "$this".equals(((VariableReference) dispatcher).getName())) { //$NON-NLS-1$
          Expression field = fieldAccess.getField();
          if (field instanceof SimpleReference) {
            SimpleReference ref = (SimpleReference) field;
            FieldDeclaration decl = new FieldDeclarationLocation(
                '$' + ref.getName(), ref.sourceStart(), ref
                    .sourceEnd(), node.sourceStart(), node
                    .sourceEnd());
            locator.match(decl, getNodeSet());
          }
        }
View Full Code Here

        locator.match(callExpression, getNodeSet());
      }
    } else if (node instanceof Argument) {
      SimpleReference ref = ((Argument) node).getRef();
      FieldDeclaration decl = new FieldDeclarationLocation(ref.getName(),
          ref.sourceStart(), ref.sourceEnd(), node.sourceStart(),
          node.sourceEnd());
      locator.match(decl, getNodeSet());
    } else if (node instanceof ForEachStatement) {
      Expression key = ((ForEachStatement) node).getKey();
      Expression value = ((ForEachStatement) node).getValue();
View Full Code Here

      Expression key = ((ForEachStatement) node).getKey();
      Expression value = ((ForEachStatement) node).getValue();
      if (key instanceof SimpleReference) {
        SimpleReference ref = (SimpleReference) key;
        FieldDeclaration decl = new FieldDeclarationLocation(ref
            .getName(), ref.sourceStart(), ref.sourceEnd(), node
            .sourceStart(), node.sourceEnd());
        locator.match(decl, getNodeSet());
      }
      if (value instanceof SimpleReference) {
        SimpleReference ref = (SimpleReference) value;
View Full Code Here

        locator.match(decl, getNodeSet());
      }
      if (value instanceof SimpleReference) {
        SimpleReference ref = (SimpleReference) value;
        FieldDeclaration decl = new FieldDeclarationLocation(ref
            .getName(), ref.sourceStart(), ref.sourceEnd(), ref
            .sourceStart(), ref.sourceEnd());
        locator.match(decl, getNodeSet());
      }
    } else if (node instanceof CatchClause) {
      VariableReference ref = ((CatchClause) node).getVariable();
View Full Code Here

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