TypeScript/tests/cases/fourslash/findAllRefsInheritedProperties2.ts

15 lines
592 B
TypeScript
Raw Normal View History

2015-12-23 05:26:54 +01:00
/// <reference path='fourslash.ts'/>
//// interface interface1 extends interface1 {
2019-06-13 21:25:02 +02:00
//// [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}doStuff|](): void;|] // r0
//// [|[|{| "isDefinition": true, "contextRangeIndex": 2 |}propName|]: string;|] // r1
2015-12-23 05:26:54 +01:00
//// }
////
//// var v: interface1;
//// v.[|doStuff|](); // r2
//// v.[|propName|]; // r3
2019-06-06 00:01:34 +02:00
const [r0Def, r0, r1Def, r1, r2, r3] = test.ranges();
verify.singleReferenceGroup("(method) interface1.doStuff(): void", [r0, r2]);
verify.singleReferenceGroup("(property) interface1.propName: string", [r1, r3]);