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:
+4
@@ -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
|
||||
+7
-4
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user