Skip to content

Commit fd426c4

Browse files
committed
info func completion
1 parent a7d6e16 commit fd426c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/kotlin/org/tabooproject/development/completion/InfoFuncCompletion.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ class InfoFuncCompletion: CompletionContributor() {
1919

2020
override fun fillCompletionVariants(parameters: CompletionParameters, result: CompletionResultSet) {
2121
val position = parameters.position
22-
val parent = position.parent
2322
// 确保前面是个对象, 否则不提供打印
24-
(parent.parent as? KtDotQualifiedExpression)?.receiverExpression ?: return
23+
(position.parent.parent as? KtDotQualifiedExpression)?.receiverExpression ?: return
2524
result.addElement(
2625
PrioritizedLookupElement.withPriority(
2726
LookupElementBuilder.create("info")

0 commit comments

Comments
 (0)