2016-05-04 07:40:40 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////interface I {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|["[|{| "isDefinition": true, "contextRangeIndex": 0 |}prop1|]"]: () => void;|]
|
2016-05-04 07:40:40 +02:00
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class C implements I {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|["[|{| "isDefinition": true, "contextRangeIndex": 2 |}prop1|]"]: any;|]
|
2016-05-04 07:40:40 +02:00
|
|
|
////}
|
|
|
|
////
|
|
|
|
////var x: I = {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|["[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}prop1|]"]: function () { }|],
|
2016-05-04 07:40:40 +02:00
|
|
|
////}
|
|
|
|
|
2019-06-06 00:01:34 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2Def, r2] = test.ranges();
|
|
|
|
verify.referenceGroups([r0, r1, r2], [
|
2018-03-28 04:36:16 +02:00
|
|
|
{ definition: { text: '(property) I["prop1"]: () => void', range: r0 }, ranges: [r0, r2] },
|
|
|
|
{ definition: { text: '(property) C["prop1"]: any', range: r1 }, ranges: [r1] },
|
2017-01-27 17:59:33 +01:00
|
|
|
]);
|