Browse Source

Rename |reportMissingReferencedRules| check to |reportMissingRules|

The new name is shorter, there is no real loss of meaning.
redux
David Majda 10 years ago
parent
commit
3983f46d5d
  1. 2
      src/checks.js
  2. 2
      src/compiler.js
  3. 2
      test/checks-test.js

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

2
src/compiler.js

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

2
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

Loading…
Cancel
Save