toCompletionItem

fun DocumentedFunction.toCompletionItem(chained: Boolean): <Error class: unknown class>

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(): <Error class: unknown class>

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


fun String.toCompletionItem(): <Error class: unknown class>

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