TypeScript/tests/baselines/reference/jsdocLink1.baseline
Nathan Shively-Sanders 98b4ac2cde
@link: format trailing () as part of linkName (#46428)
Parsing separates the identifier part of the link tag from its text, but
the editor should present an identifier followed by `()` as a single
identifier since people use that syntax as a function sigil.

I prefer `#'` personally, you know, xkcd 297, nudge nudge.
2021-10-20 08:36:40 -07:00

204 lines
4.4 KiB
Plaintext

[
{
"marker": {
"fileName": "/tests/cases/fourslash/jsdocLink1.ts",
"position": 189,
"name": ""
},
"quickInfo": {
"kind": "function",
"kindModifiers": "",
"textSpan": {
"start": 189,
"length": 2
},
"displayParts": [
{
"text": "function",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "CC",
"kind": "functionName"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "void",
"kind": "keyword"
}
],
"documentation": [
{
"text": "",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "C",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink1.ts",
"textSpan": {
"start": 0,
"length": 11
}
}
},
{
"text": "}",
"kind": "link"
}
],
"tags": [
{
"name": "wat",
"text": [
{
"text": "Makes a ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "C",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink1.ts",
"textSpan": {
"start": 0,
"length": 11
}
}
},
{
"text": "}",
"kind": "link"
},
{
"text": ". A default one.\n",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "C()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink1.ts",
"textSpan": {
"start": 0,
"length": 11
}
}
},
{
"text": "}",
"kind": "link"
},
{
"text": "\n",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "C",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink1.ts",
"textSpan": {
"start": 0,
"length": 11
}
}
},
{
"text": "|postfix text",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": "\n",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "unformatted postfix text",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
}
]
},
{
"name": "see",
"text": [
{
"text": "",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "C",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink1.ts",
"textSpan": {
"start": 0,
"length": 11
}
}
},
{
"text": "}",
"kind": "link"
},
{
"text": " its great",
"kind": "text"
}
]
}
]
}
}
]