partString returns the name of a path part, interning it when it comes from the document.
(p *pathPart)
| 354 | // partString returns the name of a path part, interning it when it comes |
| 355 | // from the document. |
| 356 | func (d *decoder) partString(p *pathPart) string { |
| 357 | if p.node != nil { |
| 358 | return d.intern(p.node.Data) |
| 359 | } |
| 360 | return p.name |
| 361 | } |
| 362 | |
| 363 | // stringMapKey returns a reflect.Value holding the given string, reusing the |
| 364 | // same allocation every time. The result must be used (the map operation |
no test coverage detected