JS/Inlining: change sideEffects metadata to take three values: producing side effect, dependding on side effect and purity

This commit is contained in:
Alexey Andreev
2016-06-02 17:41:17 +03:00
parent 774efa4e70
commit 6b99d4e1c5
26 changed files with 154 additions and 92 deletions
@@ -257,6 +257,18 @@ public class InlineEvaluationOrderTestGenerated extends AbstractInlineEvaluation
doTest(fileName);
}
@TestMetadata("propertyAccessAfterModification.kt")
public void testPropertyAccessAfterModification() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/inlineEvaluationOrder/cases/propertyAccessAfterModification.kt");
doTest(fileName);
}
@TestMetadata("propertyAccessAndInitializer.kt")
public void testPropertyAccessAndInitializer() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/inlineEvaluationOrder/cases/propertyAccessAndInitializer.kt");
doTest(fileName);
}
@TestMetadata("propertyAccessWithSideEffect.kt")
public void testPropertyAccessWithSideEffect() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/inlineEvaluationOrder/cases/propertyAccessWithSideEffect.kt");