* 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
155 lines
3.3 KiB
Plaintext
155 lines
3.3 KiB
Plaintext
// === /tests/cases/fourslash/findAllRefsParameterPropertyDeclaration1.ts ===
|
|
// class Foo {
|
|
// constructor(private /*FIND ALL REFS*/[|privateParam|]: number) {
|
|
// let localPrivate = [|privateParam|];
|
|
// this.[|privateParam|] += 10;
|
|
// }
|
|
// }
|
|
|
|
[
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/tests/cases/fourslash/findAllRefsParameterPropertyDeclaration1.ts",
|
|
"kind": "property",
|
|
"name": "(property) Foo.privateParam: number",
|
|
"textSpan": {
|
|
"start": 36,
|
|
"length": 12
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "property",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "Foo",
|
|
"kind": "className"
|
|
},
|
|
{
|
|
"text": ".",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "privateParam",
|
|
"kind": "propertyName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"contextSpan": {
|
|
"start": 28,
|
|
"length": 28
|
|
}
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 36,
|
|
"length": 12
|
|
},
|
|
"fileName": "/tests/cases/fourslash/findAllRefsParameterPropertyDeclaration1.ts",
|
|
"contextSpan": {
|
|
"start": 28,
|
|
"length": 28
|
|
},
|
|
"isWriteAccess": true,
|
|
"isDefinition": true
|
|
},
|
|
{
|
|
"textSpan": {
|
|
"start": 114,
|
|
"length": 12
|
|
},
|
|
"fileName": "/tests/cases/fourslash/findAllRefsParameterPropertyDeclaration1.ts",
|
|
"isWriteAccess": true,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"definition": {
|
|
"containerKind": "",
|
|
"containerName": "",
|
|
"fileName": "/tests/cases/fourslash/findAllRefsParameterPropertyDeclaration1.ts",
|
|
"kind": "parameter",
|
|
"name": "(parameter) privateParam: number",
|
|
"textSpan": {
|
|
"start": 36,
|
|
"length": 12
|
|
},
|
|
"displayParts": [
|
|
{
|
|
"text": "(",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": "parameter",
|
|
"kind": "text"
|
|
},
|
|
{
|
|
"text": ")",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "privateParam",
|
|
"kind": "parameterName"
|
|
},
|
|
{
|
|
"text": ":",
|
|
"kind": "punctuation"
|
|
},
|
|
{
|
|
"text": " ",
|
|
"kind": "space"
|
|
},
|
|
{
|
|
"text": "number",
|
|
"kind": "keyword"
|
|
}
|
|
],
|
|
"contextSpan": {
|
|
"start": 28,
|
|
"length": 28
|
|
}
|
|
},
|
|
"references": [
|
|
{
|
|
"textSpan": {
|
|
"start": 87,
|
|
"length": 12
|
|
},
|
|
"fileName": "/tests/cases/fourslash/findAllRefsParameterPropertyDeclaration1.ts",
|
|
"isWriteAccess": false,
|
|
"isDefinition": false
|
|
}
|
|
]
|
|
}
|
|
] |