[FIR] Add NON_FINAL_JVM_RECORD diagnostic

This commit is contained in:
Andrey Zinovyev
2021-08-19 12:03:11 +03:00
committed by Space
parent 6b70aecad5
commit c8381e9b0f
11 changed files with 46 additions and 3 deletions
@@ -961,6 +961,9 @@ object PositioningStrategies {
}
}
val NON_FINAL_MODIFIER_OR_NAME: PositioningStrategy<KtModifierListOwner> =
ModifierSetBasedPositioningStrategy(TokenSet.create(KtTokens.ABSTRACT_KEYWORD, KtTokens.OPEN_KEYWORD, KtTokens.SEALED_KEYWORD))
/**
* @param locateReferencedName whether to remove any nested parentheses while locating the reference element. This is useful for
* diagnostics on super and unresolved references. For example, with the following, only the part inside the parentheses should be