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

Function Parse

parser/parser.go:125–127  ·  view source on GitHub ↗

Parse converts a source input a parsed expression. This function calls ParseWithMacros with AllMacros. Deprecated: Use NewParser().Parse() instead.

(source common.Source)

Source from the content-addressed store, hash-verified

123//
124// Deprecated: Use NewParser().Parse() instead.
125func Parse(source common.Source) (*ast.AST, *common.Errors) {
126 return mustNewParser(Macros(AllMacros...)).Parse(source)
127}

Callers

nothing calls this directly

Calls 3

mustNewParserFunction · 0.85
MacrosFunction · 0.70
ParseMethod · 0.65

Tested by

no test coverage detected