toCompletionItem

fun DocumentedFunction.toCompletionItem(chained: Boolean): CompletionItem

Converts a DocumentedFunction to a CompletionItem for use in function name completion.

Parameters

function

the documented function to convert

chained

whether the function is chained call, hence the first parameter should not be included in the snippet


fun DocsParameter.toCompletionItem(): CompletionItem

Converts a DocsParameter to a CompletionItem for use in parameter name completion.


fun String.toCompletionItem(): CompletionItem

Converts a generic string value, such as an allowed value for a parameter, to a CompletionItem.