MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewStringNeedsEscape

Function NewStringNeedsEscape

expr/node.go:779–782  ·  view source on GitHub ↗
(t lex.Token)

Source from the content-addressed store, hash-verified

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

Callers 2

cInnerMethod · 0.85
vMethod · 0.85

Calls 1

StringUnEscapeFunction · 0.85

Tested by

no test coverage detected