MCPcopy Index your code
hub / github.com/expr-lang/expr / Check

Method Check

checker/checker.go:86–89  ·  view source on GitHub ↗

Check checks types of the expression tree. It returns type of the expression and error if any. If config is nil, then default configuration will be used.

(tree *parser.Tree, config *conf.Config)

Source from the content-addressed store, hash-verified

84// Check checks types of the expression tree. It returns type of the expression
85// and error if any. If config is nil, then default configuration will be used.
86func (v *Checker) Check(tree *parser.Tree, config *conf.Config) (reflect.Type, error) {
87 v.reset(config)
88 return v.check(tree)
89}
90
91// Run visitors in a given config over the given tree
92// runRepeatable controls whether to filter for only vistors that require multiple passes or not

Callers 2

PatchAndCheckMethod · 0.95
runVisitorsMethod · 0.95

Implementers 3

Configconf/config.go
Checkerchecker/checker.go
OperatorOverloadingpatcher/operator_override.go

Calls 2

resetMethod · 0.95
checkMethod · 0.95

Tested by

no test coverage detected