mirror of
https://github.com/aphrody-labs/oxc.git
synced 2026-10-17 12:56:09 +00:00
docs(mangler): clarify node ID renumbering in build (#27448)
This commit is contained in:
1 parent
f14ead5379
commit
add04438cd
1 file changed
+4
-2
@@ -315,8 +315,10 @@ impl<'t> Mangler<'t> {
|
||||
self
|
||||
}
|
||||
|
||||
/// Mangles the program. The resulting SymbolTable contains the mangled symbols - `program` is not modified.
|
||||
/// Pass the symbol table to oxc_codegen to generate the mangled code.
|
||||
/// Mangles the program, returning scoping information with the mangled symbol names.
|
||||
///
|
||||
/// Semantic analysis renumbers the node IDs in `program`, but does not rewrite its symbol names.
|
||||
/// Pass the returned scoping and class private mappings to `oxc_codegen` to generate the mangled code.
|
||||
#[must_use]
|
||||
pub fn build(self, program: &Program<'_>) -> ManglerReturn {
|
||||
let mut builder = SemanticBuilder::new().with_build_nodes(true).with_class_table(true);
|
||||
|
||||
Reference in new issue
Block a user