public static void Add(this SyntaxList <KeyValueSyntax> list, string name, DateTimeValueSyntax value) { if (list == null) { throw new ArgumentNullException(nameof(list)); } list.Add(new KeyValueSyntax(name, value)); }
public override void Visit(DateTimeValueSyntax dateTime) { if (dateTime.Token == null) { _diagnostics.Error(dateTime.Span, $"A DateTimeValueSyntax must have a non null Token"); } base.Visit(dateTime); }
public virtual void Visit(DateTimeValueSyntax dateTime) { DefaultVisit(dateTime); }