Add LookupSegment to Node interface.
Fix traversal internals to use it (!) rather than converting segments
to strings, which was both wasteful, and in some cases, *wrong* (!)
(although by coincidence happened to mostly work at present because of
another thing from early-days code that was also technically wrong).
Fix ipldfree.Node to reject LookupString if used on a list node!
(This is the other "wrong" thing that made the traversal coincidentally
work.)
LookupSegment method generation also added to codegen.
Signed-off-by: Eric Myhre <hash@exultant.us>
Showing
Please register or sign in to comment