break-poisons-outer-scope.ts — react Source File
Architecture documentation for break-poisons-outer-scope.ts, a typescript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6da89453_cb46_cc2a_008e_fc080301c13c["break-poisons-outer-scope.ts"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 6da89453_cb46_cc2a_008e_fc080301c13c --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 6da89453_cb46_cc2a_008e_fc080301c13c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {identity} from 'shared-runtime';
function useFoo({input, cond}) {
const x = [];
label: {
if (cond) {
break label;
}
x.push(identity(input.a.b));
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{input: {a: {b: 2}}, cond: false}],
sequentialRenders: [
{input: {a: {b: 2}}, cond: false},
// preserve nullthrows
{input: null, cond: false},
{input: null, cond: true},
{input: {}, cond: false},
{input: {a: {b: null}}, cond: false},
{input: {a: null}, cond: false},
{input: {a: {b: 3}}, cond: false},
],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does break-poisons-outer-scope.ts do?
break-poisons-outer-scope.ts is a source file in the react codebase, written in typescript. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in break-poisons-outer-scope.ts?
break-poisons-outer-scope.ts defines 1 function(s): useFoo.
What does break-poisons-outer-scope.ts depend on?
break-poisons-outer-scope.ts imports 1 module(s): shared-runtime.
Where is break-poisons-outer-scope.ts in the architecture?
break-poisons-outer-scope.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-poisoned/break-poisons-outer-scope.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-poisoned).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free