Remove spurious semicolons
This commit is contained in:
parent
661314cf4e
commit
de5deeeb69
10 changed files with 13 additions and 12 deletions
|
|
@ -7,7 +7,7 @@ namespace tree_sitter {
|
|||
using std::vector;
|
||||
|
||||
namespace rules {
|
||||
Choice::Choice(rule_ptr left, rule_ptr right) : left(left), right(right) {};
|
||||
Choice::Choice(rule_ptr left, rule_ptr right) : left(left), right(right) {}
|
||||
|
||||
rule_ptr Choice::Build(const vector<rule_ptr> &rules) {
|
||||
rule_ptr result;
|
||||
|
|
|
|||
|
|
@ -151,7 +151,7 @@ namespace tree_sitter {
|
|||
size_t position;
|
||||
};
|
||||
|
||||
Pattern::Pattern(const string &string) : value(string) {};
|
||||
Pattern::Pattern(const string &string) : value(string) {}
|
||||
|
||||
bool Pattern::operator==(tree_sitter::rules::Rule const &other) const {
|
||||
auto pattern = dynamic_cast<const Pattern *>(&other);
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ namespace tree_sitter {
|
|||
using std::vector;
|
||||
|
||||
namespace rules {
|
||||
Seq::Seq(rule_ptr left, rule_ptr right) : left(left), right(right) {};
|
||||
Seq::Seq(rule_ptr left, rule_ptr right) : left(left), right(right) {}
|
||||
|
||||
rule_ptr Seq::Build(const std::vector<rule_ptr> &rules) {
|
||||
rule_ptr result = make_shared<Blank>();
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace tree_sitter {
|
|||
using std::hash;
|
||||
|
||||
namespace rules {
|
||||
String::String(string value) : value(value) {};
|
||||
String::String(string value) : value(value) {}
|
||||
|
||||
bool String::operator==(const Rule &rule) const {
|
||||
const String *other = dynamic_cast<const String *>(&rule);
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ namespace tree_sitter {
|
|||
using std::hash;
|
||||
|
||||
namespace rules {
|
||||
Symbol::Symbol(const std::string &name) : name(name), type(SymbolTypeNormal) {};
|
||||
Symbol::Symbol(const std::string &name, SymbolType type) : name(name), type(type) {};
|
||||
Symbol::Symbol(const std::string &name) : name(name), type(SymbolTypeNormal) {}
|
||||
Symbol::Symbol(const std::string &name, SymbolType type) : name(name), type(type) {}
|
||||
|
||||
bool Symbol::operator==(const Rule &rule) const {
|
||||
const Symbol *other = dynamic_cast<const Symbol *>(&rule);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
namespace tree_sitter {
|
||||
namespace rules {
|
||||
void Visitor::default_visit(const Rule *rule) {};
|
||||
void Visitor::default_visit(const Rule *rule) {}
|
||||
void Visitor::visit(const Blank *rule) { default_visit(rule); }
|
||||
void Visitor::visit(const Symbol *rule) { default_visit(rule); }
|
||||
void Visitor::visit(const CharacterSet *rule) { default_visit(rule); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue