jump-target-within-scope-loop-break.ts — react Source File
Architecture documentation for jump-target-within-scope-loop-break.ts, a typescript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function useFoo({input, max}) {
const x = [];
let i = 0;
while (true) {
i += 1;
if (i > max) {
break;
}
}
x.push(i);
x.push(input.a.b); // unconditional
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: useFoo,
params: [{input: {a: {b: 2}}, max: 8}],
sequentialRenders: [
{input: {a: {b: 2}}, max: 8},
// preserve nullthrows
{input: null, max: 8},
{input: {}, max: 8},
{input: {a: {b: null}}, max: 8},
{input: {a: null}, max: 8},
{input: {a: {b: 3}}, max: 8},
],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does jump-target-within-scope-loop-break.ts do?
jump-target-within-scope-loop-break.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 jump-target-within-scope-loop-break.ts?
jump-target-within-scope-loop-break.ts defines 1 function(s): useFoo.
Where is jump-target-within-scope-loop-break.ts in the architecture?
jump-target-within-scope-loop-break.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned/jump-target-within-scope-loop-break.ts (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/jump-unpoisoned).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free