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

173 lines
3.7 KiB
Plaintext

// === /tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts ===
// const x = function () { return 111111; }
// x./*FIND ALL REFS*/[|someProperty|] = 5;
// x["[|someProperty|]"] = 3;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts",
"kind": "property",
"name": "(property) x.someProperty: number",
"textSpan": {
"start": 43,
"length": 12
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "someProperty",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "number",
"kind": "keyword"
}
],
"contextSpan": {
"start": 41,
"length": 14
}
},
"references": [
{
"textSpan": {
"start": 43,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts",
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 64,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts",
"isWriteAccess": true,
"isDefinition": true
}
]
}
]
// === /tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts ===
// const x = function () { return 111111; }
// x.[|someProperty|] = 5;
// x["/*FIND ALL REFS*/[|someProperty|]"] = 3;
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts",
"kind": "property",
"name": "(property) x.someProperty: number",
"textSpan": {
"start": 43,
"length": 12
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "x",
"kind": "localName"
},
{
"text": ".",
"kind": "punctuation"
},
{
"text": "someProperty",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "number",
"kind": "keyword"
}
],
"contextSpan": {
"start": 41,
"length": 14
}
},
"references": [
{
"textSpan": {
"start": 43,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts",
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 64,
"length": 12
},
"fileName": "/tests/cases/fourslash/referencesForStringLiteralPropertyNames6.ts",
"isWriteAccess": true,
"isDefinition": true
}
]
}
]