Tokens equal, if they have equal text and types.
@override bool operator ==(Object token) => (token is Token) && (token.text == this.text) && (token.type == this.type);