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

Method AsLiteral

common/ast/expr.go:357–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355}
356
357func (e *expr) AsLiteral() ref.Val {
358 if e.Kind() != LiteralKind {
359 return nil
360 }
361 return e.exprKindCase.(*baseLiteral).Val
362}
363
364func (e *expr) AsList() ListExpr {
365 if e.Kind() != ListKind {

Callers

nothing calls this directly

Calls 1

KindMethod · 0.95

Tested by

no test coverage detected