Examples of DeclarationInfo


Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

    }

    // Add method declaration:
    modifyDeclaration(
        method,
        new DeclarationInfo(IModelElement.METHOD, modifiers, method
            .sourceStart(), method.sourceEnd()
            - method.sourceStart(), method.getNameStart(), method
            .getNameEnd() - method.getNameStart(), methodName,
            metadata.length() == 0 ? null : metadata.toString(),
            encodeDocInfo(method), fCurrentQualifier,
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

      }
    }
    modifiers = markAsDeprecated(modifiers, type);
    modifyDeclaration(
        type,
        new DeclarationInfo(IModelElement.TYPE, modifiers, type
            .sourceStart(), type.sourceEnd() - type.sourceStart(),
            type.getNameStart(), type.getNameEnd()
                - type.getNameStart(), type.getName(), metadata
                .length() == 0 ? null : metadata.toString(),
            encodeDocInfo(type), isNamespace ? null
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

            }

            String name = removeParenthesis(split);
            int offset = docTag.sourceStart();
            int length = docTag.sourceStart() + 9;
            modifyDeclaration(null, new DeclarationInfo(
                IModelElement.FIELD, Modifiers.AccPublic,
                offset, length, offset, length, name, null,
                null, fCurrentQualifier, fCurrentParent));

          } else if (tagKind == PHPDocTag.METHOD) {
            // http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.method.pkg.html
            final String[] split = WHITESPACE_SEPERATOR
                .split(docTag.getValue().trim());
            if (split.length < 2) {
              break;
            }

            String name = removeParenthesis(split);
            int index = name.indexOf('(');
            if (index > 0) {
              name = name.substring(0, index);
            }
            int offset = docTag.sourceStart();
            int length = docTag.sourceStart() + 6;
            modifyDeclaration(null, new DeclarationInfo(
                IModelElement.METHOD, Modifiers.AccPublic,
                offset, length, offset, length, name, null,
                null, fCurrentQualifier, fCurrentParent));
          }
        }
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

    int modifiers = decl.getModifiers();
    modifiers = markAsDeprecated(modifiers, decl);

    modifyDeclaration(
        decl,
        new DeclarationInfo(IModelElement.FIELD, modifiers, decl
            .sourceStart(), decl.sourceEnd() - decl.sourceStart(),
            decl.getNameStart(), decl.getNameEnd()
                - decl.getNameStart(), decl.getName(), null,
            encodeDocInfo(decl), null, null));
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

    // This is variable declaration:
    int modifiers = markAsDeprecated(decl.getModifiers(), decl);

    modifyDeclaration(
        decl,
        new DeclarationInfo(IModelElement.FIELD, modifiers, decl
            .sourceStart(), decl.sourceEnd() - decl.sourceStart(),
            decl.getNameStart(), decl.getNameEnd()
                - decl.getNameStart(), decl.getName(), null,
            encodeDocInfo(decl), fCurrentQualifier, fCurrentParent));
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

      if (idx != -1) {
        lastSegment = lastSegment.substring(idx + 1);
      }
      modifyDeclaration(
          include,
          new DeclarationInfo(IModelElement.IMPORT_DECLARATION, 0,
              include.sourceStart(), include.sourceEnd()
                  - include.sourceStart(), filePath
                  .sourceStart(), filePath.sourceEnd()
                  - filePath.sourceStart(), lastSegment,
              fullPath, null, null, null));
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

    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,
            encodeDocInfo(declaration), fCurrentQualifier,
            fCurrentParent));
    return visitGeneral(declaration);
View Full Code Here

Examples of org.eclipse.dltk.core.index2.IIndexingRequestor.DeclarationInfo

        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));
        }
      }
    } else if (left instanceof VariableReference) {
      int modifiers = Modifiers.AccPublic | Modifiers.AccGlobal;
      if (!declarations.empty()
          && declarations.peek() instanceof MethodDeclaration
          && !methodGlobalVars.peek().contains(
              ((VariableReference) left).getName())) {
        return visitGeneral(assignment);
      }
      int offset = left.sourceStart();
      int length = left.sourceEnd() - offset;
      modifyDeclaration(assignment, new DeclarationInfo(
          IModelElement.FIELD, modifiers, offset, length, offset,
          length, ((VariableReference) left).getName(), null, null,
          null, null));
    }
    return visitGeneral(assignment);
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.