[SLC] extract non-common logic from computeModalityForMethod
^KTIJ-23783
This commit is contained in:
committed by
Space Team
parent
a8c111b304
commit
00ab33bbf9
+4
@@ -100,6 +100,10 @@ internal class SymbolLightSimpleMethod(
|
||||
result = modifiers
|
||||
)
|
||||
|
||||
if (functionSymbol.isExternal) {
|
||||
modifiers.add(PsiModifier.NATIVE)
|
||||
}
|
||||
|
||||
modifiers.add(functionSymbol.toPsiVisibilityForMember())
|
||||
|
||||
if (!suppressStatic && functionSymbol.hasJvmStaticAnnotation()) {
|
||||
|
||||
-4
@@ -89,10 +89,6 @@ internal fun KtSymbolWithModality.computeModalityForMethod(
|
||||
}
|
||||
}
|
||||
|
||||
if (this is KtFunctionSymbol && isExternal) {
|
||||
result.add(PsiModifier.NATIVE)
|
||||
}
|
||||
|
||||
if (isTopLevel) {
|
||||
result.add(PsiModifier.STATIC)
|
||||
val needFinalModifier = when (this) {
|
||||
|
||||
Reference in New Issue
Block a user