protected bool Equals(MatchNameRule other) { return(string.Equals(Name, other.Name) && Equals(Type, other.Type) && IsArraySubsequence == other.IsArraySubsequence); }
/// <summary> /// rule_name = identifier [ ":" type ] /// </summary> private MatchNameRule parseRuleName() { if (!peek(LexemType.Identifier)) return null; var node = new MatchNameRule { Name = getValue() }; if (check(LexemType.Colon)) node.Type = ensure(parseType, ParserMessages.TypeSignatureExpected); return node; }