Not to perform data flow analysis for invisible elements
This commit is contained in:
@@ -40,6 +40,9 @@ public class ControlFlowAnalyzer {
|
|||||||
for (Map.Entry<JetClass, MutableClassDescriptor> entry : context.getClasses().entrySet()) {
|
for (Map.Entry<JetClass, MutableClassDescriptor> entry : context.getClasses().entrySet()) {
|
||||||
JetClass aClass = entry.getKey();
|
JetClass aClass = entry.getKey();
|
||||||
MutableClassDescriptor classDescriptor = entry.getValue();
|
MutableClassDescriptor classDescriptor = entry.getValue();
|
||||||
|
|
||||||
|
if (!context.completeAnalysisNeeded(aClass)) continue;
|
||||||
|
|
||||||
checkClass(aClass, classDescriptor);
|
checkClass(aClass, classDescriptor);
|
||||||
}
|
}
|
||||||
for (Map.Entry<JetNamedFunction, FunctionDescriptorImpl> entry : context.getFunctions().entrySet()) {
|
for (Map.Entry<JetNamedFunction, FunctionDescriptorImpl> entry : context.getFunctions().entrySet()) {
|
||||||
@@ -60,10 +63,12 @@ public class ControlFlowAnalyzer {
|
|||||||
JetConstructor constructor = (JetConstructor) declaration;
|
JetConstructor constructor = (JetConstructor) declaration;
|
||||||
ConstructorDescriptor descriptor = entry.getValue();
|
ConstructorDescriptor descriptor = entry.getValue();
|
||||||
|
|
||||||
|
if (!context.completeAnalysisNeeded(constructor)) continue;
|
||||||
checkFunction(constructor, descriptor, JetStandardClasses.getUnitType());
|
checkFunction(constructor, descriptor, JetStandardClasses.getUnitType());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (JetProperty property : context.getProperties().keySet()) {
|
for (JetProperty property : context.getProperties().keySet()) {
|
||||||
|
if (!context.completeAnalysisNeeded(property)) continue;
|
||||||
checkProperty(property);
|
checkProperty(property);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user