cd371daf77
* Fix semicolon-omitting writer * Use writeTrailingSemicolon for do statements
23 lines
394 B
TypeScript
23 lines
394 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// @allowNonTsExtensions: true
|
|
// @Filename: /a.js
|
|
////function /**/MyClass() {
|
|
////}
|
|
////MyClass.prototype.foo = function() {
|
|
//// ({ bar: () => { } })
|
|
////}
|
|
|
|
verify.codeFix({
|
|
description: "Convert function to an ES2015 class",
|
|
newFileContent:
|
|
`class MyClass {
|
|
constructor() {
|
|
}
|
|
foo() {
|
|
({ bar: () => { } })
|
|
}
|
|
}
|
|
`,
|
|
});
|