Correctly check type is ParseActionTypeRecover
This commit is contained in:
parent
f829e81f30
commit
dee86f908a
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ bool ParseState::has_shift_action() const {
|
|||
void ParseState::each_referenced_state(function<void(ParseStateId *)> fn) {
|
||||
for (auto &entry : terminal_entries)
|
||||
for (ParseAction &action : entry.second.actions)
|
||||
if (action.type == ParseActionTypeShift || ParseActionTypeRecover)
|
||||
if (action.type == ParseActionTypeShift || action.type == ParseActionTypeRecover)
|
||||
fn(&action.state_index);
|
||||
for (auto &entry : nonterminal_entries)
|
||||
fn(&entry.second);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue