Package com.intellij.lang.javascript.index

Examples of com.intellij.lang.javascript.index.JavaScriptIndex


  private static final ConcurrentHashMap<String, Key<ParameterizedCachedValue<List<String>, Pair<Project, ID<String, Void>>>>> ourCacheKeys = new ConcurrentHashMap<String, Key<ParameterizedCachedValue<List<String>, Pair<Project, ID<String, Void>>>>>();
  private static final AngularKeysProvider PROVIDER = new AngularKeysProvider();

  public static JSNamedElementProxy resolve(final Project project, final ID<String, Void> index, final String lookupKey) {
    JSNamedElementProxy result = null;
    final JavaScriptIndex jsIndex = JavaScriptIndex.getInstance(project);
    final GlobalSearchScope scope = GlobalSearchScope.allScope(project);
    for (VirtualFile file : FileBasedIndex.getInstance().getContainingFiles(index, lookupKey, scope)) {
      final JSIndexEntry entry = jsIndex.getEntryForFile(file, scope);
      final JSNamedElementProxy resolve = entry != null ? entry.resolveAdditionalData(jsIndex, index.toString(), lookupKey) : null;
      if (resolve != null) {
        result = resolve;
        if (result.canNavigate()) break;
      }
View Full Code Here

TOP

Related Classes of com.intellij.lang.javascript.index.JavaScriptIndex

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.