Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
357
func
(e *expr) AsLiteral() ref.Val {
358
if
e.Kind() != LiteralKind {
359
return
nil
360
}
361
return
e.exprKindCase.(*baseLiteral).Val
362
}
363
364
func
(e *expr) AsList() ListExpr {
365
if
e.Kind() != ListKind {
Callers
nothing calls this directly
Calls
1
Kind
Method · 0.95
Tested by
no test coverage detected