| 1015 | return StringEscape(rune(m.Quote), m.Text) |
| 1016 | } |
| 1017 | func (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 | } |
| 1033 | func (m *IdentityNode) OriginalText() string { |
| 1034 | if m.original != "" { |
| 1035 | return m.original |