Slow TypeEvalContext for completion, documentation, find usages, quick-fixes

This commit is contained in:
Andrey Vlasovskikh
2013-05-08 19:02:56 +04:00
parent 990006bea2
commit 23ed6bcdaa
9 changed files with 20 additions and 12 deletions
@@ -53,6 +53,11 @@ public class TypeEvalContext {
return myAllowDataFlow || element.getContainingFile() == myOrigin;
}
/**
* The most detailed type evaluation context for user-initiated actions.
*
* Should be used for code completion, go to definition, find usages, refactorings, documentation.
*/
public static TypeEvalContext slow() {
return new TypeEvalContext(true, true, null);
}