Examples of sourceEnd()


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

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

            SimpleReference var = new SimpleReference(
                docTag.sourceStart(), docTag.sourceStart() + 9,
                removeParenthesis(split));
            info.nameSourceStart = var.sourceStart();
            info.nameSourceEnd = var.sourceEnd();
            info.declarationStart = info.nameSourceStart;

            fRequestor.enterField(info);
            fRequestor.exitField(info.nameSourceEnd);
View Full Code Here

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

        if (references != null) {
          for (SimpleReference simpleReference : references) {
            if (simpleReference instanceof TypeReference) {
              TypeReference typeReference = (TypeReference) simpleReference;
              if (typeReference.sourceStart() <= offset
                  && typeReference.sourceEnd() >= end) {
                String name = typeReference.getName();

                // remove additional end elements like '[]'
                if (typeReference.sourceEnd() > end) {
                  int startShift = offset
View Full Code Here

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

          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;
              }
            }
            return super.visit(s);
View Full Code Here

Examples of org.eclipse.dltk.ast.statements.Block.sourceEnd()

            // RutaExecuteExpression be = (RutaExecuteExpression) node;
            // result.add(new PairBlock(offset + be.sourceStart(),
            // offset + be.sourceEnd() - 1, '['));
          } else if (node instanceof Block) {
            Block be = (Block) node;
            result.add(new PairBlock(offset + be.sourceStart(), offset + be.sourceEnd() - 1, '{'));
          }
          return super.visitGeneral(node);
        }
      });
    } catch (Exception e) {
View Full Code Here

Examples of org.eclipse.dltk.ast.statements.Statement.sourceEnd()

  private static Statement getBlock(IfStatement ifStatement, ASTNode node) {
    Statement falseStatement = ifStatement.getFalseStatement();
    Statement trueStatement = ifStatement.getTrueStatement();
    if (trueStatement != null
        && trueStatement.sourceStart() <= node.sourceStart()
        && trueStatement.sourceEnd() >= node.sourceEnd()) {
      return trueStatement;
    } else if (falseStatement != null
        && falseStatement.sourceStart() <= node.sourceStart()
        && falseStatement.sourceEnd() >= node.sourceEnd()) {
      return falseStatement;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ASTNode.sourceEnd()

      start = site.sourceStart();
      end = site.sourceEnd();
    } else if (location instanceof ASTNode) {
      ASTNode node = (ASTNode) location;
      start = node.sourceStart();
      end = node.sourceEnd();
    }
  }
  this.handle(
    IProblem.IsClassPathCorrect,
    arguments,
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ASTNode.sourceEnd()

  int start = type.sourceStart();
  int end = type.sourceEnd();
  if (currentMethod.declaringClass == type) {
    ASTNode location = ((MethodDeclaration) currentMethod.sourceMethod()).returnType;
    start = location.sourceStart();
    end = location.sourceEnd();
  }
  this.handle(
      IProblem.UnsafeReturnTypeOverride,
      new String[] {
        new String(currentMethod.returnType.readableName()),
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ASTNode.sourceEnd()

      start = site.sourceStart();
      end = site.sourceEnd();
    } else if (location instanceof ASTNode) {
      ASTNode node = (ASTNode) location;
      start = node.sourceStart();
      end = node.sourceEnd();
    }
  }
  this.handle(
    IProblem.IsClassPathCorrect,
    arguments,
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.ASTNode.sourceEnd()

  int start = type.sourceStart();
  int end = type.sourceEnd();
  if (TypeBinding.equalsEquals(currentMethod.declaringClass, type)) {
    ASTNode location = ((MethodDeclaration) currentMethod.sourceMethod()).returnType;
    start = location.sourceStart();
    end = location.sourceEnd();
  }
  this.handle(
      IProblem.UnsafeReturnTypeOverride,
      new String[] {
        new String(currentMethod.returnType.readableName()),
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.