new CodeGenerationResults(): CodeGenerationResults<CodeGenerationResults>add
add(module, runtime, result): voidStores a code generation result for a module/runtime pair, creating the per-module runtime map when needed.
get
get(module, runtime): CodeGenerationResultReturns the code generation result for a module/runtime pair, rejecting ambiguous lookups where no unique runtime-independent result exists.
getData(module, runtime, key): anyReturns an arbitrary metadata entry recorded during code generation.
getHash(module, runtime): stringReturns a stable hash for the generated sources and runtime requirements, computing and caching it on first access.
getRuntimeRequirements(module, runtime): ReadonlySetReturns the runtime requirements captured during code generation for the requested module/runtime pair.
getSource(module, runtime, sourceType): SourceReturns a generated source of the requested source type from a stored code generation result.
has
has(module, runtime): booleanReports whether a module has a stored result for the requested runtime, or a single unambiguous result when no runtime is specified.