Skip to main content

Module ident

Module ident 

Source

Structs§

IrIdent
IR identifier — stores both the original JS name and the escaped Zig name.
NameMangler
Name mangling counter + shadow rename manager. Generates unique identifiers for closures, labels, blocks, etc.

Functions§

zig_safe_name
Convert a JS identifier to a Zig-safe identifier. Pre-pends _ to avoid collisions with Zig reserved keywords. Also escapes _ (Zig discard identifier) to __js_underscore.