Not to perform data flow analysis for invisible elements

This commit is contained in:
svtk
2011-11-01 20:52:39 +04:00
parent 60efd7f56e
commit 8debe6a598
@@ -40,6 +40,9 @@ public class ControlFlowAnalyzer {
for (Map.Entry<JetClass, MutableClassDescriptor> entry : context.getClasses().entrySet()) {
JetClass aClass = entry.getKey();
MutableClassDescriptor classDescriptor = entry.getValue();
if (!context.completeAnalysisNeeded(aClass)) continue;
checkClass(aClass, classDescriptor);
}
for (Map.Entry<JetNamedFunction, FunctionDescriptorImpl> entry : context.getFunctions().entrySet()) {
@@ -60,10 +63,12 @@ public class ControlFlowAnalyzer {
JetConstructor constructor = (JetConstructor) declaration;
ConstructorDescriptor descriptor = entry.getValue();
if (!context.completeAnalysisNeeded(constructor)) continue;
checkFunction(constructor, descriptor, JetStandardClasses.getUnitType());
}
for (JetProperty property : context.getProperties().keySet()) {
if (!context.completeAnalysisNeeded(property)) continue;
checkProperty(property);
}
}