2021-09-22 01:25:52 +02:00
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// /*FIND ALL REFS*/[|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// doStuff(): void;
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// [|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.[|doStuff|]();
|
|
|
|
// v.propName;
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class1.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class1",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
|
|
|
"isDefinition": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class2.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 271,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// /*FIND ALL REFS*/[|propName|]: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// doStuff(): void;
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.doStuff();
|
|
|
|
// v.[|propName|];
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class1.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class1",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class2.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 284,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// /*FIND ALL REFS*/[|doStuff|](): void;
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// [|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.[|doStuff|]();
|
|
|
|
// v.propName;
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) interface1.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "interface1",
|
|
|
|
"kind": "interfaceName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 16
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 16
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class2.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 271,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// doStuff(): void;
|
|
|
|
// /*FIND ALL REFS*/[|propName|]: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.doStuff();
|
|
|
|
// v.[|propName|];
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) interface1.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "interface1",
|
|
|
|
"kind": "interfaceName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class2.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 284,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// [|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// [|doStuff|](): void;
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// /*FIND ALL REFS*/[|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.[|doStuff|]();
|
|
|
|
// v.propName;
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class1.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class1",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) interface1.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "interface1",
|
|
|
|
"kind": "interfaceName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 16
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 16
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class2.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
|
|
|
"isDefinition": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 271,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// [|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// [|doStuff|](): void;
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// [|doStuff|]() { }
|
|
|
|
// propName: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v./*FIND ALL REFS*/[|doStuff|]();
|
|
|
|
// v.propName;
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class1.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class1",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 34,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) interface1.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "interface1",
|
|
|
|
"kind": "interfaceName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 16
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 118,
|
|
|
|
"length": 16
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "method",
|
|
|
|
"name": "(method) class2.doStuff(): void",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "method",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "doStuff",
|
|
|
|
"kind": "methodName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "void",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 215,
|
|
|
|
"length": 13
|
|
|
|
},
|
|
|
|
"isWriteAccess": true,
|
|
|
|
"isDefinition": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 271,
|
|
|
|
"length": 7
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// doStuff(): void;
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// /*FIND ALL REFS*/[|propName|]: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.doStuff();
|
|
|
|
// v.[|propName|];
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class1.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class1",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) interface1.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "interface1",
|
|
|
|
"kind": "interfaceName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class2.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 284,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
// === /tests/cases/fourslash/findAllRefsInheritedProperties3.ts ===
|
|
|
|
// class class1 extends class1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
// interface interface1 extends interface1 {
|
|
|
|
// doStuff(): void;
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
// class class2 extends class1 implements interface1 {
|
|
|
|
// doStuff() { }
|
|
|
|
// [|propName|]: string;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// var v: class2;
|
|
|
|
// v.doStuff();
|
|
|
|
// v./*FIND ALL REFS*/[|propName|];
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class1.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class1",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 52,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) interface1.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "interface1",
|
|
|
|
"kind": "interfaceName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 139,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
2021-09-22 22:43:52 +02:00
|
|
|
"isDefinition": false
|
2021-09-22 01:25:52 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"definition": {
|
|
|
|
"containerKind": "",
|
|
|
|
"containerName": "",
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"kind": "property",
|
|
|
|
"name": "(property) class2.propName: string",
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"displayParts": [
|
|
|
|
{
|
|
|
|
"text": "(",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "property",
|
|
|
|
"kind": "text"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ")",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "class2",
|
|
|
|
"kind": "className"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ".",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "propName",
|
|
|
|
"kind": "propertyName"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": ":",
|
|
|
|
"kind": "punctuation"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": " ",
|
|
|
|
"kind": "space"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"text": "string",
|
|
|
|
"kind": "keyword"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"references": [
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"contextSpan": {
|
|
|
|
"start": 233,
|
|
|
|
"length": 17
|
|
|
|
},
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"textSpan": {
|
|
|
|
"start": 284,
|
|
|
|
"length": 8
|
|
|
|
},
|
|
|
|
"fileName": "/tests/cases/fourslash/findAllRefsInheritedProperties3.ts",
|
|
|
|
"isWriteAccess": false,
|
|
|
|
"isDefinition": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|