boxOfEntry function

SymbolBox? boxOfEntry(
  1. SymbolEntry entry
)

The local box of entry, computed on the first call and the same object on every later call for the same entry (spec D2: once per entry).

Implementation

SymbolBox? boxOfEntry(SymbolEntry entry) =>
    (_entryBoxes[entry] ??= _Memo(boxOfLeaves(
            [for (final l in entry.leaves) (l.record.kind, l.payload)])))
        .box;