3e32e15895
* Add 'fixAllDescription' property to CodeFixAction * Code review * Add to protocol * Make fixAllDescription be just a string
35 lines
642 B
TypeScript
35 lines
642 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class C extends Object {
|
|
//// constructor() {
|
|
//// this;
|
|
//// this;
|
|
//// super();
|
|
//// }
|
|
////}
|
|
////class D extends Object {
|
|
//// constructor() {
|
|
//// this;
|
|
//// super();
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFixAll({
|
|
fixId: "classSuperMustPrecedeThisAccess",
|
|
fixAllDescription: "Make all 'super()' calls the first statement in their constructor",
|
|
newFileContent: `class C extends Object {
|
|
constructor() {
|
|
super();
|
|
this;
|
|
this;
|
|
}
|
|
}
|
|
class D extends Object {
|
|
constructor() {
|
|
super();
|
|
this;
|
|
}
|
|
}`,
|
|
});
|
|
|