mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
[kotlin] J2K: Refactor annotation use-site target enum
^KTIJ-8880 GitOrigin-RevId: 28fa5466e5875d4dd44407a5a4af19a6634f6dd2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7acba5b0b5
commit
37819f53e9
@@ -163,18 +163,16 @@ class JKAnnotation(
|
||||
override fun accept(visitor: JKVisitor) = visitor.visitAnnotation(this)
|
||||
|
||||
@Suppress("unused")
|
||||
enum class UseSiteTarget(renderName: String? = null) {
|
||||
FIELD,
|
||||
FILE,
|
||||
PROPERTY,
|
||||
enum class UseSiteTarget(val renderName: String) {
|
||||
FIELD("field"),
|
||||
FILE("file"),
|
||||
PROPERTY("property"),
|
||||
PROPERTY_GETTER("get"),
|
||||
PROPERTY_SETTER("set"),
|
||||
RECEIVER,
|
||||
RECEIVER("receiver"),
|
||||
CONSTRUCTOR_PARAMETER("param"),
|
||||
SETTER_PARAMETER("setparam"),
|
||||
PROPERTY_DELEGATE_FIELD("delegate");
|
||||
|
||||
val renderName: String = renderName ?: name.lowercase()
|
||||
PROPERTY_DELEGATE_FIELD("delegate")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user