mapCallArguments() — react Function Reference
Architecture documentation for the mapCallArguments() function in visitors.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD cb2f7895_375d_8f9b_5b0b_8dc1e7853e1f["mapCallArguments()"] 2f3caf55_cc64_415c_55dd_9771ba7dc210["visitors.ts"] cb2f7895_375d_8f9b_5b0b_8dc1e7853e1f -->|defined in| 2f3caf55_cc64_415c_55dd_9771ba7dc210 402caa76_ca9e_8ed9_593f_7843cf5f0ae8["mapInstructionValueOperands()"] 402caa76_ca9e_8ed9_593f_7843cf5f0ae8 -->|calls| cb2f7895_375d_8f9b_5b0b_8dc1e7853e1f style cb2f7895_375d_8f9b_5b0b_8dc1e7853e1f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts lines 660–672
export function mapCallArguments(
args: Array<Place | SpreadPattern>,
fn: (place: Place) => Place,
): Array<Place | SpreadPattern> {
return args.map(arg => {
if (arg.kind === 'Identifier') {
return fn(arg);
} else {
arg.place = fn(arg.place);
return arg;
}
});
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does mapCallArguments() do?
mapCallArguments() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts.
Where is mapCallArguments() defined?
mapCallArguments() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/visitors.ts at line 660.
What calls mapCallArguments()?
mapCallArguments() is called by 1 function(s): mapInstructionValueOperands.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free