MCPcopy Create free account
hub / github.com/cel-expr/cel-go / maybeQuoteField

Method maybeQuoteField

parser/unparser.go:105–113  ·  view source on GitHub ↗
(field string)

Source from the content-addressed store, hash-verified

103}
104
105func (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.
116type unparser struct {

Callers 2

visitSelectInternalMethod · 0.95
visitStructMsgMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected