dcc27ebaf2
* Revert "Revert "Editor support for link tag (#41877)" (#43302)"
This reverts commit 451d4354b9
.
* Fix parsing @link at end of comment
* Parse comments as string when no @link occurs
* fix lint
710 lines
13 KiB
Plaintext
710 lines
13 KiB
Plaintext
[
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 26,
|
|
"name": "1"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 26,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "s",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{string}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 55,
|
|
"name": "2"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 55,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "n",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{number}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 85,
|
|
"name": "3"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 85,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "b",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "boolean",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{boolean}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 112,
|
|
"name": "4"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 112,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "v",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "void",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{void}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 144,
|
|
"name": "5"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 144,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "u",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "undefined",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{undefined}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 171,
|
|
"name": "6"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 171,
|
|
"length": 2
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "nl",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "null",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{null}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 200,
|
|
"name": "7"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 200,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "a",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": "[",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "]",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{array}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 230,
|
|
"name": "8"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 230,
|
|
"length": 1
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "p",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "Promise",
|
|
"kind": "interfaceName"
|
|
},
|
|
{
|
|
"text": "<",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "any",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": ">",
|
|
"kind": "punctuation"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{promise}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 260,
|
|
"name": "9"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 260,
|
|
"length": 8
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "nullable",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{?number}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 298,
|
|
"name": "10"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 298,
|
|
"length": 4
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "func",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "Function",
|
|
"kind": "localName"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{function}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 349,
|
|
"name": "11"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 349,
|
|
"length": 5
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "func1",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "arg0",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "=>",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{function (number): number}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"fileName": "/tests/cases/fourslash/jsDocTypeTag2.js",
|
|
"position": 391,
|
|
"name": "12"
|
|
},
|
|
"quickInfo": {
|
|
"kind": "var",
|
|
"kindModifiers": "",
|
|
"textSpan": {
|
|
"start": 391,
|
|
"length": 4
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "var",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "sOrn",
|
|
"kind": "localName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "string",
|
|
"kind": "keyword"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "|",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"documentation": [],
|
|
"tags": [
|
|
{
|
|
"name": "type",
|
|
"text": [
|
|
{
|
|
"text": "{string | number}",
|
|
"kind": "text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
] |