Esempio n. 1
0
 /// <summary>
 /// Generates the text for a StringLiteral builder.
 /// </summary>
 /// <param name="item">The StringLiteral builder to generate the text for.</param>
 protected internal override void VisitStringLiteral(StringLiteral item)
 {
     writer.Write("'");
     if (item.Value != null)
     {
         string value = item.Value.Replace("'", "''");
         writer.Write(value);
     }
     writer.Write("'");
 }
Esempio n. 2
0
 /// <summary>
 /// Visits a StringLiteral builder.
 /// </summary>
 /// <param name="item">The item to visit.</param>
 protected internal virtual void VisitStringLiteral(StringLiteral item)
 {
 }