import { AstUtils } from "langium";
import { ast } from "../../ast.js";
import { tryOrLog } from "../_shared.js";
export const expandElementExprChecks = (_services) => {
  return tryOrLog((el, accept) => {
    if (AstUtils.hasContainerOfType(el, ast.isRelationExpression)) {
      accept("warning", `Redundant usage, expand predicate resolves parent element only when used in relations`, {
        node: el
      });
    }
  });
};
