[FIR IDE] LC Implement special keywords like transient, volatile, synchronized, strictfp
This commit is contained in:
+6
@@ -72,6 +72,12 @@ internal class FirLightFieldForPropertySymbol(
|
||||
val modifiers = modifiersWithVisibility.add(
|
||||
what = PsiModifier.FINAL,
|
||||
`if` = !suppressFinal
|
||||
).add(
|
||||
what = PsiModifier.TRANSIENT,
|
||||
`if` = propertySymbol.hasAnnotation("kotlin/jvm/Transient", null)
|
||||
).add(
|
||||
what = PsiModifier.VOLATILE,
|
||||
`if` = propertySymbol.hasAnnotation("kotlin/jvm/Volatile", null)
|
||||
)
|
||||
|
||||
val nullability = if (visibility != PsiModifier.PRIVATE)
|
||||
|
||||
+6
@@ -94,6 +94,12 @@ internal class FirLightSimpleMethodForSymbol(
|
||||
modifiers.add(
|
||||
what = PsiModifier.STATIC,
|
||||
`if` = functionSymbol.hasJvmStaticAnnotation()
|
||||
).add(
|
||||
what = PsiModifier.STRICTFP,
|
||||
`if` = functionSymbol.hasAnnotation("kotlin/jvm/Strictfp", null)
|
||||
).add(
|
||||
what = PsiModifier.SYNCHRONIZED,
|
||||
`if` = functionSymbol.hasAnnotation("kotlin/jvm/Synchronized", null)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user