TypeScript/tests/baselines/reference/findAllRefsDefinition.baseline.jsonc
Nathan Shively-Sanders 15722e6b64
Remove referenceGroups/noReferences from fourslash (#45988)
* Remove referenceGroups/noReferences from fourslash

I left most singleReferenceGroups because there were so many, and my current
PR doesn't affect many of them.

* update fourslash/server too

* Explicitly sort keys

Needed for node 10 compatibility

* Revert "Explicitly sort keys"

This reverts commit 1d1c58a4e3.
It shouldn't be needed now that we're not testing with node 10
2021-09-21 16:25:52 -07:00

147 lines
2.9 KiB
Plaintext

// === /tests/cases/fourslash/findAllRefsDefinition.ts ===
// const /*FIND ALL REFS*/[|x|] = 0;
// [|x|];
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllRefsDefinition.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 6,
"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": 12
}
},
"references": [
{
"textSpan": {
"start": 6,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllRefsDefinition.ts",
"contextSpan": {
"start": 0,
"length": 12
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllRefsDefinition.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]
// === /tests/cases/fourslash/findAllRefsDefinition.ts ===
// const [|x|] = 0;
// /*FIND ALL REFS*/[|x|];
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/findAllRefsDefinition.ts",
"kind": "const",
"name": "const x: 0",
"textSpan": {
"start": 6,
"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": 12
}
},
"references": [
{
"textSpan": {
"start": 6,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllRefsDefinition.ts",
"contextSpan": {
"start": 0,
"length": 12
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 13,
"length": 1
},
"fileName": "/tests/cases/fourslash/findAllRefsDefinition.ts",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]