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

Method AsLiteral

common/ast/expr.go:82–82  ·  view source on GitHub ↗

AsLiteral adapts the expr into a constant ref.Val. The Kind() must be equal to a LiteralKind for the conversion to be well-defined.

()

Source from the content-addressed store, hash-verified

80 //
81 // The Kind() must be equal to a LiteralKind for the conversion to be well-defined.
82 AsLiteral() ref.Val
83
84 // AsList adapts the expr into a ListExpr.
85 //

Callers 15

isConditionalMethod · 0.65
ConditionIsLiteralMethod · 0.65
planConstMethod · 0.65
isBindMethod · 0.65
computeExprSizeFunction · 0.65
checkMethod · 0.65
maybeUnwrapStringFunction · 0.65
visitConstMethod · 0.65
visitOptSelectMethod · 0.65
CopyMethod · 0.65
GetMetadataMethod · 0.65

Calls

no outgoing calls

Tested by 13

GetMetadataMethod · 0.52
TestSetKindCaseFunction · 0.52
TestLiteralNilFunction · 0.52
TestNavigableExprFunction · 0.52
TestNavigableMapExprFunction · 0.52
TestNavigableStructExprFunction · 0.52
celIndexFunction · 0.52
celCompreVarFunction · 0.52