示例#1
0
 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);
 }
示例#3
0
 public virtual void Visit(DateTimeValueSyntax dateTime)
 {
     DefaultVisit(dateTime);
 }