TypeScript/tests/baselines/reference/findAllRefsReExportRightNameWrongSymbol.baseline.jsonc

1259 lines
23 KiB
Plaintext
Raw Normal View History

// === /a.ts ===
// export const /*FIND ALL REFS*/[|x|] = 0;
// === /c.ts ===
// export { x } from "./b";
// import { [|x|] } from "./a";
// [|x|];
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 13,
"length": 1
},
"displayParts": [
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
}
],
"contextSpan": {
"start": 0,
"length": 19
}
},
"references": [
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/a.ts",
"contextSpan": {
"start": 0,
"length": 19
},
"isWriteAccess": true,
"isDefinition": true
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/c.ts",
"kind": "alias",
"name": "(alias) const x: 0\nimport x",
"textSpan": {
"start": 34,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 25,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 34,
"length": 1
},
"fileName": "/c.ts",
"contextSpan": {
"start": 25,
"length": 24
},
"isWriteAccess": true,
"isDefinition": false
},
{
"textSpan": {
"start": 50,
"length": 1
},
"fileName": "/c.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]
// === /c.ts ===
// export { [|x|] } from "./b";
// import { x } from "./a";
// x;
// === /d.ts ===
// import { [|x|] } from "./c";
// === /b.ts ===
// export const /*FIND ALL REFS*/[|x|] = 0;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/b.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 13,
"length": 1
},
"displayParts": [
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
}
],
"contextSpan": {
"start": 0,
"length": 19
}
},
"references": [
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/b.ts",
"contextSpan": {
"start": 0,
"length": 19
},
"isWriteAccess": true,
"isDefinition": true
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/c.ts",
"kind": "alias",
"name": "(alias) const x: 0\nexport x",
"textSpan": {
"start": 9,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "export",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 9,
"length": 1
},
"fileName": "/c.ts",
"contextSpan": {
"start": 0,
"length": 24
},
"isWriteAccess": true,
"isDefinition": false
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/d.ts",
"kind": "alias",
"name": "(alias) const x: 0\nimport x",
"textSpan": {
"start": 9,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 9,
"length": 1
},
"fileName": "/d.ts",
"contextSpan": {
"start": 0,
"length": 24
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]
// === /c.ts ===
// export { /*FIND ALL REFS*/[|x|] } from "./b";
// import { x } from "./a";
// x;
// === /d.ts ===
// import { [|x|] } from "./c";
// === /b.ts ===
// export const [|x|] = 0;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/c.ts",
"kind": "alias",
"name": "(alias) const x: 0\nexport x",
"textSpan": {
"start": 9,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "export",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 9,
"length": 1
},
"fileName": "/c.ts",
"contextSpan": {
"start": 0,
"length": 24
},
"isWriteAccess": true,
"isDefinition": true
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/d.ts",
"kind": "alias",
"name": "(alias) const x: 0\nimport x",
"textSpan": {
"start": 9,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 9,
"length": 1
},
"fileName": "/d.ts",
"contextSpan": {
"start": 0,
"length": 24
},
"isWriteAccess": true,
"isDefinition": false
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/b.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 13,
"length": 1
},
"displayParts": [
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
}
],
"contextSpan": {
"start": 0,
"length": 19
}
},
"references": [
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/b.ts",
"contextSpan": {
"start": 0,
"length": 19
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]
// === /a.ts ===
// export const [|x|] = 0;
// === /c.ts ===
// export { x } from "./b";
// import { /*FIND ALL REFS*/[|x|] } from "./a";
// [|x|];
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/c.ts",
"kind": "alias",
"name": "(alias) const x: 0\nimport x",
"textSpan": {
"start": 34,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 25,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 34,
"length": 1
},
"fileName": "/c.ts",
"contextSpan": {
"start": 25,
"length": 24
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 50,
"length": 1
},
"fileName": "/c.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 13,
"length": 1
},
"displayParts": [
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
}
],
"contextSpan": {
"start": 0,
"length": 19
}
},
"references": [
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/a.ts",
"contextSpan": {
"start": 0,
"length": 19
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]
// === /a.ts ===
// export const [|x|] = 0;
// === /c.ts ===
// export { x } from "./b";
// import { [|x|] } from "./a";
// /*FIND ALL REFS*/[|x|];
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/c.ts",
"kind": "alias",
"name": "(alias) const x: 0\nimport x",
"textSpan": {
"start": 34,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 25,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 34,
"length": 1
},
"fileName": "/c.ts",
"contextSpan": {
"start": 25,
"length": 24
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 50,
"length": 1
},
"fileName": "/c.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 13,
"length": 1
},
"displayParts": [
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
}
],
"contextSpan": {
"start": 0,
"length": 19
}
},
"references": [
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/a.ts",
"contextSpan": {
"start": 0,
"length": 19
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]
// === /d.ts ===
// import { /*FIND ALL REFS*/[|x|] } from "./c";
// === /c.ts ===
// export { [|x|] } from "./b";
// import { x } from "./a";
// x;
// === /b.ts ===
// export const [|x|] = 0;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/d.ts",
"kind": "alias",
"name": "(alias) const x: 0\nimport x",
"textSpan": {
"start": 9,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 9,
"length": 1
},
"fileName": "/d.ts",
"contextSpan": {
"start": 0,
"length": 24
},
"isWriteAccess": true,
"isDefinition": true
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/c.ts",
"kind": "alias",
"name": "(alias) const x: 0\nexport x",
"textSpan": {
"start": 9,
"length": 1
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "export",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 24
}
},
"references": [
{
"textSpan": {
"start": 9,
"length": 1
},
"fileName": "/c.ts",
"contextSpan": {
"start": 0,
"length": 24
},
"isWriteAccess": true,
"isDefinition": false
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/b.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 13,
"length": 1
},
"displayParts": [
{
"text": "const",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "0",
"kind": "stringLiteral"
}
],
"contextSpan": {
"start": 0,
"length": 19
}
},
"references": [
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/b.ts",
"contextSpan": {
"start": 0,
"length": 19
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]