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 Oct 10, 2023
1 parent e4c3842 commit 9fdc1ac
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/language/validation/other/expressions/references.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import {
isSdsAnnotation,
isSdsCall,
isSdsFunction, isSdsMemberAccess,
isSdsFunction,
isSdsMemberAccess,
isSdsPipeline,
isSdsSchema, isSdsSegment,
isSdsSchema,
isSdsSegment,
SdsReference,
} from '../../../generated/ast.js';
import { AstNode, ValidationAcceptor } from 'langium';
Expand All @@ -24,10 +26,14 @@ export const referenceMustNotBeFunctionPointer = (node: SdsReference, accept: Va
}

if (!isSdsCall(container)) {
accept('error', 'Function pointers are not allowed to provide a cleaner graphical view. Use a lambda instead.', {
node,
code: CODE_REFERENCE_FUNCTION_POINTER,
});
accept(
'error',
'Function pointers are not allowed to provide a cleaner graphical view. Use a lambda instead.',
{
node,
code: CODE_REFERENCE_FUNCTION_POINTER,
},
);
}
};

Expand Down

0 comments on commit 9fdc1ac

Please sign in to comment.