diff --git a/src/checks.js b/src/checks.js index c16f54f..40adb1b 100644 --- a/src/checks.js +++ b/src/checks.js @@ -8,7 +8,7 @@ */ PEG.compiler.checks = { /* Checks that all referenced rules exist. */ - reportMissingReferencedRules: function(ast) { + reportMissingRules: function(ast) { function nop() {} function checkExpression(node) { check(node.expression); } diff --git a/src/compiler.js b/src/compiler.js index ae073cc..cd6ff8b 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -7,7 +7,7 @@ PEG.compiler = { */ compile: function(ast) { var CHECK_NAMES = [ - "reportMissingReferencedRules", + "reportMissingRules", "reportLeftRecursion" ]; diff --git a/test/checks-test.js b/test/checks-test.js index 3e18558..d69a63d 100644 --- a/test/checks-test.js +++ b/test/checks-test.js @@ -7,7 +7,7 @@ test("reports missing referenced rules", function() { raises( function() { var ast = PEG.parser.parse(grammar); - PEG.compiler.checks.reportMissingReferencedRules(ast); + PEG.compiler.checks.reportMissingRules(ast); }, function(e) { return e instanceof PEG.GrammarError