com.intellij.psi.impl.ResolveScopeManager Java Examples
The following examples show how to use
com.intellij.psi.impl.ResolveScopeManager.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BlazeJavascriptResolveScopeProvider.java From intellij with Apache License 2.0 | 5 votes |
/** See {@link JSResolveUtil#getResolveScope(PsiElement)}. */ @Nullable private static GlobalSearchScope getBaseScope(PsiElement element) { VirtualFile file = JSResolveScopeProvider.getFileForScopeEvaluation(element); if (file == null) { return null; } return ResolveScopeManager.getInstance(element.getProject()).getDefaultResolveScope(file); }
Example #2
Source File: XQueryPsiImplUtil.java From intellij-xquery with Apache License 2.0 | 5 votes |
public static SearchScope getUseScope(XQueryVarName element) { XQueryFunctionDecl function = PsiTreeUtil.getParentOfType(element, XQueryFunctionDecl.class, true); if (function != null) { return new LocalSearchScope(function); } XQueryQueryBody queryBody = PsiTreeUtil.getParentOfType(element, XQueryQueryBody.class, true); if (queryBody != null) { return new LocalSearchScope(queryBody); } return ResolveScopeManager.getElementUseScope(element); }
Example #3
Source File: LazyParseablePsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public SearchScope getUseScope() { return ResolveScopeManager.getElementUseScope(this); }
Example #4
Source File: CompositePsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public GlobalSearchScope getResolveScope() { return ResolveScopeManager.getElementResolveScope(this); }
Example #5
Source File: CompositePsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public SearchScope getUseScope() { return ResolveScopeManager.getElementUseScope(this); }
Example #6
Source File: LeafPsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public GlobalSearchScope getResolveScope() { return ResolveScopeManager.getElementResolveScope(this); }
Example #7
Source File: LeafPsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public SearchScope getUseScope() { return ResolveScopeManager.getElementUseScope(this); }
Example #8
Source File: PsiElementBase.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public GlobalSearchScope getResolveScope() { return ResolveScopeManager.getElementResolveScope(this); }
Example #9
Source File: PsiElementBase.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public SearchScope getUseScope() { return ResolveScopeManager.getElementUseScope(this); }
Example #10
Source File: OwnBufferLeafPsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public GlobalSearchScope getResolveScope() { return ResolveScopeManager.getElementResolveScope(this); }
Example #11
Source File: OwnBufferLeafPsiElement.java From consulo with Apache License 2.0 | 4 votes |
@Override @Nonnull public SearchScope getUseScope() { return ResolveScopeManager.getElementUseScope(this); }