Sanitize names for backing fields and private declarations in JS BE

See KT-1816
This commit is contained in:
Alexey Andreev
2017-09-07 11:52:08 +03:00
parent 206369c088
commit 502c51ccff
4 changed files with 58 additions and 1 deletions
@@ -1166,6 +1166,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("peculiarName.kt")
public void testPeculiarName() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/delegateProperty/peculiarName.kt");
doTest(fileName);
}
@TestMetadata("propertyMetadata.kt")
public void testPropertyMetadata() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/delegateProperty/propertyMetadata.kt");
@@ -2536,6 +2542,12 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
doTest(fileName);
}
@TestMetadata("privateDeclarations.kt")
public void testPrivateDeclarations() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/identifierClash/privateDeclarations.kt");
doTest(fileName);
}
@TestMetadata("useVariableOfNameOfFunction.kt")
public void testUseVariableOfNameOfFunction() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/expression/identifierClash/useVariableOfNameOfFunction.kt");