2021-09-22 01:25:52 +02:00
|
|
|
// === /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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|