TypeScript/tests/cases/fourslash/unusedParameterInConstructor1AddUnderscore.ts
Andy d957b1c8c2
fixUnusedIdentifier: Remove arguments corresponding to unused parameters (#25011)
* fixUnusedIdentifier: Remove arguments corresponding to unused parameters

* Update API (#24966)

* Fix handling of deletions: Make a list of things to delete and don't delete until the end

* Remove dummy test

* Bug fixes

* Update API (#24966)

* Move code to textChanges
2018-06-27 09:26:47 -07:00

16 lines
384 B
TypeScript

/// <reference path='fourslash.ts' />
// @noUnusedParameters: true
////class C1 {
//// constructor(p1: string, public p2: boolean, public p3: any, p5) { p5; }
////}
verify.codeFix({
index: 1,
description: "Prefix 'p1' with an underscore",
newFileContent:
`class C1 {
constructor(_p1: string, public p2: boolean, public p3: any, p5) { p5; }
}`,
});