Auto-format: no single-line functions

This commit is contained in:
Max Brunsfeld 2015-07-31 16:32:24 -07:00
parent e89ec7c85e
commit c18351772a
24 changed files with 243 additions and 77 deletions

View file

@ -25,15 +25,21 @@ bool Seq::operator==(const Rule &rule) const {
return other && (*other->left == *left) && (*other->right == *right);
}
size_t Seq::hash_code() const { return left->hash_code() ^ right->hash_code(); }
size_t Seq::hash_code() const {
return left->hash_code() ^ right->hash_code();
}
rule_ptr Seq::copy() const { return std::make_shared<Seq>(*this); }
rule_ptr Seq::copy() const {
return std::make_shared<Seq>(*this);
}
string Seq::to_string() const {
return string("(seq ") + left->to_string() + " " + right->to_string() + ")";
}
void Seq::accept(Visitor *visitor) const { visitor->visit(this); }
void Seq::accept(Visitor *visitor) const {
visitor->visit(this);
}
} // namespace rules
} // namespace tree_sitter