Structs§
- Scope
Block Traversal - Helper struct for traversing scope blocks in HIR-form.
Equivalent to TS
ScopeBlockTraversalclass.
Enums§
- Scope
Block Info - Block info entry for ScopeBlockTraversal.
Functions§
- does_
pattern_ contain_ spread_ element - Returns true if the pattern contains a spread element.
Equivalent to TS
doesPatternContainSpreadElement. - each_
call_ argument - Yields each arg’s place.
Equivalent to TS
eachCallArgument. - each_
instruction_ lvalue - Yields
instr.lvalueplus the value’s lvalues. Equivalent to TSeachInstructionLValue. - each_
instruction_ lvalue_ ids - Collect all lvalue IdentifierIds from an instruction.
Convenience wrapper around
each_instruction_lvaluethat maps to ids. - each_
instruction_ lvalue_ with_ kind - Yields lvalues with their InstructionKind.
Equivalent to TS
eachInstructionLValueWithKind. - each_
instruction_ operand - Delegates to each_instruction_value_operand.
Equivalent to TS
eachInstructionOperand. - each_
instruction_ operand_ ids - Collect all operand IdentifierIds from an instruction.
Convenience wrapper around
each_instruction_operandthat maps to ids. - each_
instruction_ operand_ with_ functions - Like
each_instruction_operandbut takesfunctionsdirectly instead ofenv. Useful when borrow splitting prevents passing the fullEnvironment. - each_
instruction_ value_ lvalue - Yields lvalues from DeclareLocal/StoreLocal/DeclareContext/StoreContext/Destructure/PostfixUpdate/PrefixUpdate.
Equivalent to TS
eachInstructionValueLValue. - each_
instruction_ value_ operand - Yields operand places from an InstructionValue.
Equivalent to TS
eachInstructionValueOperand. - each_
instruction_ value_ operand_ ids - Collect all operand IdentifierIds from an instruction value.
Convenience wrapper around
each_instruction_value_operandthat maps to ids. - each_
instruction_ value_ operand_ with_ functions - Like
each_instruction_value_operandbut takesfunctionsdirectly instead ofenv. Useful when borrow splitting prevents passing the fullEnvironment. - each_
pattern_ operand - Yields places from array/object patterns.
Equivalent to TS
eachPatternOperand. - each_
pattern_ operand_ ids - Collect all IdentifierIds from a pattern.
Convenience wrapper around
each_pattern_operandthat maps to ids. - each_
terminal_ all_ successors - Yields ALL block IDs referenced by a terminal (successors + fallthroughs + internal blocks).
Unlike
each_terminal_successorwhich yields only standard control flow successors, this function yields every block ID thatmap_terminal_successorswould visit. - each_
terminal_ operand - Yields places used by terminal.
Equivalent to TS
eachTerminalOperand. - each_
terminal_ operand_ ids - Collect all operand IdentifierIds from a terminal.
Convenience wrapper around
each_terminal_operandthat maps to ids. - each_
terminal_ successor - Yields successor block IDs (NOT fallthroughs, this is intentional).
Equivalent to TS
eachTerminalSuccessor. - for_
each_ call_ argument_ mut - In-place mutation of call arguments.
- for_
each_ instruction_ lvalue_ mut - In-place mutation of the instruction’s lvalue and value’s lvalues.
Matches the same variants as TS
mapInstructionLValues(skips DeclareContext/StoreContext). - for_
each_ instruction_ value_ lvalue_ mut - In-place mutation of an InstructionValue’s lvalues (DeclareLocal, StoreLocal, DeclareContext,
StoreContext, Destructure, PostfixUpdate, PrefixUpdate). Does NOT include the instruction’s
top-level lvalue — use
for_each_instruction_lvalue_mutfor that. - for_
each_ instruction_ value_ operand_ mut - In-place mutation of all operand places in an InstructionValue. Does NOT handle FunctionExpression/ObjectMethod context — callers handle those separately.
- for_
each_ pattern_ operand_ mut - In-place mutation of pattern operands.
- for_
each_ terminal_ operand_ mut - In-place mutation of terminal operand places.
- map_
call_ arguments - Maps call arguments in place.
Equivalent to TS
mapCallArguments. - map_
instruction_ lvalues - Maps the instruction’s lvalue and value’s lvalues.
Equivalent to TS
mapInstructionLValues. - map_
instruction_ operands - Maps operands of an instruction.
Equivalent to TS
mapInstructionOperands. - map_
instruction_ value_ operands - Maps operand places in an InstructionValue.
Equivalent to TS
mapInstructionValueOperands. - map_
pattern_ operands - Maps pattern operands in place.
Equivalent to TS
mapPatternOperands. - map_
terminal_ operands - Maps a terminal node’s operand places in place.
Equivalent to TS
mapTerminalOperands. - map_
terminal_ successors - Maps a terminal node’s block assignments in place.
Equivalent to TS
mapTerminalSuccessors— but mutates in place instead of returning a new terminal. - terminal_
fallthrough - Returns the fallthrough block ID for terminals that have one.
Equivalent to TS
terminalFallthrough. - terminal_
has_ fallthrough - Returns true if the terminal has a fallthrough block.
Equivalent to TS
terminalHasFallthrough.