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

Method CreatePolicyParser

tools/compiler/compiler.go:166–168  ·  view source on GitHub ↗

CreatePolicyParser creates a policy parser using the optionally configured parser options.

()

Source from the content-addressed store, hash-verified

164
165// CreatePolicyParser creates a policy parser using the optionally configured parser options.
166func (c *compiler) CreatePolicyParser() (*policy.Parser, error) {
167 return policy.NewParser(c.policyParserOptions...)
168}
169
170// PolicyCompilerOptions returns the policy compiler options configured in the compiler.
171func (c *compiler) PolicyCompilerOptions() []policy.CompilerOption {

Callers

nothing calls this directly

Calls 1

NewParserFunction · 0.92

Tested by

no test coverage detected