public ParserInfo WithElement(CustomElementDescriptor element)
 {
     if (this.Element == element)
     {
         return(this);
     }
     return(new ParserInfo(this.Parser, element, this.Missing, this.IsTerm));
 }
 public ParserInfo(
     Parser <LexicalToken, SyntaxElement> parser,
     CustomElementDescriptor element,
     Func <SyntaxElement> missing,
     bool isTerm = false)
 {
     this.Parser  = parser;
     this.Element = element;
     this.Missing = missing;
     this.IsTerm  = isTerm;
 }