promql/parse.go
func (p *parser) typecheck(node Node) (err error) {
	defer p.recover(&err)

	p.checkType(node)
	return nil
}
func (p *parser) typecheck(node Node) (err error) {
	defer p.recover(&err)

	p.checkType(node)
	return nil
}
func ( p * parser ) typecheck ( node Node ) ( err error ) { defer p . recover ( & err ) p . checkType ( node ) return nil }
// typecheck checks correct typing of the parsed statements or expression.
typecheck checks correct typing of the parsed statements or expression .