(e ast.Expr, r *ast.ReferenceInfo)
| 682 | } |
| 683 | |
| 684 | func (c *checker) setReference(e ast.Expr, r *ast.ReferenceInfo) { |
| 685 | if old, found := c.ReferenceMap()[e.ID()]; found && !old.Equals(r) { |
| 686 | c.errors.referenceRedefinition(e.ID(), c.location(e), e, old, r) |
| 687 | return |
| 688 | } |
| 689 | c.SetReference(e.ID(), r) |
| 690 | } |
| 691 | |
| 692 | func (c *checker) assertType(e ast.Expr, t *types.Type) { |
| 693 | if !c.isAssignable(t, c.getType(e)) { |
no test coverage detected