function reportUndefinedRules(ast, options, session) {
  const check = visitor.build({
    rule_ref(node) {
      if (!asts.findRule(ast, node.name)) {
        session.error(
          `Rule "${node.name}" is not defined`,
          node.location
        );
      }
    },
  });

  check(ast);
}
// Checks that all referenced rules exist.
Checks that all referenced rules exist.
Checks that all referenced rules exist .
function reportUndefinedRules(ast, options, session) {
  const check = visitor.build({
    rule_ref(node) {
      if (!asts.findRule(ast, node.name)) {
        session.error(
          `Rule "${node.name}" is not defined`,
          node.location
        );
      }
    },
  });
  check(ast);
}
function reportUndefinedRules ( ast , options , session ) { const check = visitor . build ( { rule_ref ( node ) { if ( ! asts . findRule ( ast , node . name ) ) { session . error ( ` ${ node . name } ` , node . location ) ; } } , } ) ; check ( ast ) ; }
Checks that all referenced rules exist.
Checks that all referenced rules exist .