Represents the signature of something callable. A signature can have a label, like a function-name, a doc-comment, and a set of parameters.

Constructor

new(label:String, ?documentation:EitherType<String, MarkdownString>)

Creates a new signature information object.

Parameters:

label

A label string.

documentation

A doc string.

Variables

activeParameter:Null<Int>

The index of the active parameter.

If provided, this is used in place of {@linkcode SignatureHelp.activeSignature}.

documentation:Null<EitherType<String, MarkdownString>>

The human-readable doc-comment of this signature. Will be shown in the UI but can be omitted.

label:String

The label of this signature. Will be shown in the UI.

parameters:Array<ParameterInformation>

The parameters of this signature.