2015-06-25 21:57:30 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
////interface I {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}property1|]: number;|]
|
2015-06-25 21:57:30 +02:00
|
|
|
//// property2: string;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////var foo: I;
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|var [{ [|{| "contextRangeIndex": 2 |}property1|]: prop1 }, { [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}property1|], property2 } ] = [foo, foo];|]
|
2015-06-25 21:57:30 +02:00
|
|
|
|
2019-06-06 00:01:34 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2] = test.ranges();
|
|
|
|
verify.referenceGroups([r0, r1], [{
|
|
|
|
definition: "(property) I.property1: number",
|
|
|
|
ranges: [r0, r1, r2]
|
|
|
|
}]);
|
2017-01-27 17:59:33 +01:00
|
|
|
verify.referenceGroups(r2, [
|
|
|
|
{ definition: "(property) I.property1: number", ranges: [r0, r1] },
|
|
|
|
{ definition: "var property1: number", ranges: [r2] }
|
|
|
|
]);
|