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

Method IsChecked

common/ast/ast.go:103–105  ·  view source on GitHub ↗

IsChecked returns whether the AST is type-checked.

()

Source from the content-addressed store, hash-verified

101
102// IsChecked returns whether the AST is type-checked.
103func (a *AST) IsChecked() bool {
104 return a != nil && len(a.TypeMap()) > 0
105}
106
107// NewAST creates a base AST instance with an ast.Expr and ast.SourceInfo value.
108func NewAST(e Expr, sourceInfo *SourceInfo) *AST {

Callers 2

CopyFunction · 0.45
TestASTNilSafetyFunction · 0.45

Calls 1

TypeMapMethod · 0.95

Tested by 1

TestASTNilSafetyFunction · 0.36