TypeScript/tests/cases/fourslash/codeFixUnusedIdentifier_all_delete_js.ts

76 lines
1.1 KiB
TypeScript

/// <reference path='fourslash.ts' />
// @allowJs: true
// @Filename: /a.js
/////** @template T Parameter doc comment */
////function f() {}
////
/////**
//// * Doc
//// * @template T Comment
//// */
////function g() {}
////
/////**
//// * Doc
//// * @template T Comment
//// * @template U Comment
//// */
////function h() {}
////
/////**
//// * Doc
//// * @template T,U Comment
//// */
////function h2() {}
////
/////** @template T Comment @return {void} */
////function i() {}
////
/////**
////Doc
////@template T comment
////@template U comment
////@param {number} x
////*/
////function j(x) { return x; }
verify.codeFixAll({
fixId: "unusedIdentifier_delete",
fixAllDescription: ts.Diagnostics.Delete_all_unused_declarations.message,
newFileContent:
`/** Parameter doc comment */
function f() {}
/**
* Doc
* Comment
*/
function g() {}
/**
* Doc
* Comment
* Comment
*/
function h() {}
/**
* Doc
* Comment
*/
function h2() {}
/** Comment @return {void} */
function i() {}
/**
Doc
comment
comment
@param {number} x
*/
function j(x) { return x; }`,
});