Added another token equality check
This commit is contained in:
parent
7086fcf60b
commit
9436b184cc
|
@ -249,6 +249,11 @@ struct TokenStructure(IdType, string extraFields = "")
|
||||||
{
|
{
|
||||||
public:
|
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.
|
* Returs: true if the token has the given type, false otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue