TypeScript/tests/baselines/reference/jsdocLink5.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

319 lines
6 KiB
Plaintext

[
{
"marker": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"position": 210,
"name": "3"
},
"quickInfo": {
"kind": "function",
"kindModifiers": "",
"textSpan": {
"start": 209,
"length": 1
},
"displayParts": [
{
"text": "function",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "f",
"kind": "functionName"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": "x",
"kind": "parameterName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "any",
"kind": "keyword"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "void",
"kind": "keyword"
}
],
"documentation": [
{
"text": "",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "g()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"textSpan": {
"start": 0,
"length": 16
}
}
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "g()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"textSpan": {
"start": 0,
"length": 16
}
}
},
{
"text": " ",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "g()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"textSpan": {
"start": 0,
"length": 16
}
}
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "g()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"textSpan": {
"start": 0,
"length": 16
}
}
},
{
"text": " 0",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "g()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"textSpan": {
"start": 0,
"length": 16
}
}
},
{
"text": "1",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "g()",
"kind": "linkName",
"target": {
"fileName": "/tests/cases/fourslash/jsdocLink5.ts",
"textSpan": {
"start": 0,
"length": 16
}
}
},
{
"text": " 2",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": "\n",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "u()",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "u() ",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "u()",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "u() 0",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "u()1",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
},
{
"text": " ",
"kind": "text"
},
{
"text": "{@link ",
"kind": "link"
},
{
"text": "u() 2",
"kind": "linkText"
},
{
"text": "}",
"kind": "link"
}
]
}
}
]