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

Function macroTargetMatchesNamespace

ext/guards.go:62–67  ·  view source on GitHub ↗
(ns string, target ast.Expr)

Source from the content-addressed store, hash-verified

60}
61
62func macroTargetMatchesNamespace(ns string, target ast.Expr) bool {
63 if id, found := extractIdent(target); found {
64 return id == ns
65 }
66 return false
67}

Callers 5

celBindFunction · 0.85
mathLeastFunction · 0.85
mathGreatestFunction · 0.85
hasProtoExtFunction · 0.85
getProtoExtFunction · 0.85

Calls 1

extractIdentFunction · 0.70

Tested by

no test coverage detected