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

183 lines
4.1 KiB
Plaintext

// === /tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts ===
// var x = { "/*FIND ALL REFS*/[|someProperty|]": 0 }
// x["[|someProperty|]"] = 3;
// x.[|someProperty|] = 5;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"kind": "property",
"name": "(property) \"someProperty\": number",
"textSpan": {
"start": 11,
"length": 12
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "\"someProperty\"",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "number",
"kind": "keyword"
}
],
"contextSpan": {
"start": 10,
"length": 17
}
},
"references": [
{
"textSpan": {
"start": 11,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"contextSpan": {
"start": 10,
"length": 17
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 33,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 55,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"isWriteAccess": true,
"isDefinition": false
}
]
}
]
// === /tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts ===
// var x = { "[|someProperty|]": 0 }
// x[/*FIND ALL REFS*/"[|someProperty|]"] = 3;
// x.[|someProperty|] = 5;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"kind": "property",
"name": "(property) \"someProperty\": number",
"textSpan": {
"start": 11,
"length": 12
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "\"someProperty\"",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "number",
"kind": "keyword"
}
],
"contextSpan": {
"start": 10,
"length": 17
}
},
"references": [
{
"textSpan": {
"start": 11,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"contextSpan": {
"start": 10,
"length": 17
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 33,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"isWriteAccess": false,
"isDefinition": false
},
{
"textSpan": {
"start": 55,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames4.ts",
"isWriteAccess": true,
"isDefinition": false
}
]
}
]