TypeScript/tests/cases/fourslash/codeFixClassExtendAbstractMethod_all.ts
Andy 3e32e15895
Add 'fixAllDescription' property to CodeFixAction (#22616)
* Add 'fixAllDescription' property to CodeFixAction

* Code review

* Add to protocol

* Make fixAllDescription be just a string
2018-03-27 18:21:21 -07:00

35 lines
759 B
TypeScript

/// <reference path='fourslash.ts' />
////abstract class A {
//// abstract m(): void;
//// abstract n(): void;
////}
////class B extends A {}
////class C extends A {}
verify.codeFixAll({
fixId: "fixClassDoesntImplementInheritedAbstractMember",
fixAllDescription: "Implement all inherited abstract classes",
newFileContent:
`abstract class A {
abstract m(): void;
abstract n(): void;
}
class B extends A {
m(): void {
throw new Error("Method not implemented.");
}
n(): void {
throw new Error("Method not implemented.");
}
}
class C extends A {
m(): void {
throw new Error("Method not implemented.");
}
n(): void {
throw new Error("Method not implemented.");
}
}`,
});