protected RuleLexerFactory( [NotNull] ITerminalLexerFactory terminalLexerFactory, [NotNull] IValueRangeLexerFactory valueRangeLexerFactory, [NotNull] IAlternationLexerFactory alternationLexerFactory, [NotNull] IConcatenationLexerFactory concatenationLexerFactory, [NotNull] IRepetitionLexerFactory repetitionLexerFactory, [NotNull] IOptionLexerFactory optionLexerFactory) { Terminal = terminalLexerFactory ?? throw new ArgumentNullException(nameof(terminalLexerFactory)); ValueRange = valueRangeLexerFactory ?? throw new ArgumentNullException(nameof(valueRangeLexerFactory)); Alternation = alternationLexerFactory ?? throw new ArgumentNullException(nameof(alternationLexerFactory)); Concatenation = concatenationLexerFactory ?? throw new ArgumentNullException(nameof(concatenationLexerFactory)); Repetition = repetitionLexerFactory ?? throw new ArgumentNullException(nameof(repetitionLexerFactory)); Option = optionLexerFactory ?? throw new ArgumentNullException(nameof(optionLexerFactory)); }
public OptionalDelimitedListLexerFactory( IOptionLexerFactory optionLexerFactory, IConcatenationLexerFactory concatenationLexerFactory, IAlternationLexerFactory alternationLexerFactory, ITerminalLexerFactory terminalLexerFactory, IRepetitionLexerFactory repetitionLexerFactory, ILexerFactory <OptionalWhiteSpace> optionalWhiteSpaceLexerFactory) { if (optionLexerFactory == null) { throw new ArgumentNullException(nameof(optionLexerFactory)); } if (concatenationLexerFactory == null) { throw new ArgumentNullException(nameof(concatenationLexerFactory)); } if (alternationLexerFactory == null) { throw new ArgumentNullException(nameof(alternationLexerFactory)); } if (terminalLexerFactory == null) { throw new ArgumentNullException(nameof(terminalLexerFactory)); } if (optionalWhiteSpaceLexerFactory == null) { throw new ArgumentNullException(nameof(optionalWhiteSpaceLexerFactory)); } if (repetitionLexerFactory == null) { throw new ArgumentNullException(nameof(repetitionLexerFactory)); } OptionLexerFactory = optionLexerFactory; ConcatenationLexerFactory = concatenationLexerFactory; AlternationLexerFactory = alternationLexerFactory; TerminalLexerFactory = terminalLexerFactory; OptionalWhiteSpaceLexerFactory = optionalWhiteSpaceLexerFactory; RepetitionLexerFactory = repetitionLexerFactory; }