TypeScript/tests/baselines/reference/findAllRefsInheritedProperties3.baseline.jsonc

1799 lines
37 KiB
Plaintext
Raw Permalink Normal View History

// === /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,
"isDefinition": false
},
{
"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,
"isDefinition": false
},
{
"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,
"isDefinition": false
},
{
"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,
"isDefinition": false
},
{
"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,
"isDefinition": false
}
]
},
{
"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": false
}
]
},
{
"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,
"isDefinition": false
}
]
},
{
"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": false
}
]
},
{
"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,
"isDefinition": false
}
]
},
{
"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": false
}
]
},
{
"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,
"isDefinition": false
}
]
},
{
"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": false
}
]
},
{
"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
}
]
}
]