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

Method String

expr/node.go:784–792  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

782}
783func (m *StringNode) NodeType() string { return "String" }
784func (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}
793func (m *StringNode) WriteDialect(w DialectWriter) {
794 w.WriteLiteral(m.Text)
795}

Callers

nothing calls this directly

Calls 1

StringEscapeFunction · 0.85

Tested by

no test coverage detected