Fix mistake in invoking translateNonTerminalCode
This commit is contained in:
parent
e22f608109
commit
4138495ae1
|
@ -366,7 +366,7 @@ semantics.addOperation('buildSubscription(mode)', {
|
||||||
return ES5.translateNonterminalCode(children,
|
return ES5.translateNonterminalCode(children,
|
||||||
function(n) {
|
function(n) {
|
||||||
return n.buildSubscription(self.args.mode);
|
return n.buildSubscription(self.args.mode);
|
||||||
});
|
}) || this.interval.contents;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,8 @@ function translateNonterminalCode(children, nodeTranslator) {
|
||||||
var modifiedSourceActions = {
|
var modifiedSourceActions = {
|
||||||
_nonterminal: function(children) {
|
_nonterminal: function(children) {
|
||||||
return translateNonterminalCode(children,
|
return translateNonterminalCode(children,
|
||||||
function(n) { return n.modifiedSource; });
|
function(n) { return n.modifiedSource; })
|
||||||
|
|| this.interval.contents;
|
||||||
},
|
},
|
||||||
_iter: function(_) {
|
_iter: function(_) {
|
||||||
throw new Error('_iter semantic action should never be hit');
|
throw new Error('_iter semantic action should never be hit');
|
||||||
|
|
Loading…
Reference in New Issue