* feat(services): jsdoc use custom name for display parts * fix(services): jsdoc typo * feat(services): revert jsDoc changes * feat(services): jsdoc improve displayparts with more comment kinds Improve rendering of JSDoc comment text with displayparts for: - `@typedef` - `@callback` - `@param` - `@property` * feat(services): jsdoc improve displayparts for template * test: accept baseline * test: update jsdoc parameterName * feat: resolve pr comments * test: add fourslash tests for jsdoc callback, typedef * test: accept baselines * test: revert changes for api baselines * refactor: naming * refactor: code quality * refactor: clean up code as to pr comments
8020 lines
194 KiB
Plaintext
8020 lines
194 KiB
Plaintext
[
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 63,
|
|
"name": "1"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "simple",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 62,
|
|
"length": 1
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 198,
|
|
"name": "2"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "multiLine",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 197,
|
|
"length": 1
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 302,
|
|
"name": "3"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocSingleLine",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "this is eg of single line jsdoc style comment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 302,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 422,
|
|
"name": "4"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMultiLine",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "this is multiple line jsdoc stule comment\nNew line1\nNew Line2",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 422,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 631,
|
|
"name": "5"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMultiLineMerge",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "Another this one too",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 631,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 737,
|
|
"name": "6"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMixedComments1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "jsdoc comment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 737,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 869,
|
|
"name": "7"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMixedComments2",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "another jsDocComment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 869,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1005,
|
|
"name": "8"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMixedComments3",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "* triplestar jsDocComment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1005,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1164,
|
|
"name": "9"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMixedComments4",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "another jsDocComment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1164,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1350,
|
|
"name": "10"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMixedComments5",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "another jsDocComment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1350,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1536,
|
|
"name": "11"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocMixedComments6",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "jsdoc comment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1536,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1618,
|
|
"name": "12"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "noHelpComment1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1618,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1703,
|
|
"name": "13"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "noHelpComment2",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1703,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1752,
|
|
"name": "14"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "noHelpComment3",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1752,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1928,
|
|
"name": "16"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "sum",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "second number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "Adds two integers and returns the result",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "second number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1928,
|
|
"length": 6
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 2
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 1932,
|
|
"name": "17"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "sum",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "second number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "Adds two integers and returns the result",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "second number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 1928,
|
|
"length": 6
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 2
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2166,
|
|
"name": "19"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "multiply",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is multiplication function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2166,
|
|
"length": 18
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 5
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2169,
|
|
"name": "20"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "multiply",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is multiplication function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2166,
|
|
"length": 18
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 5
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2173,
|
|
"name": "21"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "multiply",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is multiplication function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2166,
|
|
"length": 18
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 2,
|
|
"argumentCount": 5
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2178,
|
|
"name": "22"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "multiply",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is multiplication function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2166,
|
|
"length": 18
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 3,
|
|
"argumentCount": 5
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2182,
|
|
"name": "23"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "multiply",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is multiplication function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "first number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "LastParam",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "anotherTag"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2166,
|
|
"length": 18
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 4,
|
|
"argumentCount": 5
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2372,
|
|
"name": "25"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "f1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "fn f1 with number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "f1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2372,
|
|
"length": 2
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 1
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2380,
|
|
"name": "26"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "f1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "fn f1 with number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "f1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "b",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2380,
|
|
"length": 7
|
|
},
|
|
"selectedItemIndex": 1,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 1
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2823,
|
|
"name": "28"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "subtract",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "f",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "f",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is subtract function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "{ () => string; } } f this is optional param f",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2823,
|
|
"length": 34
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 6
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2827,
|
|
"name": "29"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "subtract",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "f",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "f",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is subtract function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "{ () => string; } } f this is optional param f",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2823,
|
|
"length": 34
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 6
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2832,
|
|
"name": "30"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "subtract",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "f",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "f",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is subtract function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "{ () => string; } } f this is optional param f",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2823,
|
|
"length": 34
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 2,
|
|
"argumentCount": 6
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2839,
|
|
"name": "31"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "subtract",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "f",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "f",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is subtract function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "{ () => string; } } f this is optional param f",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2823,
|
|
"length": 34
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 3,
|
|
"argumentCount": 6
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2846,
|
|
"name": "32"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "subtract",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "f",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "f",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is subtract function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "{ () => string; } } f this is optional param f",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2823,
|
|
"length": 34
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 4,
|
|
"argumentCount": 6
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 2853,
|
|
"name": "33"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "subtract",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "e",
|
|
"documentation": [
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "f",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "f",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": "?",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": true,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is subtract function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is about b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param c",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param d",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "e",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is optional param e",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "{ () => string; } } f this is optional param f",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 2823,
|
|
"length": 34
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 5,
|
|
"argumentCount": 6
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3085,
|
|
"name": "34"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "square",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is input number",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is square function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "paramTag",
|
|
"text": [
|
|
{
|
|
"text": "{ number } a this is input number of paramTag",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is input number",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "returnType",
|
|
"text": [
|
|
{
|
|
"text": "{ number } it is return type",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3085,
|
|
"length": 2
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 1
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3276,
|
|
"name": "35"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "divide",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is a",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is divide function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is a",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "paramTag",
|
|
"text": [
|
|
{
|
|
"text": "{ number } g this is optional param g",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3276,
|
|
"length": 6
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 2
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3280,
|
|
"name": "36"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "divide",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is a",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is divide function",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is a",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "paramTag",
|
|
"text": [
|
|
{
|
|
"text": "{ number } g this is optional param g",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is b",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3276,
|
|
"length": 6
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 2
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3491,
|
|
"name": "37"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "fooBar",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "foo",
|
|
"documentation": [
|
|
{
|
|
"text": "is string",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "foo",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "bar",
|
|
"documentation": [
|
|
{
|
|
"text": "is second string",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "bar",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "Function returns string concat of foo and bar",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "foo",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "is string",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "bar",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "is second string",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3491,
|
|
"length": 11
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 2
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3497,
|
|
"name": "38"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "fooBar",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "foo",
|
|
"documentation": [
|
|
{
|
|
"text": "is string",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "foo",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "bar",
|
|
"documentation": [
|
|
{
|
|
"text": "is second string",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "bar",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "Function returns string concat of foo and bar",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "foo",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "is string",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "bar",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "is second string",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3491,
|
|
"length": 11
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 2
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3874,
|
|
"name": "39"
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3906,
|
|
"name": "40"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocParamTest",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for a",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": "\n",
|
|
"kind": "lineBreak"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is jsdoc style function with param tag as well as inline parameter help",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3906,
|
|
"length": 14
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 4
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3910,
|
|
"name": "41"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocParamTest",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for a",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": "\n",
|
|
"kind": "lineBreak"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is jsdoc style function with param tag as well as inline parameter help",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3906,
|
|
"length": 14
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 4
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3914,
|
|
"name": "42"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocParamTest",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for a",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": "\n",
|
|
"kind": "lineBreak"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is jsdoc style function with param tag as well as inline parameter help",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3906,
|
|
"length": 14
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 2,
|
|
"argumentCount": 4
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 3918,
|
|
"name": "43"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocParamTest",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for a",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": "\n",
|
|
"kind": "lineBreak"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is inline comment for b",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "d",
|
|
"documentation": [],
|
|
"displayParts": [
|
|
{
|
|
"text": "d",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "this is jsdoc style function with param tag as well as inline parameter help",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is first parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "it is third parameter",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 3906,
|
|
"length": 14
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 3,
|
|
"argumentCount": 4
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 4059,
|
|
"name": "45"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocCommentAlignmentTest1",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "This is function comment\nAnd properly aligned comment",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 4059,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 4210,
|
|
"name": "46"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocCommentAlignmentTest2",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [],
|
|
"documentation": [
|
|
{
|
|
"text": "This is function comment\n And aligned with 4 space char margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": []
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 4210,
|
|
"length": 0
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 4826,
|
|
"name": "47"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocCommentAlignmentTest3",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about a\nspanning on two lines and aligned perfectly",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about b\nnot aligned text about parameter will eat only one space",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is function comment\n And aligned with 4 space char margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about a\nspanning on two lines and aligned perfectly",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about b\nnot aligned text about parameter will eat only one space",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 4826,
|
|
"length": 12
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 0,
|
|
"argumentCount": 3
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 4834,
|
|
"name": "48"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocCommentAlignmentTest3",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about a\nspanning on two lines and aligned perfectly",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about b\nnot aligned text about parameter will eat only one space",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is function comment\n And aligned with 4 space char margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about a\nspanning on two lines and aligned perfectly",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about b\nnot aligned text about parameter will eat only one space",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 4826,
|
|
"length": 12
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 1,
|
|
"argumentCount": 3
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 4837,
|
|
"name": "49"
|
|
},
|
|
"signatureHelp": {
|
|
"items": [
|
|
{
|
|
"isVariadic": false,
|
|
"prefixDisplayParts": [
|
|
{
|
|
"text": "jsDocCommentAlignmentTest3",
|
|
"kind": "functionName"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"suffixDisplayParts": [
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"separatorDisplayParts": [
|
|
{
|
|
"text": ",",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"name": "a",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about a\nspanning on two lines and aligned perfectly",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "b",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
},
|
|
{
|
|
"name": "c",
|
|
"documentation": [
|
|
{
|
|
"text": "this is info about b\nnot aligned text about parameter will eat only one space",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"displayParts": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"isOptional": false,
|
|
"isRest": false
|
|
}
|
|
],
|
|
"documentation": [
|
|
{
|
|
"text": "This is function comment\n And aligned with 4 space char margin",
|
|
"kind": "text"
|
|
}
|
|
],
|
|
"tags": [
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "a",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about a\nspanning on two lines and aligned perfectly",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "b",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about b\nspanning on two lines and aligned perfectly\nspanning one more line alined perfectly\n spanning another line with more margin",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "param",
|
|
"text": [
|
|
{
|
|
"text": "c",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "this is info about b\nnot aligned text about parameter will eat only one space",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"applicableSpan": {
|
|
"start": 4826,
|
|
"length": 12
|
|
},
|
|
"selectedItemIndex": 0,
|
|
"argumentIndex": 2,
|
|
"argumentCount": 3
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/signatureHelpCommentsCommentParsing.ts",
|
|
"position": 4841,
|
|
"name": ""
|
|
}
|
|
}
|
|
] |