Update rule hash implementation
This commit is contained in:
parent
3116b457fe
commit
257b8d7b68
18 changed files with 80 additions and 30 deletions
|
|
@ -12,6 +12,10 @@ namespace tree_sitter {
|
|||
return other && (*other->content == *content);
|
||||
}
|
||||
|
||||
size_t Repeat::hash_code() const {
|
||||
return typeid(this).hash_code() ^ content->hash_code();
|
||||
}
|
||||
|
||||
string Repeat::to_string() const {
|
||||
return string("#<repeat ") + content->to_string() + ">";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue