Simplify hashing of rules

This commit is contained in:
Max Brunsfeld 2014-02-15 16:12:16 -08:00
parent 5c1a0982df
commit a63624f2aa
12 changed files with 29 additions and 15 deletions

View file

@ -12,7 +12,7 @@ namespace tree_sitter {
}
size_t Repeat::hash_code() const {
return typeid(this).hash_code() ^ content->hash_code();
return content->hash_code();
}
rule_ptr Repeat::copy() const {