We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3405948 commit 67a940bCopy full SHA for 67a940b
src/services/codefixes/helpers.ts
@@ -322,13 +322,7 @@ export function addNewNodeForMemberSymbol(
322
}
323
324
function shouldAddOverrideKeyword(): boolean {
325
- if (!context.program.getCompilerOptions().noImplicitOverride || !enclosingDeclaration.heritageClauses) {
326
- return false;
327
- }
328
-
329
- const valueDeclaration = checker.getSymbolAtLocation(enclosingDeclaration.heritageClauses[0].types[0].expression)?.valueDeclaration;
330
331
- return !!(valueDeclaration && hasAbstractModifier(valueDeclaration));
+ return !!(context.program.getCompilerOptions().noImplicitOverride && declaration && hasAbstractModifier(declaration));
332
333
334
function createName(node: PropertyName) {
0 commit comments