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

Function extractIdent

parser/macro.go:597–603  ·  view source on GitHub ↗
(e ast.Expr)

Source from the content-addressed store, hash-verified

595}
596
597func extractIdent(e ast.Expr) (string, bool) {
598 switch e.Kind() {
599 case ast.IdentKind:
600 return e.AsIdent(), true
601 }
602 return "", false
603}

Callers 3

MakeMapFunction · 0.70
MakeFilterFunction · 0.70
makeQuantifierFunction · 0.70

Calls 2

KindMethod · 0.65
AsIdentMethod · 0.65

Tested by

no test coverage detected