TypeScript/tests/baselines/reference/findAllReferencesLinkTag3.baseline.jsonc
Nathan Shively-Sanders c4c6a83922
Add @linkcode and @linkplain tags (#44208)
* Add @linkcode and @linkplain tags

They are just like @link tags but request fixed-width and normal
presentation, respectively.

Fixes #43935

* revert JSDocComment -> JSDoc SyntaxKind rename

* update API baselines

* fix lint
2021-05-24 13:01:58 -07:00

876 lines
21 KiB
Plaintext

// === /tests/cases/fourslash/findAllReferencesLinkTag3.ts ===
// namespace NPR {
// export class Consider {
// This = class {
// show() { }
// }
// [|m|]/*FIND ALL REFS*/() { }
// }
// /**
// * {@linkcode Consider.prototype.[|m|]}
// * {@linkplain Consider#[|m|]}
// * {@linkcode Consider#This#show}
// * {@linkplain Consider.This.show}
// * {@linkcode NPR.Consider#This#show}
// * {@linkplain NPR.Consider.This#show}
// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing .
// * {@linkcode NPR.Consider.This.show}
// */
// export function ref() { }
// }
// /**
// * {@linkplain NPR.Consider#This#show hello hello}
// * {@linkplain NPR.Consider.This#show}
// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing .
// * {@linkcode NPR.Consider.This.show}
// */
// export function outerref() { }
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"kind": "method",
"name": "(method) NPR.Consider.m(): void",
"textSpan": {
"start": 108,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "method",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "NPR",
"kind": "moduleName"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "Consider",
"kind": "className"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "m",
"kind": "methodName"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "void",
"kind": "keyword"
}
],
"contextSpan": {
"start": 108,
"length": 7
}
},
"references": [
{
"textSpan": {
"start": 108,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"contextSpan": {
"start": 108,
"length": 7
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 167,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 198,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]
// === /tests/cases/fourslash/findAllReferencesLinkTag3.ts ===
// namespace NPR {
// export class Consider {
// This = class {
// [|show|]/*FIND ALL REFS*/() { }
// }
// m() { }
// }
// /**
// * {@linkcode Consider.prototype.m}
// * {@linkplain Consider#m}
// * {@linkcode Consider#This#[|show|]}
// * {@linkplain Consider.This.[|show|]}
// * {@linkcode NPR.Consider#This#[|show|]}
// * {@linkplain NPR.Consider.This#[|show|]}
// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing .
// * {@linkcode NPR.Consider.This.[|show|]}
// */
// export function ref() { }
// }
// /**
// * {@linkplain NPR.Consider#This#[|show|] hello hello}
// * {@linkplain NPR.Consider.This#[|show|]}
// * {@linkcode NPR.Consider#This.show} # doesn't parse trailing .
// * {@linkcode NPR.Consider.This.[|show|]}
// */
// export function outerref() { }
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"kind": "method",
"name": "(method) (Anonymous class).show(): void",
"textSpan": {
"start": 79,
"length": 4
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "method",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "(Anonymous class)",
"kind": "className"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "show",
"kind": "methodName"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "void",
"kind": "keyword"
}
],
"contextSpan": {
"start": 79,
"length": 10
}
},
"references": [
{
"textSpan": {
"start": 79,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"contextSpan": {
"start": 79,
"length": 10
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 233,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 272,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 314,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 357,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 468,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 551,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 602,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 705,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]
// === /tests/cases/fourslash/findAllReferencesLinkTag3.ts ===
// namespace NPR {
// export class Consider {
// [|This|]/*FIND ALL REFS*/ = class {
// show() { }
// }
// m() { }
// }
// /**
// * {@linkcode Consider.prototype.m}
// * {@linkplain Consider#m}
// * {@linkcode Consider#[|This|]#show}
// * {@linkplain Consider.[|This|].show}
// * {@linkcode NPR.Consider#[|This|]#show}
// * {@linkplain NPR.Consider.[|This|]#show}
// * {@linkcode NPR.Consider#[|This|].show} # doesn't parse trailing .
// * {@linkcode NPR.Consider.[|This|].show}
// */
// export function ref() { }
// }
// /**
// * {@linkplain NPR.Consider#[|This|]#show hello hello}
// * {@linkplain NPR.Consider.[|This|]#show}
// * {@linkcode NPR.Consider#[|This|].show} # doesn't parse trailing .
// * {@linkcode NPR.Consider.[|This|].show}
// */
// export function outerref() { }
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"kind": "property",
"name": "(property) NPR.Consider.This: typeof (Anonymous class)",
"textSpan": {
"start": 52,
"length": 4
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "NPR",
"kind": "moduleName"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "Consider",
"kind": "className"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "This",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "typeof",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "(Anonymous class)",
"kind": "className"
}
],
"contextSpan": {
"start": 52,
"length": 47
}
},
"references": [
{
"textSpan": {
"start": 52,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"contextSpan": {
"start": 52,
"length": 47
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 228,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 267,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 309,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 352,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 394,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 463,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 546,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 597,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 635,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 700,
"length": 4
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]
// === /tests/cases/fourslash/findAllReferencesLinkTag3.ts ===
// namespace NPR {
// export class [|Consider|]/*FIND ALL REFS*/ {
// This = class {
// show() { }
// }
// m() { }
// }
// /**
// * {@linkcode [|Consider|].prototype.m}
// * {@linkplain [|Consider|]#m}
// * {@linkcode [|Consider|]#This#show}
// * {@linkplain [|Consider|].This.show}
// * {@linkcode NPR.[|Consider|]#This#show}
// * {@linkplain NPR.[|Consider|].This#show}
// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing .
// * {@linkcode NPR.[|Consider|].This.show}
// */
// export function ref() { }
// }
// /**
// * {@linkplain NPR.[|Consider|]#This#show hello hello}
// * {@linkplain NPR.[|Consider|].This#show}
// * {@linkcode NPR.[|Consider|]#This.show} # doesn't parse trailing .
// * {@linkcode NPR.[|Consider|].This.show}
// */
// export function outerref() { }
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"kind": "class",
"name": "class NPR.Consider",
"textSpan": {
"start": 33,
"length": 8
},
"displayParts": [
{
"text": "class",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "NPR",
"kind": "moduleName"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "Consider",
"kind": "className"
}
],
"contextSpan": {
"start": 20,
"length": 101
}
},
"references": [
{
"textSpan": {
"start": 33,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"contextSpan": {
"start": 20,
"length": 101
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 148,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 189,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 219,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 258,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 300,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 343,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 385,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 454,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 537,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 588,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 626,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 691,
"length": 8
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]
// === /tests/cases/fourslash/findAllReferencesLinkTag3.ts ===
// namespace [|NPR|]/*FIND ALL REFS*/ {
// export class Consider {
// This = class {
// show() { }
// }
// m() { }
// }
// /**
// * {@linkcode Consider.prototype.m}
// * {@linkplain Consider#m}
// * {@linkcode Consider#This#show}
// * {@linkplain Consider.This.show}
// * {@linkcode [|NPR|].Consider#This#show}
// * {@linkplain [|NPR|].Consider.This#show}
// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing .
// * {@linkcode [|NPR|].Consider.This.show}
// */
// export function ref() { }
// }
// /**
// * {@linkplain [|NPR|].Consider#This#show hello hello}
// * {@linkplain [|NPR|].Consider.This#show}
// * {@linkcode [|NPR|].Consider#This.show} # doesn't parse trailing .
// * {@linkcode [|NPR|].Consider.This.show}
// */
// export function outerref() { }
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"kind": "module",
"name": "namespace NPR",
"textSpan": {
"start": 10,
"length": 3
},
"displayParts": [
{
"text": "namespace",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "NPR",
"kind": "moduleName"
}
],
"contextSpan": {
"start": 0,
"length": 513
}
},
"references": [
{
"textSpan": {
"start": 10,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"contextSpan": {
"start": 0,
"length": 513
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 296,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 339,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 381,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 450,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 533,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 584,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 622,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 687,
"length": 3
},
"fileName": "/tests/cases/fourslash/findAllReferencesLinkTag3.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]