* Start fixing fixId * Fix tests * Add comment * Fix unit tests, remove fixAllDescription when unavailable * Add codeFixAllAvailable to fourslash harness
22 lines
403 B
TypeScript
22 lines
403 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////class C {
|
|
//// method() {
|
|
//// yield* this.y();
|
|
//// }
|
|
////}
|
|
|
|
verify.codeFix({
|
|
index: 0,
|
|
description: ignoreInterpolations(ts.Diagnostics.Declare_method_0),
|
|
newFileContent:
|
|
`class C {
|
|
method() {
|
|
yield* this.y();
|
|
}
|
|
y() {
|
|
throw new Error("Method not implemented.");
|
|
}
|
|
}`,
|
|
});
|