• Eric Myhre's avatar
    Add LookupSegment to Node interface. · c96c25d3
    Eric Myhre authored
    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: default avatarEric Myhre <hash@exultant.us>
    c96c25d3
node.go 9.59 KB