Examples of sourceStart()


Examples of org.eclipse.dltk.ast.expressions.Expression.sourceStart()

      Set<Entry<Expression, Map<Expression, Expression>>> typeEntrySet = faMap.entrySet();
      for (Entry<Expression, Map<Expression, Expression>> entry : typeEntrySet) {
        Expression struct = entry.getKey();
        String structure = "";
        if (struct != null) {
          structure = sourceModule.getSource().substring(struct.sourceStart(), struct.sourceEnd());
          structure = expand(structure);
        }
        Map<Expression, Expression> fmap = entry.getValue();
        Set<Expression> keySet = fmap.keySet();
        for (Expression fkey : keySet) {
View Full Code Here

Examples of org.eclipse.dltk.ast.expressions.Expression.sourceStart()

        } else {
          twf = expand(twf);
          matchedType = isFeatureMatch(twf);
        }
      } else if (head != null) {
        matchedType = sourceModule.getSource().substring(head.sourceStart(), head.sourceEnd());
      }
      // cache long name
      matchedType = expand(matchedType);
      if (matchedType == null) {
        matchedType = "uima.tcas.Annotation";
View Full Code Here

Examples of org.eclipse.dltk.ast.expressions.Expression.sourceStart()

      if (s instanceof RutaStructureAction) {
        RutaStructureAction sa = (RutaStructureAction) s;
        Expression struct = sa.getStructure();
        String structure = null;
        if (struct != null) {
          structure = sourceModule.getSource().substring(struct.sourceStart(), struct.sourceEnd());
          structure = expand(structure);
        }
        Map<Expression, Expression> assignments = sa.getAssignments();
        // hotfix... correct name in ast
        String action = sourceModule.getSource().substring(sa.getNameStart(), sa.getNameEnd());
View Full Code Here

Examples of org.eclipse.dltk.ast.expressions.StringLiteral.sourceStart()

      md.traverse(new ASTVisitor() {
        @Override
        public boolean visitGeneral(ASTNode node) throws Exception {
          if (node instanceof StringLiteral) {
            StringLiteral be = (StringLiteral) node;
            result.add(new PairBlock(offset + be.sourceStart(), offset + be.sourceEnd() - 1, '\"'));
            // } else if (node instanceof RutaExecuteExpression) {
            // RutaExecuteExpression be = (RutaExecuteExpression) node;
            // result.add(new PairBlock(offset + be.sourceStart(),
            // offset + be.sourceEnd() - 1, '['));
          } else if (node instanceof Block) {
View Full Code Here

Examples of org.eclipse.dltk.ast.expressions.StringLiteral.sourceStart()

            // 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.references.ConstantReference.sourceStart()

    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.sourceStart()

            info.type = split[0];

            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.sourceStart()

        SimpleReference[] references = phpDocTag.getReferences();
        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) {
View Full Code Here

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

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

            // 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
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.