ULC field has null nameIdentifier
KtUltraLightFieldForSourceDeclaration implements PsiField, for which getNameIdentifier() is marked @NonNull, so some clients expect a non-null return value. #KT-45629 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
6cbdcbe53b
commit
5ce746f1ec
@@ -67,6 +67,9 @@ internal class KtUltraLightFieldForSourceDeclaration(
|
||||
) : KtUltraLightFieldImpl(declaration, name, containingClass, support, modifiers),
|
||||
KtLightFieldForSourceDeclarationSupport {
|
||||
|
||||
private val lightIdentifier = KtLightIdentifier(this, declaration)
|
||||
|
||||
override fun getNameIdentifier(): PsiIdentifier = lightIdentifier
|
||||
override fun getText(): String? = kotlinOrigin.text
|
||||
override fun getTextRange(): TextRange = kotlinOrigin.textRange
|
||||
override fun getTextOffset(): Int = kotlinOrigin.textOffset
|
||||
|
||||
Reference in New Issue
Block a user