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