test/passes-test.js: Add missing semicolons
Fixes the following JSHint errors: ./test/passes-test.js: line 12, col 6, Missing semicolon. ./test/passes-test.js: line 25, col 4, Missing semicolon. ./test/passes-test.js: line 229, col 41, Missing semicolon.
This commit is contained in:
parent
0fe5769024
commit
34d19a7dc6
|
@ -9,7 +9,7 @@ test("removes proxy rules", function() {
|
||||||
initializer: null,
|
initializer: null,
|
||||||
rules: rules,
|
rules: rules,
|
||||||
startRule: startRule
|
startRule: startRule
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var proxiedRule = {
|
var proxiedRule = {
|
||||||
|
@ -22,7 +22,7 @@ test("removes proxy rules", function() {
|
||||||
var proxiedRuleRef = {
|
var proxiedRuleRef = {
|
||||||
type: "rule_ref",
|
type: "rule_ref",
|
||||||
name: "proxied"
|
name: "proxied"
|
||||||
}
|
};
|
||||||
|
|
||||||
function simpleGrammarWithStartAndProxied(startRuleExpression) {
|
function simpleGrammarWithStartAndProxied(startRuleExpression) {
|
||||||
return simpleGrammar(
|
return simpleGrammar(
|
||||||
|
@ -226,7 +226,7 @@ test("computes stack depths", function() {
|
||||||
|
|
||||||
for (var i = 0; i < cases.length; i++) {
|
for (var i = 0; i < cases.length; i++) {
|
||||||
var ast = PEG.parser.parse(cases[i].grammar);
|
var ast = PEG.parser.parse(cases[i].grammar);
|
||||||
PEG.compiler.passes.stackDepths(ast)
|
PEG.compiler.passes.stackDepths(ast);
|
||||||
|
|
||||||
deepEqual(ast.rules["start"].resultStackDepth, cases[i].resultStackDepth);
|
deepEqual(ast.rules["start"].resultStackDepth, cases[i].resultStackDepth);
|
||||||
deepEqual(ast.rules["start"].posStackDepth, cases[i].posStackDepth);
|
deepEqual(ast.rules["start"].posStackDepth, cases[i].posStackDepth);
|
||||||
|
|
Loading…
Reference in a new issue