JVM IR: use origin to detect property/typealias $annotations methods

Now that DEFAULT_IMPLS origins for methods do not exist after previous
commits, the name heuristic is no longer needed.
This commit is contained in:
Alexander Udalov
2020-11-20 18:45:30 +01:00
parent c7c793c724
commit a917ebd11e
14 changed files with 34 additions and 35 deletions
@@ -1,3 +1,4 @@
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.TYPEALIAS)
annotation class Anno
class C {
@@ -7,3 +8,6 @@ class C {
@Anno
internal val property: Int get() = 0
@Anno
internal typealias Typealias = Any
@@ -1,20 +1,23 @@
@kotlin.annotation.Target
@java.lang.annotation.Retention
@java.lang.annotation.Target
@kotlin.Metadata
public annotation class Anno {
// source: 'internalProperty.kt'
// source: 'internalPropertyOrTypealias.kt'
}
@kotlin.Metadata
public final class C {
// source: 'internalProperty.kt'
// source: 'internalPropertyOrTypealias.kt'
public method <init>(): void
public synthetic deprecated static @Anno method getProperty$test_module$annotations(): void
public final method getProperty$test_module(): int
}
@kotlin.Metadata
public final class InternalPropertyKt {
// source: 'internalProperty.kt'
public final class InternalPropertyOrTypealiasKt {
// source: 'internalPropertyOrTypealias.kt'
public synthetic deprecated static @Anno method Typealias$annotations(): void
public synthetic deprecated static @Anno method getProperty$annotations(): void
public final static method getProperty(): int
}