[FIR] optimize deprecation calculation for symbols

All symbols except member callables can be deprecated if they have non-empty annotation list

^KT-56800 fixed
This commit is contained in:
Ilya Kirillov
2023-02-20 16:25:55 +01:00
parent 0bbc61f459
commit 69c024a5ce
33 changed files with 163 additions and 144 deletions
-1
View File
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// WITH_STDLIB
annotation class AllOpen
@@ -1,4 +1,3 @@
//FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.CompanionWithFoo
@CompanionWithFoo
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.NestedClassAndMaterializeMember
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// DUMP_IR
package bar
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
package foo
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.CoreSerializer
import org.jetbrains.kotlin.fir.plugin.MySerializable
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
package foo
import org.jetbrains.kotlin.fir.plugin.DummyFunction
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.CompanionWithFoo
@CompanionWithFoo
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.NestedClassAndMaterializeMember
@NestedClassAndMaterializeMember
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
package bar
import foo.AllOpenGenerated
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
package foo
import org.jetbrains.kotlin.fir.plugin.DummyFunction
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.AllOpen
@AllOpen
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
import org.jetbrains.kotlin.fir.plugin.AllPublic
import org.jetbrains.kotlin.fir.plugin.Visibility
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
package foo
import org.jetbrains.kotlin.fir.plugin.MyInterfaceSupertype
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
package foo
import org.jetbrains.kotlin.fir.plugin.SupertypeWithTypeArgument
-1
View File
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
annotation class NoArg
class Outer {
-1
View File
@@ -1,4 +1,3 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
annotation class NoArg
class Outer {
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
annotation class NoArg
open class Base(val s: String)