Talk about "undefined rules" instead of "missing rules" internally
The new terminology is more precise and in line with commonly used programming languages. The change involves mainly renaming related compiler pass and files associated with it.redux
parent
e9cb23608d
commit
9717dc3417
@ -1,17 +0,0 @@
|
||||
/* global peg */
|
||||
|
||||
"use strict";
|
||||
|
||||
describe("compiler pass |reportMissingRules|", function() {
|
||||
var pass = peg.compiler.passes.check.reportMissingRules;
|
||||
|
||||
it("reports missing rules", function() {
|
||||
expect(pass).toReportError('start = missing', {
|
||||
message: 'Rule "missing" is not defined.',
|
||||
location: {
|
||||
start: { offset: 8, line: 1, column: 9 },
|
||||
end: { offset: 15, line: 1, column: 16 }
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
@ -0,0 +1,17 @@
|
||||
/* global peg */
|
||||
|
||||
"use strict";
|
||||
|
||||
describe("compiler pass |reportUndefinedRules|", function() {
|
||||
var pass = peg.compiler.passes.check.reportUndefinedRules;
|
||||
|
||||
it("reports undefined rules", function() {
|
||||
expect(pass).toReportError('start = undefined', {
|
||||
message: 'Rule "undefined" is not defined.',
|
||||
location: {
|
||||
start: { offset: 8, line: 1, column: 9 },
|
||||
end: { offset: 17, line: 1, column: 18 }
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue