(text string)
| 774 | return &StringNode{Text: t.V, Quote: t.Quote} |
| 775 | } |
| 776 | func NewStringNoQuoteNode(text string) *StringNode { |
| 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} |