2015-12-13 00:52:55 +01:00
|
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
|
|
//// class Foo {
|
2019-06-13 21:25:02 +02:00
|
|
|
|
//// constructor([|protected [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}protectedParam|]: number|]) {
|
2015-12-17 01:06:55 +01:00
|
|
|
|
//// let localProtected = [|protectedParam|];
|
2017-09-13 18:02:33 +02:00
|
|
|
|
//// this.[|{| "isWriteAccess": true |}protectedParam|] += 10;
|
2015-12-13 00:52:55 +01:00
|
|
|
|
//// }
|
|
|
|
|
//// }
|
|
|
|
|
|
2019-06-05 21:38:15 +02:00
|
|
|
|
const [rDef, ...ranges] = test.ranges();
|
2017-01-27 17:59:33 +01:00
|
|
|
|
const [r0, r1, r2] = ranges;
|
|
|
|
|
verify.referenceGroups(ranges, [
|
|
|
|
|
{ definition: "(property) Foo.protectedParam: number", ranges: [r0, r2] },
|
|
|
|
|
{ definition: "(parameter) protectedParam: number", ranges: [r1] }
|
|
|
|
|
]);
|