Skip to content

Commit

Permalink
fix: overridden functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Jan 15, 2024
1 parent 44f8e46 commit ad84cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ export class Validator {
_requiresInheritdoc ||=
node instanceof FunctionDefinition && (node.visibility === 'external' || node.visibility === 'public') && !node.isConstructor;

// Internal virtual function
_requiresInheritdoc ||= node instanceof FunctionDefinition && node.visibility === 'internal' && node.virtual;
// Overridden internal functions
_requiresInheritdoc ||= node instanceof FunctionDefinition && node.visibility === 'internal' && !!node.vOverrideSpecifier;

// Public variable
_requiresInheritdoc ||= node instanceof VariableDeclaration && node.visibility === 'public';
Expand Down

0 comments on commit ad84cd9

Please sign in to comment.