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)
| 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. |
| 86 | func (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 |
no test coverage detected