mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[kotlin] KTIJ-36297 clarified comment
GitOrigin-RevId: 47965b0321008ebc51502c436860bb4dfbfe59ab
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d075e210a3
commit
35ea0f86c6
+3
-2
@@ -207,8 +207,9 @@ abstract class AbstractCompletionDummyIdentifierProviderService : CompletionDumm
|
||||
|
||||
private fun specialExtensionReceiverDummyIdentifierSuffix(tokenBefore: PsiElement): String? {
|
||||
if (tokenBefore.parentOfType<KtTypeReference>() != null) return null // already parsed as type reference
|
||||
// If we just type `val a: <caret>`, then there is no `KtTypeReference` in the PSI tree,
|
||||
// but we do not want to capture these cases here.
|
||||
// If we just type `val a: <caret>`, then there is no `KtTypeReference` in the PSI tree.
|
||||
// These cases work correctly without the special treatment of this function and would break when adding `.f`.
|
||||
// See: KTIJ-36297
|
||||
val potentialColonBefore = tokenBefore.getPrevSiblingIgnoringWhitespaceAndComments()
|
||||
if (potentialColonBefore.elementType == KtTokens.COLON) return null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user