IsMapNil returns true if this constant represents the empty map.
()
| 734 | |
| 735 | // IsMapNil returns true if this constant represents the empty map. |
| 736 | func (c Constant) IsMapNil() bool { |
| 737 | return c.Type == MapShape && c.fst == nil |
| 738 | } |
| 739 | |
| 740 | // IsStructNil returns true if this constant represents the empty struct. |
| 741 | func (c Constant) IsStructNil() bool { |
no outgoing calls