Optimize DataFlowInfo.and()

Instead of copying everything, we now only completely copy one data flow info
and use another as a delegation target
This commit is contained in:
Alexander Udalov
2012-11-15 22:23:26 +04:00
parent f5ed3ff6bd
commit 6b65c44d45
3 changed files with 66 additions and 11 deletions
@@ -1281,6 +1281,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/IsExpression.kt");
}
@TestMetadata("ManyIfs.kt")
public void testManyIfs() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/ManyIfs.kt");
}
@TestMetadata("MultiDeclaration.kt")
public void testMultiDeclaration() throws Exception {
doTest("compiler/testData/diagnostics/tests/dataFlowInfoTraversal/MultiDeclaration.kt");