Package org.eclipse.dltk.ast.references

Examples of org.eclipse.dltk.ast.references.ConstantReference.sourceEnd()


    ISourceElementRequestor.FieldInfo info = new ISourceElementRequestor.FieldInfo();
    info.modifiers = Modifiers.AccConstant | Modifiers.AccPublic
        | Modifiers.AccFinal;
    ConstantReference constantName = declaration.getConstantName();
    info.name = ASTUtils.stripQuotes(constantName.getName());
    info.nameSourceEnd = constantName.sourceEnd() - 1;
    info.nameSourceStart = constantName.sourceStart();
    info.declarationStart = declaration.sourceStart();
    info.modifiers = markAsDeprecated(info.modifiers, declaration);
    fRequestor.enterField(info);
    return true;
View Full Code Here


      modifiers = modifiers | PHPCoreConstants.AccClassField;
    }
    modifiers = markAsDeprecated(modifiers, declaration);
    ConstantReference constantName = declaration.getConstantName();
    int offset = constantName.sourceStart();
    int length = constantName.sourceEnd();
    modifyDeclaration(
        declaration,
        new DeclarationInfo(IModelElement.FIELD, modifiers, offset,
            length, offset, length, ASTUtils
                .stripQuotes(constantName.getName()), null,
View Full Code Here

      final String name = constantReference.getName();

      modifyReference(
          access,
          new ReferenceInfo(IModelElement.FIELD, constantReference
              .sourceStart(), constantReference.sourceEnd()
              - constantReference.sourceStart(), name, null, null));
    }

    return visitGeneral(access);
  }
View Full Code Here

      locator.match((FieldDeclaration) node, getNodeSet());
    } else if (node instanceof ConstantDeclaration) {
      ConstantDeclaration constDecl = (ConstantDeclaration) node;
      ConstantReference constantName = constDecl.getConstantName();
      FieldDeclaration decl = new FieldDeclarationLocation(constantName
          .getName(), constantName.sourceStart(), constantName
          .sourceEnd(), constDecl.sourceStart(), constDecl
          .sourceEnd());
      decl.setModifiers(Modifiers.AccConstant);
      locator.match(decl, getNodeSet());
    } else if (node instanceof FieldAccess) {
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.