()
| 541 | func (s *Ptr) Complexity() int { return 1 + s.Value.Complexity() } |
| 542 | |
| 543 | func (s *Ptr) Needsinit() bool { |
| 544 | if be, ok := s.Value.(*BaseElem); ok && be.needsref { |
| 545 | return false |
| 546 | } |
| 547 | return true |
| 548 | } |
| 549 | |
| 550 | // ZeroExpr returns the zero/empty expression or empty string if not supported. Always "nil" for this case. |
| 551 | func (s *Ptr) ZeroExpr() string { return "nil" } |