Logo Xantham

ArenaInterner Module

Functions and values

Function or value Description

markSharedLiteralsFromExports ctx interner

Full Usage: markSharedLiteralsFromExports ctx interner

Parameters:

Phase 1: drive the full anchoring once on a throwaway context whose `SharedLiteralVisits` collector records every literal def-home VISIT, then mark the genuinely-shared literals on the real context. Must run BEFORE the real `processExports`/prerender so `prerender` roots shared literals at their canonical home on the real pass. The throwaway context is fully independent (its own prelude/anchor caches) so the count never pollutes the real output.

ctx : GeneratorContext
interner : ArenaInterner

processExports ctx interner

Full Usage: processExports ctx interner

Parameters:

Type something to start searching.