(field string)
| 70 | var identifierPartPattern *regexp.Regexp = regexp.MustCompile(`^[A-Za-z_][0-9A-Za-z_]*$`) |
| 71 | |
| 72 | func maybeQuoteField(field string) string { |
| 73 | if !identifierPartPattern.MatchString(field) || field == "in" { |
| 74 | return "`" + field + "`" |
| 75 | } |
| 76 | return field |
| 77 | } |
| 78 | |
| 79 | // unparser visits an expression to reconstruct a human-readable string from an AST. |
| 80 | type unparser struct { |
no outgoing calls
no test coverage detected