mirror of
https://codeberg.org/ProgramSnail/lang.git
synced 2025-12-07 23:48:44 +00:00
combine functions fixes
This commit is contained in:
parent
5e70f0015f
commit
4714a05467
5 changed files with 117 additions and 44 deletions
|
|
@ -115,6 +115,16 @@ public:
|
|||
value_ += name;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
bool operator==(const Identifier &other_identifier) const {
|
||||
return type_ == other_identifier.type_ && value_ == other_identifier.value_;
|
||||
}
|
||||
|
||||
bool operator!=(const Identifier &other_identifier) const {
|
||||
return !(*this == other_identifier);
|
||||
}
|
||||
|
||||
private:
|
||||
IdentifierType type_;
|
||||
std::string value_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue