()
| 1001 | } |
| 1002 | func (m *IdentityNode) NodeType() string { return "Identity" } |
| 1003 | func (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 | } |
| 1017 | func (m *IdentityNode) WriteDialect(w DialectWriter) { |
| 1018 | if m.left != "" { |
| 1019 | // `user`.`email` type namespacing, may need to be escaped differently |
nothing calls this directly
no test coverage detected