(v reflect.Value)
| 53 | } |
| 54 | |
| 55 | func (ps *pointerReferences) Push(v reflect.Value) (p value.Pointer, seen bool) { |
| 56 | p = value.PointerOf(v) |
| 57 | for _, pp := range *ps { |
| 58 | if p == pp[0] || p == pp[1] { |
| 59 | return p, true |
| 60 | } |
| 61 | } |
| 62 | *ps = append(*ps, [2]value.Pointer{p, p}) |
| 63 | return p, false |
| 64 | } |
| 65 | |
| 66 | func (ps *pointerReferences) Pop() { |
| 67 | *ps = (*ps)[:len(*ps)-1] |
nothing calls this directly
no test coverage detected