Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Sep 21, 2023
1 parent d96473d commit e09f9f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {isSdsDeclaration, SdsTypeParameterConstraint} from '../../../generated/ast.js';
import {getContainerOfType, ValidationAcceptor} from 'langium';
import { isSdsDeclaration, SdsTypeParameterConstraint } from '../../../generated/ast.js';
import { getContainerOfType, ValidationAcceptor } from 'langium';

export const CODE_TYPE_PARAMETER_CONSTRAINT_LEFT_OPERAND = 'type-parameter-constraint/left-operand';

export const typeParameterConstraintLeftOperandMustBeOwnTypeParameter = (
node: SdsTypeParameterConstraint,
accept: ValidationAcceptor,
) => {
const typeParameter = node.leftOperand.ref
const typeParameter = node.leftOperand.ref;
if (!typeParameter) {
return;
}
Expand Down
4 changes: 1 addition & 3 deletions src/language/validation/safe-ds-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ import { templateStringMustHaveExpressionBetweenTwoStringParts } from './other/e
import { yieldMustNotBeUsedInPipeline } from './other/statements/assignments.js';
import { attributeMustHaveTypeHint, parameterMustHaveTypeHint, resultMustHaveTypeHint } from './types.js';
import { moduleDeclarationsMustMatchFileKind, moduleWithDeclarationsMustStatePackage } from './other/modules.js';
import {
typeParameterConstraintLeftOperandMustBeOwnTypeParameter
} from "./other/declarations/typeParameterConstraints.js";
import { typeParameterConstraintLeftOperandMustBeOwnTypeParameter } from './other/declarations/typeParameterConstraints.js';

/**
* Register custom validation checks.
Expand Down

0 comments on commit e09f9f2

Please sign in to comment.