* 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
16 lines
384 B
TypeScript
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; }
|
|
}`,
|
|
});
|