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

Function ParsedExprToAst

cel/io.go:74–76  ·  view source on GitHub ↗

ParsedExprToAst converts a parsed expression proto message to an Ast.

(parsedExpr *exprpb.ParsedExpr)

Source from the content-addressed store, hash-verified

72
73// ParsedExprToAst converts a parsed expression proto message to an Ast.
74func ParsedExprToAst(parsedExpr *exprpb.ParsedExpr) *Ast {
75 return ParsedExprToAstWithSource(parsedExpr, nil)
76}
77
78// ParsedExprToAstWithSource converts a parsed expression proto message to an Ast,
79// using the provided Source as the textual contents.

Callers 2

TestAstToProtoFunction · 0.85
TestLoadedAstDepthLimitFunction · 0.85

Calls 1

Tested by 2

TestAstToProtoFunction · 0.68
TestLoadedAstDepthLimitFunction · 0.68