246dc985a6
Now predicates are split into LookupPredicate and DeclarationPredicate hierarchies. First one allows to perform global search for declarations and second one allows to check if some declaration matches the predicate. Predicates with meta annotations are excluded from LookupPredicates, because it's impossible to create index of annotations with meta-annotations, because they can be located inside binary dependencies (so to achieve this we need to scan the whole classpath). Also only one predicate with meta-annotations is left in DeclarationPredicate hierarchy (AnnotatedWithMeta) ^KT-53874 Fixed ^KT-53590 Fixed
24 lines
433 B
Kotlin
Vendored
24 lines
433 B
Kotlin
Vendored
// FIR version does not go inside bodies
|
|
// Also it's quiestionable do we even need to transform local classes and anonymous objects
|
|
|
|
annotation class AllOpen
|
|
|
|
@AllOpen
|
|
class Test {
|
|
val a = object : Runnable {
|
|
override fun run() {
|
|
1
|
|
}
|
|
}
|
|
|
|
fun b() {
|
|
object : Runnable {
|
|
override fun run() {
|
|
1
|
|
}
|
|
}
|
|
|
|
Runnable { 1 }.run()
|
|
}
|
|
}
|