ssa-renaming-ternary-with-mutation.js — react Source File
Architecture documentation for ssa-renaming-ternary-with-mutation.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6dcb3b22_d982_a461_6a4f_41389d7310f4["ssa-renaming-ternary-with-mutation.js"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 6dcb3b22_d982_a461_6a4f_41389d7310f4 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 6dcb3b22_d982_a461_6a4f_41389d7310f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @enablePropagateDepsInHIR
import {mutate} from 'shared-runtime';
function useFoo(props) {
let x = [];
x.push(props.bar);
props.cond ? ((x = {}), (x = []), x.push(props.foo)) : null;
mutate(x);
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{cond: false, foo: 2, bar: 55}],
sequentialRenders: [
{cond: false, foo: 2, bar: 55},
{cond: false, foo: 3, bar: 55},
{cond: true, foo: 3, bar: 55},
],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does ssa-renaming-ternary-with-mutation.js do?
ssa-renaming-ternary-with-mutation.js is a source file in the react codebase, written in javascript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in ssa-renaming-ternary-with-mutation.js?
ssa-renaming-ternary-with-mutation.js defines 1 function(s): useFoo.
What does ssa-renaming-ternary-with-mutation.js depend on?
ssa-renaming-ternary-with-mutation.js imports 1 module(s): shared-runtime.
Where is ssa-renaming-ternary-with-mutation.js in the architecture?
ssa-renaming-ternary-with-mutation.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/ssa-renaming-ternary-with-mutation.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free