Skip to main content

Crate react_compiler_lowering

Crate react_compiler_lowering 

Source

Re-exports§

pub use build_hir::lower;
pub use hir_builder::create_temporary_place;
pub use hir_builder::get_reverse_postordered_blocks;
pub use hir_builder::mark_instruction_ids;
pub use hir_builder::mark_predecessors;
pub use hir_builder::remove_dead_do_while_statements;
pub use hir_builder::remove_unnecessary_try_catch;
pub use hir_builder::remove_unreachable_for_updates;

Modules§

build_hir
find_context_identifiers
Rust equivalent of the TypeScript FindContextIdentifiers pass.
hir_builder
identifier_loc_index
Builds an index mapping identifier node-IDs to source locations.

Enums§

FunctionNode
Represents a reference to a function AST node for lowering. Analogous to TS’s NodePath<t.Function> / BabelFn.

Functions§

convert_binding_kind
Convert AST binding kind to HIR binding kind.
each_terminal_successor
Yields successor block IDs (NOT fallthroughs, this is intentional). Equivalent to TS eachTerminalSuccessor.
terminal_fallthrough
Returns the fallthrough block ID for terminals that have one. Equivalent to TS terminalFallthrough.