UsedTypars Module
Functions and values
| Function or value |
Description
|
Full Usage:
aliasKeepsTypars ctx typ
Parameters:
GeneratorContext
typ : TypeAlias
Returns: bool
|
True when the alias's emitted declaration keeps its declared typars: at least one declared typar is rendered by the body. All-or-nothing (fully-phantom prune only); partial (subset) pruning needs slot-wise arg alignment in the reference arms and is deliberately out of scope.
|
Full Usage:
literalMemberTyparNames ctx rt
Parameters:
GeneratorContext
rt : ResolvedType
Returns: Set<string>
|
Name-set convenience over `literalMemberTyparNodes` (the caseLiteralRef filter).
|
Full Usage:
literalMemberTyparNodes ctx rt
Parameters:
GeneratorContext
rt : ResolvedType
Returns: TypeParameter list
|
Free TypeParameter NODES referenced by a hoisted LITERAL's members, in first-encounter order, deduped by name — the HOME-side walk for the lambda-lift: unlike the decl oracle above (which excludes literal members where no lift renders them), a LIFTED home does render its members, so the home's declared typars come from exactly this set. Nodes (not just names) so the home decl can carry real TypeParameterRenders. Same reference-arm mirror, same guards.
|
Full Usage:
usedTyparNames ctx body
Parameters:
GeneratorContext
body : ResolvedType
Returns: Set<string>
|
THE single emitted-typar oracle for type-alias declarations. A generic alias whose checker-collapsed body no longer RENDERS any of its declared type parameters (`type AgentNamespace<'Agentic> = option
|