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

Method String

expr/node.go:1003–1016  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1001}
1002func (m *IdentityNode) NodeType() string { return "Identity" }
1003func (m *IdentityNode) String() string {
1004 if m.original != "" {
1005 return m.original
1006 }
1007 if m.Quote == 0 {
1008 return m.Text
1009 }
1010 if m.Text == "*" {
1011 return m.Text
1012 }
1013
1014 // What about escaping instead of replacing?
1015 return StringEscape(rune(m.Quote), m.Text)
1016}
1017func (m *IdentityNode) WriteDialect(w DialectWriter) {
1018 if m.left != "" {
1019 // `user`.`email` type namespacing, may need to be escaped differently

Callers

nothing calls this directly

Calls 1

StringEscapeFunction · 0.85

Tested by

no test coverage detected