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

Method WriteDialect

expr/node.go:1017–1032  ·  view source on GitHub ↗
(w DialectWriter)

Source from the content-addressed store, hash-verified

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
1020 w.WriteLeftRightIdentity(m.left, m.right)
1021 return
1022 }
1023 if m.Text == "*" {
1024 w.Write([]byte{'*'})
1025 return
1026 }
1027 if m.Quote != 0 {
1028 w.WriteIdentityQuote(m.Text, byte(m.Quote))
1029 return
1030 }
1031 w.WriteIdentity(m.Text)
1032}
1033func (m *IdentityNode) OriginalText() string {
1034 if m.original != "" {
1035 return m.original

Callers 1

Calls 3

WriteIdentityQuoteMethod · 0.65
WriteIdentityMethod · 0.65

Tested by 1