Infer parameter types from file-local function usages during code completion

This commit is contained in:
Andrey Vlasovskikh
2013-05-13 22:41:41 +04:00
parent fd0476b073
commit d3525c55f9
6 changed files with 89 additions and 17 deletions
@@ -53,6 +53,10 @@ public class TypeEvalContext {
return myAllowDataFlow || element.getContainingFile() == myOrigin;
}
public boolean allowLocalUsages(@NotNull PsiElement element) {
return myAllowStubToAST && myAllowDataFlow && element.getContainingFile() == myOrigin;
}
/**
* Create the most detailed type evaluation context for user-initiated actions.
*