TypeScript/tests/cases/fourslash/findAllRefsInClassExpression.ts

13 lines
483 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts'/>
2019-06-13 21:25:02 +02:00
////interface I { [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}boom|](): void;|] }
////new class C implements I {
2019-06-13 21:25:02 +02:00
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}boom|](){}|]
////}
2019-06-06 00:01:34 +02:00
const [r0Def, r0, r1Def, r1] = test.ranges();
verify.referenceGroups([r0, r1], [
{ definition: "(method) I.boom(): void", ranges: [r0] },
{ definition: "(method) C.boom(): void", ranges: [r1] }
]);