Handle withIndex() on arrays and CharSequences in ForLoopsLowering.
This commit is contained in:
committed by
max-kammerer
parent
735535dd5a
commit
a54d9482dd
Generated
+20
@@ -4401,11 +4401,21 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNoIndexOrElementVar.kt")
|
||||
public void testForInArrayWithIndexNoIndexOrElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNotDestructured.kt")
|
||||
public void testForInArrayWithIndexNotDestructured() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt")
|
||||
public void testForInArrayWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt");
|
||||
@@ -4519,11 +4529,21 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNoIndexOrElementVar.kt")
|
||||
public void testForInStringWithIndexNoIndexOrElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNoIndexVar.kt")
|
||||
public void testForInStringWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNotDestructured.kt")
|
||||
public void testForInStringWithIndexNotDestructured() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt")
|
||||
public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt");
|
||||
|
||||
+20
@@ -4411,11 +4411,21 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNoIndexOrElementVar.kt")
|
||||
public void testForInArrayWithIndexNoIndexOrElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexOrElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNoIndexVar.kt")
|
||||
public void testForInArrayWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexNotDestructured.kt")
|
||||
public void testForInArrayWithIndexNotDestructured() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexNotDestructured.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt")
|
||||
public void testForInArrayWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInArrayWithIndex/forInArrayWithIndexWithExplicitlyTypedIndexVariable.kt");
|
||||
@@ -4529,11 +4539,21 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNoIndexOrElementVar.kt")
|
||||
public void testForInStringWithIndexNoIndexOrElementVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexOrElementVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNoIndexVar.kt")
|
||||
public void testForInStringWithIndexNoIndexVar() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNoIndexVar.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexNotDestructured.kt")
|
||||
public void testForInStringWithIndexNotDestructured() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexNotDestructured.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("forInStringWithIndexWithExplicitlyTypedIndexVariable.kt")
|
||||
public void testForInStringWithIndexWithExplicitlyTypedIndexVariable() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/controlStructures/forInCharSequenceWithIndex/forInStringWithIndexWithExplicitlyTypedIndexVariable.kt");
|
||||
|
||||
Reference in New Issue
Block a user