Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Friedman Wilson <[email protected]>
  • Loading branch information
montymxb committed Feb 25, 2025
1 parent aad1c3d commit ca34a3b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/language/src/validation/pli-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ export class Pl1Validator {
*/
checkCallStatement(node: CallStatement, acceptor: ValidationAcceptor): void {
const ref = node.call.procedure.ref;
node.call.procedure
if (isDeclaredVariable(ref)) {
// get the parent of the declared variable
const parent = ref.$container;
Expand All @@ -143,11 +142,15 @@ export class Pl1Validator {

// also flag when we have any sort of args list (even an empty one) present after the call
if (node.call.hasArgs) {
acceptor("error", PLIError.IBM1231I.message(node.call.procedure.$refText), {
code: PLIError.IBM1231I.fullCode,
node: node.call,
property: "args",
});
acceptor(
"error",
PLIError.IBM1231I.message(node.call.procedure.$refText),
{
code: PLIError.IBM1231I.fullCode,
node: node.call,
property: "args",
},
);
}
}
}
Expand Down

0 comments on commit ca34a3b

Please sign in to comment.