TypeScript/tests/cases/fourslash/unusedVariableInForLoop5FSAddUnderscore.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

11 lines
269 B
TypeScript

/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
////for (const elem in ["a", "b", "c"]) {}
verify.codeFix({
index: 1,
description: "Prefix 'elem' with an underscore",
newFileContent: 'for (const _elem in ["a", "b", "c"]) {}',
});