New J2K: split diagnostic based processing from inspection ones

Analysing file file with diagnostics on each step of post-processings is rather expensive operation so the inspection-like post-processings which don't require diagnostic information was separated from ones that need it

Related to #KT-31848
This commit is contained in:
Ilya Kirillov
2019-06-11 11:56:23 +03:00
parent 2f8e83d6b9
commit 59f66d5882
7 changed files with 343 additions and 308 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
internal class Test {
val int: Int
get() = 10
get() {
val b: Byte = 10
return b.toInt()
}
}
@@ -1,8 +1,9 @@
internal class C {
fun foo(o: Any?) {
if (o is String) {
val l = o.length
val substring = o.substring(l - 2)
val s = o
val l = s.length
val substring = s.substring(l - 2)
}
}
}