TypeScript/tests/cases/fourslash/renameParameterPropertyDeclaration4.ts

11 lines
358 B
TypeScript
Raw Normal View History

2015-12-13 00:52:55 +01:00
/// <reference path='fourslash.ts'/>
//// class Foo {
2019-06-13 21:25:02 +02:00
//// constructor([|protected { [|{| "contextRangeIndex": 0 |}protectedParam|] }|]) {
2015-12-17 01:06:55 +01:00
//// let myProtectedParam = [|protectedParam|];
2015-12-13 00:52:55 +01:00
//// }
//// }
2019-05-31 20:32:25 +02:00
const [r0Def, r0, r1] = test.ranges();
verify.renameLocations([r0, r1], [{ range: r0, prefixText: "protectedParam: " }, r1]);