Files
tsgo/testdata/baselines/reference/fourslash/signatureHelp/jsDocFunctionSignatures6VS.baseline

852 lines
26 KiB
Plaintext

// === SignatureHelp ===
=== /Foo.js ===
// /**
// * @param {string} p1 - A string param
// * @param {string?} p2 - An optional param
// * @param {string} [p3] - Another optional param
// * @param {string} [p4="test"] - An optional param with a default value
// */
// function f1(p1, p2, p3, p4){}
// f1('foo', 'bar', 'baz', 'qux');
// ^
// | ----------------------------------------------------------------------
// | f1(**p1: string**, p2: string | null, p3?: string, p4?: string): void
// | - `p1: string`: - A string param
// | ----------------------------------------------------------------------
// ^
// | ----------------------------------------------------------------------
// | f1(p1: string, **p2: string | null**, p3?: string, p4?: string): void
// | - `p2: string | null`: - An optional param
// | ----------------------------------------------------------------------
// ^
// | ----------------------------------------------------------------------
// | f1(p1: string, p2: string | null, **p3?: string**, p4?: string): void
// | - `p3?: string`: - Another optional param
// | ----------------------------------------------------------------------
// ^
// | ----------------------------------------------------------------------
// | f1(p1: string, p2: string | null, p3?: string, **p4?: string**): void
// | - `p4?: string`: - An optional param with a default value
// | ----------------------------------------------------------------------
[
{
"marker": {
"Position": 244,
"LSPosition": {
"line": 7,
"character": 3
},
"Name": "1",
"Data": {}
},
"item": {
"signatures": [
{
"label": "f1(p1: string, p2: string | null, p3?: string, p4?: string): void",
"parameters": [
{
"label": "p1: string",
"documentation": {
"kind": "markdown",
"value": "- A string param"
}
},
{
"label": "p2: string | null",
"documentation": {
"kind": "markdown",
"value": "- An optional param"
}
},
{
"label": "p3?: string",
"documentation": {
"kind": "markdown",
"value": "- Another optional param"
}
},
{
"label": "p4?: string",
"documentation": {
"kind": "markdown",
"value": "- An optional param with a default value"
}
}
],
"activeParameter": 0,
"_vs_colorizedLabel": {
"Runs": [
{
"ClassificationTypeName": "method name",
"Text": "f1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "(",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p2",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "|",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "null",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p3",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p4",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ")",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ": ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "void",
"_vs_type": "ClassifiedTextRun"
}
],
"_vs_type": "ClassifiedTextElement"
}
}
],
"activeSignature": 0
}
},
{
"marker": {
"Position": 251,
"LSPosition": {
"line": 7,
"character": 10
},
"Name": "2",
"Data": {}
},
"item": {
"signatures": [
{
"label": "f1(p1: string, p2: string | null, p3?: string, p4?: string): void",
"parameters": [
{
"label": "p1: string",
"documentation": {
"kind": "markdown",
"value": "- A string param"
}
},
{
"label": "p2: string | null",
"documentation": {
"kind": "markdown",
"value": "- An optional param"
}
},
{
"label": "p3?: string",
"documentation": {
"kind": "markdown",
"value": "- Another optional param"
}
},
{
"label": "p4?: string",
"documentation": {
"kind": "markdown",
"value": "- An optional param with a default value"
}
}
],
"activeParameter": 1,
"_vs_colorizedLabel": {
"Runs": [
{
"ClassificationTypeName": "method name",
"Text": "f1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "(",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p2",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "|",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "null",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p3",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p4",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ")",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ": ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "void",
"_vs_type": "ClassifiedTextRun"
}
],
"_vs_type": "ClassifiedTextElement"
}
}
],
"activeSignature": 0
}
},
{
"marker": {
"Position": 258,
"LSPosition": {
"line": 7,
"character": 17
},
"Name": "3",
"Data": {}
},
"item": {
"signatures": [
{
"label": "f1(p1: string, p2: string | null, p3?: string, p4?: string): void",
"parameters": [
{
"label": "p1: string",
"documentation": {
"kind": "markdown",
"value": "- A string param"
}
},
{
"label": "p2: string | null",
"documentation": {
"kind": "markdown",
"value": "- An optional param"
}
},
{
"label": "p3?: string",
"documentation": {
"kind": "markdown",
"value": "- Another optional param"
}
},
{
"label": "p4?: string",
"documentation": {
"kind": "markdown",
"value": "- An optional param with a default value"
}
}
],
"activeParameter": 2,
"_vs_colorizedLabel": {
"Runs": [
{
"ClassificationTypeName": "method name",
"Text": "f1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "(",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p2",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "|",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "null",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p3",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p4",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ")",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ": ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "void",
"_vs_type": "ClassifiedTextRun"
}
],
"_vs_type": "ClassifiedTextElement"
}
}
],
"activeSignature": 0
}
},
{
"marker": {
"Position": 265,
"LSPosition": {
"line": 7,
"character": 24
},
"Name": "4",
"Data": {}
},
"item": {
"signatures": [
{
"label": "f1(p1: string, p2: string | null, p3?: string, p4?: string): void",
"parameters": [
{
"label": "p1: string",
"documentation": {
"kind": "markdown",
"value": "- A string param"
}
},
{
"label": "p2: string | null",
"documentation": {
"kind": "markdown",
"value": "- An optional param"
}
},
{
"label": "p3?: string",
"documentation": {
"kind": "markdown",
"value": "- Another optional param"
}
},
{
"label": "p4?: string",
"documentation": {
"kind": "markdown",
"value": "- An optional param with a default value"
}
}
],
"activeParameter": 3,
"_vs_colorizedLabel": {
"Runs": [
{
"ClassificationTypeName": "method name",
"Text": "f1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "(",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p1",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p2",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "|",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "null",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p3",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ", ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "parameter name",
"Text": "p4",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": "?",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ":",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "whitespace",
"Text": " ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "string",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ")",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "punctuation",
"Text": ": ",
"_vs_type": "ClassifiedTextRun"
},
{
"ClassificationTypeName": "keyword",
"Text": "void",
"_vs_type": "ClassifiedTextRun"
}
],
"_vs_type": "ClassifiedTextElement"
}
}
],
"activeSignature": 0
}
}
]