void SetCommandSegment(ConfigCommand command, Segment segment) { command.Segment = segment; if (segment.IsTerminal) { command.Using = _config.TerminalType; } else if (_ntTypes.TryGetValue(segment, out var cUsing)) { command.Using = cUsing; } }
protected override ConfigRule Reduce_Rule_2(ConfigRule segmentListSeg, ConfigCommand commandSeg) { segmentListSeg.Command = commandSeg; return(segmentListSeg); }