Initial version of RangeContainsLowering, which optimizes calls to
contains() on ClosedRanges.
This commit is contained in:
committed by
Alexander Udalov
parent
ca541337d1
commit
1c1b1b4b0f
+40
@@ -22275,11 +22275,36 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownTo.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationOrderForDownToReversed.kt")
|
||||
public void testEvaluationOrderForDownToReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForDownToReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationOrderForNullableArgument.kt")
|
||||
public void testEvaluationOrderForNullableArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForNullableArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationOrderForRangeLiteral.kt")
|
||||
public void testEvaluationOrderForRangeLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteral.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationOrderForRangeLiteralReversed.kt")
|
||||
public void testEvaluationOrderForRangeLiteralReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForRangeLiteralReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationOrderForUntil.kt")
|
||||
public void testEvaluationOrderForUntil() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntil.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("evaluationOrderForUntilReversed.kt")
|
||||
public void testEvaluationOrderForUntilReversed() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/evaluationOrderForUntilReversed.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("genericCharInRangeLiteral.kt")
|
||||
public void testGenericCharInRangeLiteral() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/genericCharInRangeLiteral.kt");
|
||||
@@ -22395,6 +22420,21 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/inUntil.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inUntilMaxValue.kt")
|
||||
public void testInUntilMaxValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/inUntilMaxValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inUntilMinValue.kt")
|
||||
public void testInUntilMinValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/inUntilMinValue.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("inUntilMinValueNonConst.kt")
|
||||
public void testInUntilMinValueNonConst() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/inUntilMinValueNonConst.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt20106.kt")
|
||||
public void testKt20106() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/ranges/contains/kt20106.kt");
|
||||
|
||||
Reference in New Issue
Block a user