2017-12-07 21:14:18 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
// @allowJs: true
|
|
|
|
// @checkJs: true
|
|
|
|
|
|
|
|
// @Filename: /a.js
|
|
|
|
////class C {
|
|
|
|
//// constructor() {}
|
|
|
|
//// method() {
|
|
|
|
//// this.x;
|
|
|
|
//// this.y();
|
|
|
|
//// this.x;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "addMissingMember",
|
2018-03-28 03:21:21 +02:00
|
|
|
fixAllDescription: "Add all missing members",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`class C {
|
2018-01-12 02:43:27 +01:00
|
|
|
constructor() {
|
|
|
|
this.x = undefined;
|
2017-12-12 21:23:13 +01:00
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
method() {
|
|
|
|
this.x;
|
|
|
|
this.y();
|
|
|
|
this.x;
|
|
|
|
}
|
2018-05-27 23:09:47 +02:00
|
|
|
y() {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|