From 2b4d839c0bef570ed4fe5f8c76d5598e3e073571 Mon Sep 17 00:00:00 2001 From: Fernando Dodino Date: Fri, 15 Sep 2023 00:12:09 -0300 Subject: [PATCH] Renaming inheritsCustom definition --- src/validator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validator.ts b/src/validator.ts index 009fce2e..91226c28 100644 --- a/src/validator.ts +++ b/src/validator.ts @@ -298,7 +298,7 @@ export const shouldNotDuplicateVariablesInLinearization = error(node => }) export const shouldImplementInheritedAbstractMethods = error(node => - !inheritsCustom(node) || !node.allMethods.some(method => !isImplemented(node.allMethods, method) && method.isAbstract()) + !inheritsCustomDefinition(node) || !node.allMethods.some(method => !isImplemented(node.allMethods, method) && method.isAbstract()) ) export const shouldHaveBody = error(node => { @@ -511,7 +511,7 @@ const baseClass = 'Object' const allParents = (module: Module) => module.supertypes.map(supertype => supertype.reference.target).flatMap(supertype => supertype?.hierarchy ?? []) -const inheritsCustom = (module: Module) => +const inheritsCustomDefinition = (module: Module) => notEmpty(allParents(module).filter(element => element.name !== baseClass)) const getReferencedModule = (parent: Node): Module | undefined => match(parent)(