(field string)
| 103 | } |
| 104 | |
| 105 | func (un *unparser) maybeQuoteField(field string) string { |
| 106 | if !un.options.escapeIdentifiers { |
| 107 | return field |
| 108 | } |
| 109 | if !identifierPartPattern.MatchString(field) || field == "in" { |
| 110 | return "`" + field + "`" |
| 111 | } |
| 112 | return field |
| 113 | } |
| 114 | |
| 115 | // unparser visits an expression to reconstruct a human-readable string from an AST. |
| 116 | type unparser struct { |
no outgoing calls
no test coverage detected