public static SignaturePart Sequence([ItemNotNull][NotNull] IEnumerable <SignaturePart> parts, [CanBeNull] string name = null) { var result = SequencePart.From(parts); result.Name = name; return(result); }
protected override JObject Visit(SequencePart part) { return(new JObject { ["$seq"] = new JArray(part.Parts.Select(p => p.AcceptForValue(this))) }); }
public void Visit(SequencePart part) { VisitWithDelimiter(part.Parts, " "); }
void ISignatureVisitor.Visit(SequencePart part) => result = Visit(part);
protected abstract T Visit([NotNull] SequencePart part);