merge-consecutive-nested-scopes.js — react Source File
Architecture documentation for merge-consecutive-nested-scopes.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
const {getNumber} = require('shared-runtime');
function Component(props) {
let x;
// Two scopes: one for `getNumber()`, one for the object literal.
// Neither has dependencies so they should merge
if (props.cond) {
x = {session_id: getNumber()};
}
return x;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{cond: true}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does merge-consecutive-nested-scopes.js do?
merge-consecutive-nested-scopes.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 merge-consecutive-nested-scopes.js?
merge-consecutive-nested-scopes.js defines 1 function(s): Component.
Where is merge-consecutive-nested-scopes.js in the architecture?
merge-consecutive-nested-scopes.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/merge-consecutive-nested-scopes.js (domain: TestingUtilities, subdomain: Fixtures, directory: compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free