예제 #1
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 public OptionNode(
     string text,
     int position,
     int length,
     QuotedOrNonquotedValueNode value)
     : this(text, position, length, OptionType.Value)
 {
     Value = value;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 public CmdLineNode(
     [NotNull] string text,
     int position,
     int length,
     [NotNull] QuotedOrNonquotedValueNode programName,
     [NotNull, ItemNotNull] CommandNode[] commands,
     [NotNull, ItemNotNull] OptionNode[] options) : base(text, position, length)
 {
     if (programName == null)
     {
         throw new ArgumentNullException(nameof(programName));
     }
     if (commands == null)
     {
         throw new ArgumentNullException(nameof(commands));
     }
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     ProgramName = programName;
     Commands    = commands;
     Options     = options;
 }