How to get the list of methods from the receiver at the point of autocompletion?

This is what I currently have:

extend(CompletionType.BASIC, psiElement(), object : CompletionProvider<CompletionParameters>() {
override fun addCompletions(
parameters: CompletionParameters,
context: ProcessingContext,
result: CompletionResultSet
) {
val receiver = ((parameters.position.parent) as KtSimpleNameExpression).getReceiverExpression()
result.addElement(LookupElementBuilder.create(""))
}

})


0
1 comment

Please provide some more explanation on what you want to achieve and provide some minimal sample Kotlin code for context, thanks.

0

Please sign in to leave a comment.