Examples of sourceEnd()


Examples of com.dubture.symfony.core.model.TemplateVariable.sourceEnd()

            while(it.hasNext()) {

                TemplateVariable variable = (TemplateVariable) it.next();
                String viewPath = variables.get(variable);
                int start = variable.sourceStart();
                int length = variable.sourceEnd() - variable.sourceStart();
                String name = null;

                if (variable.isReference()) {

                    name = variable.getName();
View Full Code Here

Examples of com.dubture.twig.core.parser.ast.node.Variable.sourceEnd()

                        List<?> statements = block.getChilds();

                        MethodInfo info = new MethodInfo();
                        info.nameSourceStart = name.sourceStart();
                        info.nameSourceEnd = name.sourceEnd() - 1;
                        info.declarationStart = block.sourceStart();

                        info.name = name.getValue();
                        fRequestor.enterMethod(info);
View Full Code Here

Examples of org.apache.uima.ruta.ide.parser.ast.RutaRule.sourceEnd()

    RutaRule rule = visitor.getResult();
    myAnnotations = new HashMap<Annotation, Position>();
    if (rule != null) {
      Annotation annotation = new Annotation(SearchPlugin.SEARCH_ANNOTATION_TYPE, true, null);
      int sourceStart = rule.sourceStart();
      int sourceEnd = rule.sourceEnd();
      Position position = new Position(sourceStart, sourceEnd - sourceStart);
      getSourceViewer().revealRange(sourceStart, sourceEnd - sourceStart);
      myAnnotations.put(annotation, position);
    }
    addAnnotations(myAnnotations);
View Full Code Here

Examples of org.apache.uima.ruta.ide.parser.ast.RutaRule.sourceEnd()

    RutaRule rule = visitor.getResult();
    myAnnotations = new HashMap<Annotation, Position>();
    if (rule != null) {
      Annotation annotation = new Annotation(SearchPlugin.SEARCH_ANNOTATION_TYPE, true, null);
      int sourceStart = rule.sourceStart();
      int sourceEnd = rule.sourceEnd();
      Position position = new Position(sourceStart, sourceEnd - sourceStart);
      getSourceViewer().revealRange(sourceStart, sourceEnd - sourceStart);
      myAnnotations.put(annotation, position);
    }
    addAnnotations(myAnnotations);
View Full Code Here

Examples of org.apache.uima.ruta.ide.parser.ast.RutaStatement.sourceEnd()

  }

  private void checkStatement(String code, int offset, List result, Statement sst) {
    if (sst instanceof RutaStatement) {
      RutaStatement statement = (RutaStatement) sst;
      result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
              .sourceEnd() - statement.sourceStart())));

      Iterator si = statement.getExpressions().iterator();
      // while (si.hasNext()) {
      // Expression ex = (Expression) si.next();
View Full Code Here

Examples of org.apache.uima.ruta.ide.parser.ast.RutaStatement.sourceEnd()

  }

  private void checkStatement(String code, int offset, List result, Statement sst) {
    if (sst instanceof RutaStatement) {
      RutaStatement statement = (RutaStatement) sst;
      result.add(new CodeBlock(statement, new Region(offset + statement.sourceStart(), statement
              .sourceEnd() - statement.sourceStart())));

      Iterator si = statement.getExpressions().iterator();
      // while (si.hasNext()) {
      // Expression ex = (Expression) si.next();
View Full Code Here

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

   */
  public void generateMissingAbstractMethods(MethodDeclaration[] methodDeclarations, CompilationResult compilationResult) {
    if (methodDeclarations != null) {
      TypeDeclaration currentDeclaration = this.referenceBinding.scope.referenceContext;
      int typeDeclarationSourceStart = currentDeclaration.sourceStart();
      int typeDeclarationSourceEnd = currentDeclaration.sourceEnd();
      for (int i = 0, max = methodDeclarations.length; i < max; i++) {
        MethodDeclaration methodDeclaration = methodDeclarations[i];
        MethodBinding methodBinding = methodDeclaration.binding;
         String readableName = new String(methodBinding.readableName());
         CategorizedProblem[] problems = compilationResult.problems;
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceEnd()

              return false;
            }
          };

          if (m.parameters != null && m.parameters.length != 0) {
            scope.problemReporter().signalError(m.sourceStart(), m.sourceEnd(),
                "only zero-argument constructors allowed in concrete aspect");
          }
        }
      }
View Full Code Here

Examples of org.eclipse.dltk.ast.ASTNode.sourceEnd()

    protected boolean find(Expression s) throws Exception {
      if (s.sourceStart() < astNode.sourceStart() && s.sourceEnd() == astNode.sourceEnd()) {
        List<ASTNode> children = s.getChilds();
        for (int i = 0; i < children.size(); ++i) {
          ASTNode fieldReference = children.get(i);
          if (fieldReference.sourceStart() == astNode.sourceStart() && fieldReference.sourceEnd() == astNode.sourceEnd()) {
            if (i > 0) {
              ASTNode receiverReference = children.get(i - 1);
              IType[] receiverTypes = null;
              if (receiverReference instanceof VariableReference) {
                receiverTypes = PDTTypeInferenceUtils.getTypes((VariableReference) receiverReference, sourceModule);
View Full Code Here

Examples of org.eclipse.dltk.ast.ASTNode.sourceEnd()

    ASTNode quantifierPart = null;
    if (q != null && !q.isEmpty()) {
      quantifierPart = q.get(q.size() - 1);
    }
    if (quantifierPart != null) {
      bounds[1] = Math.max(bounds[1], quantifierPart.sourceEnd());
    }
    if (c != null && !c.isEmpty()) {
      bounds[1] = Math.max(bounds[1], c.get(c.size() - 1).sourceEnd());
    }
    if (a != null && !a.isEmpty()) {
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.