/// <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); }
/// <summary> /// Visits the text literal. /// </summary> /// <param name="text">The text.</param> public virtual void VisitTextLiteral(TextLiteral text) { }
public virtual void Visit(TextLiteral text) { _writer.Write(text.Text); }
/// <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);