diff --git a/src/language/safe-ds-module.ts b/src/language/safe-ds-module.ts index fe542f0ba..b4ffc13a3 100644 --- a/src/language/safe-ds-module.ts +++ b/src/language/safe-ds-module.ts @@ -21,7 +21,7 @@ import { SafeDsClasses } from './builtins/safe-ds-classes.js'; import { SafeDsPackageManager } from './workspace/safe-ds-package-manager.js'; import { SafeDsNodeMapper } from './helpers/safe-ds-node-mapper.js'; import { SafeDsAnnotations } from './builtins/safe-ds-annotations.js'; -import {SafeDsClassHierarchy} from "./typing/safe-ds-class-hierarchy.js"; +import { SafeDsClassHierarchy } from './typing/safe-ds-class-hierarchy.js'; /** * Declaration of custom services - add your own service classes here. diff --git a/src/language/typing/safe-ds-class-hierarchy.ts b/src/language/typing/safe-ds-class-hierarchy.ts index 71c50151c..cf7608add 100644 --- a/src/language/typing/safe-ds-class-hierarchy.ts +++ b/src/language/typing/safe-ds-class-hierarchy.ts @@ -41,7 +41,7 @@ export class SafeDsClassHierarchy { } }; - return stream((generator)()); + return stream(generator()); } /** diff --git a/src/language/validation/inheritance.ts b/src/language/validation/inheritance.ts index ffb8cf552..8419443e3 100644 --- a/src/language/validation/inheritance.ts +++ b/src/language/validation/inheritance.ts @@ -46,10 +46,10 @@ export const classMustNotInheritItself = (services: SafeDsServices) => { return (node: SdsClass, accept: ValidationAcceptor): void => { const superClasses = classHierarchy.streamSuperclasses(node); if (superClasses.includes(node)) { - accept('error', "A class must not directly or indirectly be a subtype of itself.", { + accept('error', 'A class must not directly or indirectly be a subtype of itself.', { node: parentTypesOrEmpty(node)[0], code: CODE_INHERITANCE_CYCLE, }); } - } -} + }; +}; diff --git a/src/language/validation/safe-ds-validator.ts b/src/language/validation/safe-ds-validator.ts index 2b31bae8a..3737afa72 100644 --- a/src/language/validation/safe-ds-validator.ts +++ b/src/language/validation/safe-ds-validator.ts @@ -86,7 +86,7 @@ import { namedTypeMustNotSetTypeParameterMultipleTimes, namedTypeTypeArgumentListMustNotHavePositionalArgumentsAfterNamedArguments, } from './other/types/namedTypes.js'; -import {classMustNotInheritItself, classMustOnlyInheritASingleClass} from "./inheritance.js"; +import { classMustNotInheritItself, classMustOnlyInheritASingleClass } from './inheritance.js'; /** * Register custom validation checks.