TypeScript/tests/cases/fourslash/renameParameterPropertyDeclaration4.ts
2019-06-13 12:41:21 -07:00

11 lines
358 B
TypeScript

/// <reference path='fourslash.ts'/>
//// class Foo {
//// constructor([|protected { [|{| "contextRangeIndex": 0 |}protectedParam|] }|]) {
//// let myProtectedParam = [|protectedParam|];
//// }
//// }
const [r0Def, r0, r1] = test.ranges();
verify.renameLocations([r0, r1], [{ range: r0, prefixText: "protectedParam: " }, r1]);