2018-08-16 00:25:25 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
// @Filename: foo.js
|
|
|
|
// @noEmit: true
|
|
|
|
// @allowJs: true
|
|
|
|
// @checkJs: true
|
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
////var x = { [|"[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}someProperty|]": 0|] }
|
2019-09-27 22:54:50 +02:00
|
|
|
////[|x["[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}someProperty|]"] = 3;|]
|
|
|
|
////[|x.[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 4 |}someProperty|] = 5;|]
|
2018-08-16 00:25:25 +02:00
|
|
|
|
2019-09-27 22:54:50 +02:00
|
|
|
const [r0Def, r0, r1Def, r1, r2Def, r2] = test.ranges();
|
2019-06-03 23:13:47 +02:00
|
|
|
const ranges = [r0, r1, r2];
|
2018-08-16 00:25:25 +02:00
|
|
|
verify.referenceGroups(r0, [{ definition: '(property) "someProperty": number', ranges }]);
|
|
|
|
verify.referenceGroups([r1, r2], [
|
2019-06-03 23:13:47 +02:00
|
|
|
{ definition: '(property) "someProperty": number', ranges },
|
2018-08-16 00:25:25 +02:00
|
|
|
]);
|