Renamed deepCodeAnalysis() context to deepCodeInsight()

This commit is contained in:
Andrey Vlasovskikh
2013-05-13 16:03:39 +04:00
parent fd54bc9000
commit a55e50525c
@@ -62,18 +62,11 @@ public class TypeEvalContext {
return new TypeEvalContext(true, true, null);
}
/**
* Create a type evaluation context for deeper and slower code analysis.
*
* Should be used only when normal analysis context is not enough for getting good results.
*/
public static TypeEvalContext deepCodeAnalysis() {
return new TypeEvalContext(false, true, null);
}
/**
* Create a type evaluation context for performing analysis operations on the specified file which is currently open in the editor,
* without accessing stubs. For such a file, additional slow operations are allowed.
*
* Inspections should not create a new type evaluation context. They should re-use the context of the inspection session.
*/
public static TypeEvalContext codeAnalysis(@Nullable PsiFile origin) {
return new TypeEvalContext(false, false, origin);
@@ -87,7 +80,16 @@ public class TypeEvalContext {
public static TypeEvalContext codeInsightFallback() {
return new TypeEvalContext(false, false, null);
}
/**
* Create a type evaluation context for deeper and slower code insight.
*
* Should be used only when normal code insight context is not enough for getting good results.
*/
public static TypeEvalContext deepCodeInsight() {
return new TypeEvalContext(false, true, null);
}
public TypeEvalContext withTracing() {
if (myTrace == null) {
myTrace = new ArrayList<String>();