(t lex.Token)
| 777 | return &StringNode{Text: text, noQuote: true} |
| 778 | } |
| 779 | func NewStringNeedsEscape(t lex.Token) *StringNode { |
| 780 | newVal, needsEscape := StringUnEscape('"', t.V) |
| 781 | return &StringNode{Text: newVal, Quote: t.Quote, needsEscape: needsEscape} |
| 782 | } |
| 783 | func (m *StringNode) NodeType() string { return "String" } |
| 784 | func (m *StringNode) String() string { |
| 785 | if m.noQuote { |
no test coverage detected