Example #1
0
 /// <summary>
 /// Visits the text literal.
 /// </summary>
 /// <param name="text">The text.</param>
 public virtual void VisitTextLiteral(TextLiteral text)
 {
     if (text == null)
     {
         return;
     }
     _writer.Write(text.Text);
 }
Example #2
0
 /// <summary>
 /// Visits the text literal.
 /// </summary>
 /// <param name="text">The text.</param>
 public virtual void VisitTextLiteral(TextLiteral text)
 {
 }
Example #3
0
 public virtual void Visit(TextLiteral text)
 {
     _writer.Write(text.Text);
 }
Example #4
0
 /// <summary>
 /// Determines whether the specified <see cref="TextLiteral" />, is equal to this instance.
 /// </summary>
 /// <param name="other">The other.</param>
 /// <returns>true if equal; otherwise, false</returns>
 protected bool Equals(TextLiteral other) =>
 Equals(Attributes, other.Attributes) && string.Equals(Text, other.Text);