Skip to content

Commit

Permalink
Expressions: Fix super call completions.
Browse files Browse the repository at this point in the history
  • Loading branch information
LlamaLad7 committed Jul 9, 2024
1 parent 5c32ef9 commit d139d74
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,12 @@ object MEExpressionCompletionUtil {
variants += arrayLitExpr
}
}
is MESuperCallExpression -> {
// Might be missing its parentheses
val callExpr = factory.createExpression("super.?()") as MESuperCallExpression
expression.memberName?.let { callExpr.memberName!!.replace(it) }
variants += callExpr
}
}

return variants
Expand Down

0 comments on commit d139d74

Please sign in to comment.