IsStructNil returns true if this constant represents the empty struct.
()
| 739 | |
| 740 | // IsStructNil returns true if this constant represents the empty struct. |
| 741 | func (c Constant) IsStructNil() bool { |
| 742 | return c.Type == StructShape && c.fst == nil |
| 743 | } |
| 744 | |
| 745 | // Equals returns true if u is the same constant. |
| 746 | func (c Constant) Equals(u Term) bool { |
no outgoing calls
no test coverage detected