/// <inheritdoc/> public FixedStringSegment Build() { var segment = new FixedStringSegment( @string: _string, optional: _optional, occurrences: _occurences, parent: _parent?.Build(), children: _children.Select(s => s.Build()) ); return(segment); }
/// <inheritdoc/> public VariableStringSegment Build() { var segment = new VariableStringSegment( variableName: _variableName, optional: _optional, occurrences: _occurences, parent: _parent?.Build(), children: _children.Select(s => s.Build()) ); return(segment); }