Skip to main content

enum_variant_value_names

Function enum_variant_value_names 

Source
pub fn enum_variant_value_names(module: &AIRModule) -> Vec<String>
Expand description

The public enum-variant value names (Color_Red, …) declared in module — the names a TS per-module file must re-export in a trailing export { … }.

In the TS backend every public top-level declaration exports inline (export class, export type, export function, export const) except an enum’s per-variant interface / const / factory, which the variant emitter writes without an export. The per-module tree needs those exported so a consuming file can import them, so this enumerates exactly the variant value names for the trailing re-export. Variants of a runtime- prelude enum (Optional / Result / Ordering) are excluded — they lower inline.