Added another token equality check

This commit is contained in:
Hackerpilot 2014-04-21 15:27:42 -07:00
parent 7086fcf60b
commit 9436b184cc
1 changed files with 5 additions and 0 deletions

View File

@ -249,6 +249,11 @@ struct TokenStructure(IdType, string extraFields = "")
{
public:
bool opEquals(ref const typeof(this) other) const pure nothrow @safe
{
return this.type == other.type && this.text == other.text;
}
/**
* Returs: true if the token has the given type, false otherwise.
*/