Package com.google.dart.engine.internal.index

Examples of com.google.dart.engine.internal.index.NameElementImpl


  public void searchDeclarations(String name, SearchScope scope, SearchFilter filter,
      SearchListener listener) {
    assert listener != null;
    listener = applyFilter(filter, listener);
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.IS_DEFINED_BY,
        newCallback(MatchKind.NAME_DECLARATION, scope, listener));
  }
View Full Code Here


      SearchListener listener) {
    assert listener != null;
    listener = applyFilter(filter, listener);
    listener = new CountingSearchListener(10, listener);
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.IS_REFERENCED_BY_QUALIFIED_RESOLVED,
        newCallback(MatchKind.NAME_REFERENCE_RESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.IS_REFERENCED_BY_QUALIFIED_UNRESOLVED,
        newCallback(MatchKind.NAME_REFERENCE_UNRESOLVED, scope, listener));
    // granular resolved operations
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_INVOKED_BY_RESOLVED,
        newCallback(MatchKind.NAME_INVOCATION_RESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_READ_BY_RESOLVED,
        newCallback(MatchKind.NAME_READ_RESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_READ_WRITTEN_BY_RESOLVED,
        newCallback(MatchKind.NAME_READ_WRITE_RESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_WRITTEN_BY_RESOLVED,
        newCallback(MatchKind.NAME_WRITE_RESOLVED, scope, listener));
    // granular unresolved operations
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_INVOKED_BY_UNRESOLVED,
        newCallback(MatchKind.NAME_INVOCATION_UNRESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_READ_BY_UNRESOLVED,
        newCallback(MatchKind.NAME_READ_UNRESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_READ_WRITTEN_BY_UNRESOLVED,
        newCallback(MatchKind.NAME_READ_WRITE_UNRESOLVED, scope, listener));
    index.getRelationships(
        new NameElementImpl(name),
        IndexConstants.NAME_IS_WRITTEN_BY_UNRESOLVED,
        newCallback(MatchKind.NAME_WRITE_UNRESOLVED, scope, listener));
  }
View Full Code Here

TOP

Related Classes of com.google.dart.engine.internal.index.NameElementImpl

Copyright © 2018 www.massapicom. 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.