()
| 782 | } |
| 783 | func (m *StringNode) NodeType() string { return "String" } |
| 784 | func (m *StringNode) String() string { |
| 785 | if m.noQuote { |
| 786 | return m.Text |
| 787 | } |
| 788 | if m.Quote > 0 { |
| 789 | return fmt.Sprintf("%s%s%s", string(m.Quote), StringEscape(rune(m.Quote), m.Text), string(m.Quote)) |
| 790 | } |
| 791 | return fmt.Sprintf("%q", m.Text) |
| 792 | } |
| 793 | func (m *StringNode) WriteDialect(w DialectWriter) { |
| 794 | w.WriteLiteral(m.Text) |
| 795 | } |
nothing calls this directly
no test coverage detected