MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / updateExprType

Method updateExprType

types/expr.go:508–510  ·  view source on GitHub ↗

updateExprType updates the type of x to typ and invokes itself recursively for the operands of x, depending on expression kind. If typ is still an untyped and not the final type, updateExprType only updates the recorded untyped type for x and possibly its operands. Otherwise (i.e., typ is not an unt

(x Expr, typ Type, final bool)

Source from the content-addressed store, hash-verified

506// and if x is the (formerly untyped) lhs operand of a non-constant
507// shift, it must be an integer value.
508func (check *Checker) updateExprType(x Expr, typ Type, final bool) {
509 check.updateExprType0(nil, x, typ, final)
510}
511
512func (check *Checker) updateExprType0(parent, x Expr, typ Type, final bool) {
513 old, found := check.untyped[x]

Callers 4

conversionMethod · 0.95
assignmentMethod · 0.95
convertUntypedMethod · 0.95
comparisonMethod · 0.95

Calls 1

updateExprType0Method · 0.95

Tested by

no test coverage detected