MCPcopy
hub / github.com/caddyserver/caddy / isCELStringExpr

Function isCELStringExpr

modules/caddyhttp/celmatcher.go:733–735  ·  view source on GitHub ↗

isCELStringExpr indicates whether the expression is a supported string expression

(e ast.Expr)

Source from the content-addressed store, hash-verified

731
732// isCELStringExpr indicates whether the expression is a supported string expression
733func isCELStringExpr(e ast.Expr) bool {
734 return isCELStringLiteral(e) || isCELCaddyPlaceholderCall(e) || isCELConcatCall(e)
735}
736
737// isCELStringLiteral returns whether the expression is a CEL string literal.
738func isCELStringLiteral(e ast.Expr) bool {

Callers

nothing calls this directly

Calls 3

isCELStringLiteralFunction · 0.70
isCELConcatCallFunction · 0.70

Tested by

no test coverage detected