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

185 lines
3.4 KiB
Plaintext
Raw Normal View History

// === /b.ts ===
// import { [|foo|] as [|oof|] } from "./a";
// === /a.ts ===
// export function /*FIND ALL REFS*/[|foo|](): void {}
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "function",
"name": "function foo(): void",
"textSpan": {
"start": 16,
"length": 3
},
"displayParts": [
{
"text": "function",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "foo",
"kind": "functionName"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "void",
"kind": "keyword"
}
],
"contextSpan": {
"start": 0,
"length": 30
}
},
"references": [
{
"textSpan": {
"start": 16,
"length": 3
},
"fileName": "/a.ts",
"contextSpan": {
"start": 0,
"length": 30
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 9,
"length": 3
},
"fileName": "/b.ts",
"contextSpan": {
"start": 0,
"length": 33
},
"isWriteAccess": false,
"isDefinition": false
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/b.ts",
"kind": "alias",
"name": "(alias) function oof(): void\nimport oof",
"textSpan": {
"start": 16,
"length": 3
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "alias",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "function",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "oof",
"kind": "aliasName"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "void",
"kind": "keyword"
},
{
"text": "\n",
"kind": "lineBreak"
},
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "oof",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 33
}
},
"references": [
{
"textSpan": {
"start": 16,
"length": 3
},
"fileName": "/b.ts",
"contextSpan": {
"start": 0,
"length": 33
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]