KT-5044 intrinsify all contains calls for primitive ranges from stdlib

This commit is contained in:
Vsevolod
2016-10-10 23:13:31 +03:00
committed by Dmitry Petrov
parent d7ad27ac3b
commit bd6f83b9b7
6 changed files with 201 additions and 32 deletions
@@ -402,8 +402,8 @@ public abstract class KotlinBuiltIns {
public Set<DeclarationDescriptor> getIntegralRanges() {
return SetsKt.<DeclarationDescriptor>setOf(
getBuiltInClassByName("CharRange", rangesPackageFragment),
getBuiltInClassByName("IntRange", rangesPackageFragment)
// TODO: contains in LongRange should be optimized too
getBuiltInClassByName("IntRange", rangesPackageFragment),
getBuiltInClassByName("LongRange", rangesPackageFragment)
);
}