Optimize parse item equality
This commit is contained in:
parent
70ba76762c
commit
66c033e411
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ namespace tree_sitter {
|
|||
(other.lhs == lhs) &&
|
||||
(other.consumed_symbol_count == consumed_symbol_count) &&
|
||||
(other.lookahead_sym == lookahead_sym) &&
|
||||
(other.rule->operator==(*rule));
|
||||
(other.rule == rule || other.rule->operator==(*rule));
|
||||
}
|
||||
|
||||
int ParseItem::precedence() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue