(p value.Pointer, printAddress bool)
| 99 | return &textWrap{Prefix: prefix, Value: s, Metadata: trunkReference{p}} |
| 100 | } |
| 101 | func makeLeafReference(p value.Pointer, printAddress bool) textNode { |
| 102 | out := &textWrap{Prefix: "(", Value: textEllipsis, Suffix: ")"} |
| 103 | var prefix string |
| 104 | if printAddress { |
| 105 | prefix = formatPointer(p, true) |
| 106 | } |
| 107 | return &textWrap{Prefix: prefix, Value: out, Metadata: leafReference{p}} |
| 108 | } |
| 109 | |
| 110 | // resolveReferences walks the textNode tree searching for any leaf reference |
| 111 | // metadata and resolves each against the corresponding trunk references. |
no test coverage detected