This commit is contained in:
Christian Parpart
2019-06-19 13:11:27 +02:00
parent e27313bc82
commit 953e8a178b
9 changed files with 135 additions and 65 deletions
-5
View File
@@ -181,11 +181,6 @@ bool SyntacticallyEqual::statementEqual(Block const& _lhs, Block const& _rhs)
});
}
bool SyntacticallyEqual::statementEqual(Comment const& _lhs, Comment const& _rhs)
{
return _lhs.text == _rhs.text;
}
bool SyntacticallyEqual::visitDeclaration(TypedName const& _lhs, TypedName const& _rhs)
{
if (_lhs.type != _rhs.type)
+2 -1
View File
@@ -58,7 +58,8 @@ public:
bool statementEqual(Break const&, Break const&) { return true; }
bool statementEqual(Continue const&, Continue const&) { return true; }
bool statementEqual(Block const& _lhs, Block const& _rhs);
bool statementEqual(Comment const& _lhs, Comment const& _rhs);
bool statementEqual(Comment const&, Comment const&) { return true; }
private:
bool statementEqual(Instruction const& _lhs, Instruction const& _rhs);
bool statementEqual(Label const& _lhs, Label const& _rhs);