TypeScript/tests/cases/fourslash/findAllRefsParameterPropertyDeclaration3.ts
Andy Hanson 8515f7e2b5 Change find-all-references tests to test for groups
* Also always test for isWriteAccess and isDefinition
2017-01-31 06:59:16 -08:00

16 lines
546 B
TypeScript

/// <reference path='fourslash.ts'/>
//// class Foo {
//// constructor(protected [|{| "isWriteAccess": true, "isDefinition": true |}protectedParam|]: number) {
//// let localProtected = [|protectedParam|];
//// this.[|protectedParam|] += 10;
//// }
//// }
const ranges = test.ranges();
const [r0, r1, r2] = ranges;
verify.referenceGroups(ranges, [
{ definition: "(property) Foo.protectedParam: number", ranges: [r0, r2] },
{ definition: "(parameter) protectedParam: number", ranges: [r1] }
]);