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

116 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

// === /a.ts ===
// export /*FIND ALL REFS*/[|default|] 1;
// === /b.ts ===
// import [|a|] from "./a";
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "property",
"name": "(property) default: 1",
"textSpan": {
"start": 0,
"length": 17
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "default",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "1",
"kind": "stringLiteral"
}
]
},
"references": [
{
"textSpan": {
"start": 7,
"length": 7
},
"fileName": "/a.ts",
"contextSpan": {
"start": 0,
"length": 17
},
"isWriteAccess": true,
"isDefinition": true
}
]
},
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/b.ts",
"kind": "alias",
"name": "import a",
"textSpan": {
"start": 7,
"length": 1
},
"displayParts": [
{
"text": "import",
"kind": "keyword"
},
{
"text": " ",
"kind": "space"
},
{
"text": "a",
"kind": "aliasName"
}
],
"contextSpan": {
"start": 0,
"length": 20
}
},
"references": [
{
"textSpan": {
"start": 7,
"length": 1
},
"fileName": "/b.ts",
"contextSpan": {
"start": 0,
"length": 20
},
"isWriteAccess": true,
"isDefinition": false
}
]
}
]