Simplify hashing of rules
This commit is contained in:
parent
5c1a0982df
commit
a63624f2aa
12 changed files with 29 additions and 15 deletions
|
|
@ -18,7 +18,7 @@ namespace tree_sitter {
|
|||
}
|
||||
|
||||
size_t Symbol::hash_code() const {
|
||||
return typeid(this).hash_code() ^ hash<string>()(name) ^ hash<bool>()(is_auxiliary);
|
||||
return hash<string>()(name) ^ hash<bool>()(is_auxiliary);
|
||||
}
|
||||
|
||||
rule_ptr Symbol::copy() const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue