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

120 lines
2.3 KiB
Plaintext

// === /tests/cases/fourslash/a.js ===
// exports.[|area|] = function (r) { return r * r; }
// === /tests/cases/fourslash/b.js ===
// var mod = require('./a');
// var t = mod./*FIND ALL REFS*/[|area|](10);
[
{
"definition": {
"containerKind": "",
"containerName": "",
"fileName": "/tests/cases/fourslash/a.js",
"kind": "property",
"name": "(property) area: (r: any) => number",
"textSpan": {
"start": 8,
"length": 4
},
"displayParts": [
{
"text": "(",
"kind": "punctuation"
},
{
"text": "property",
"kind": "text"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "area",
"kind": "propertyName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "(",
"kind": "punctuation"
},
{
"text": "r",
"kind": "parameterName"
},
{
"text": ":",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "any",
"kind": "keyword"
},
{
"text": ")",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "=>",
"kind": "punctuation"
},
{
"text": " ",
"kind": "space"
},
{
"text": "number",
"kind": "keyword"
}
],
"contextSpan": {
"start": 0,
"length": 12
}
},
"references": [
{
"textSpan": {
"start": 8,
"length": 4
},
"fileName": "/tests/cases/fourslash/a.js",
"contextSpan": {
"start": 0,
"length": 45
},
"isWriteAccess": true,
"isDefinition": true
},
{
"textSpan": {
"start": 38,
"length": 4
},
"fileName": "/tests/cases/fourslash/b.js",
"isWriteAccess": false,
"isDefinition": false
}
]
}
]