Package com.jetbrains.lang.dart.psi

Examples of com.jetbrains.lang.dart.psi.DartLibraryStatement


    final List<VirtualFile> virtualFiles = DartLibraryIndex.findLibraryClass(this, libraryName);
    final List<PsiElementResolveResult> result = new ArrayList<PsiElementResolveResult>();
    for (VirtualFile virtualFile : virtualFiles) {
      final PsiFile psiFile = getManager().findFile(virtualFile);
      for (PsiElement root : DartResolveUtil.findDartRoots(psiFile)) {
        DartLibraryStatement lib = PsiTreeUtil.getChildOfType(root, DartLibraryStatement.class);
        if (lib == null) {
          continue;
        }
        DartQualifiedComponentName componentName = lib.getQualifiedComponentName();
        result.add(new PsiElementResolveResult(componentName));
      }
    }
    return result.toArray(new ResolveResult[result.size()]);
  }
View Full Code Here

TOP

Related Classes of com.jetbrains.lang.dart.psi.DartLibraryStatement

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.