Rename |reportMissingReferencedRules| check to |reportMissingRules|

The new name is shorter, there is no real loss of meaning.
redux
David Majda 13 years ago
parent 64d26e5db2
commit 3983f46d5d

@ -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); }

@ -7,7 +7,7 @@ PEG.compiler = {
*/
compile: function(ast) {
var CHECK_NAMES = [
"reportMissingReferencedRules",
"reportMissingRules",
"reportLeftRecursion"
];

@ -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

Loading…
Cancel
Save