add labels, and inX properties to lookahead getState
This commit is contained in:
parent
9e0cc028ed
commit
030d5f7c6b
@ -19,7 +19,11 @@ var STATE_KEYS = [
|
|||||||
"exprAllowed",
|
"exprAllowed",
|
||||||
"potentialArrowAt",
|
"potentialArrowAt",
|
||||||
"currLine",
|
"currLine",
|
||||||
"input"
|
"input",
|
||||||
|
"inType",
|
||||||
|
"inFunction",
|
||||||
|
"inGenerator",
|
||||||
|
"labels"
|
||||||
];
|
];
|
||||||
|
|
||||||
pp.getState = function () {
|
pp.getState = function () {
|
||||||
@ -29,6 +33,7 @@ pp.getState = function () {
|
|||||||
state[key] = this[key]
|
state[key] = this[key]
|
||||||
}
|
}
|
||||||
state.context = this.context.slice()
|
state.context = this.context.slice()
|
||||||
|
state.labels = this.labels.slice()
|
||||||
return state
|
return state
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user