Пример #1
0
 public static MatchableTokenKindSpec ToMatchableTokenKindSpec(MatchableTokenKind tokenKind)
 => tokenKind;
Пример #2
0
 public MatchableTokenKindSpec(MatchableTokenKind tokenKind, bool skipped)
 {
     TokenKind = tokenKind ?? throw new ArgumentNullException(nameof(tokenKind));
     Skipped   = skipped;
 }
Пример #3
0
 public static MatchableTokenKindSpec Skip(MatchableTokenKind tokenKind)
 => new MatchableTokenKindSpec(tokenKind, true);