TypeScript/tests/baselines/reference/findAllRefsForStringLiteralTypes.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

95 lines
1.8 KiB
Plaintext

// === /a.ts ===
// type Options = "/*FIND ALL REFS*/[|option 1|]" | "option 2";
// let myOption: Options = "[|option 1|]";
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "var",
"name": "option 1",
"textSpan": {
"start": 16,
"length": 8
},
"displayParts": [
{
"text": "\"option 1\"",
"kind": "stringLiteral"
}
]
},
"references": [
{
"textSpan": {
"start": 16,
"length": 8
},
"fileName": "/a.ts",
"isWriteAccess": false,
"isDefinition": false,
"isInString": true
},
{
"textSpan": {
"start": 65,
"length": 8
},
"fileName": "/a.ts",
"isWriteAccess": false,
"isDefinition": false,
"isInString": true
}
]
}
]
// === /a.ts ===
// type Options = "[|option 1|]" | "option 2";
// let myOption: Options = "/*FIND ALL REFS*/[|option 1|]";
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/a.ts",
"kind": "var",
"name": "option 1",
"textSpan": {
"start": 65,
"length": 8
},
"displayParts": [
{
"text": "\"option 1\"",
"kind": "stringLiteral"
}
]
},
"references": [
{
"textSpan": {
"start": 16,
"length": 8
},
"fileName": "/a.ts",
"isWriteAccess": false,
"isDefinition": false,
"isInString": true
},
{
"textSpan": {
"start": 65,
"length": 8
},
"fileName": "/a.ts",
"isWriteAccess": false,
"isDefinition": false,
"isInString": true
}
]
}
]