repro-invalid-scope-merging-value-blocks.ts — react Source File
Architecture documentation for repro-invalid-scope-merging-value-blocks.ts, a typescript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3b9304a5_31a1_8282_b7bd_b7baf437c92e["repro-invalid-scope-merging-value-blocks.ts"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] 3b9304a5_31a1_8282_b7bd_b7baf437c92e --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style 3b9304a5_31a1_8282_b7bd_b7baf437c92e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {
CONST_TRUE,
identity,
makeObject_Primitives,
mutateAndReturn,
useHook,
} from 'shared-runtime';
/**
* value and `mutateAndReturn(value)` should end up in the same reactive scope.
* (1) `value = makeObject` and `(temporary) = mutateAndReturn(value)` should be assigned
* the same scope id (on their identifiers)
* (2) alignScopesToBlockScopes should expand the scopes of both `(temporary) = identity(1)`
* and `(temporary) = mutateAndReturn(value)` to the outermost value block boundaries
* (3) mergeOverlappingScopes should merge the scopes of the above two instructions
*/
function Component({}) {
const value = makeObject_Primitives();
useHook();
const mutatedValue =
identity(1) && CONST_TRUE ? mutateAndReturn(value) : null;
const result = [];
useHook();
result.push(value, mutatedValue);
return result;
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{}],
sequentialRenders: [{}, {}, {}],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does repro-invalid-scope-merging-value-blocks.ts do?
repro-invalid-scope-merging-value-blocks.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 repro-invalid-scope-merging-value-blocks.ts?
repro-invalid-scope-merging-value-blocks.ts defines 1 function(s): Component.
What does repro-invalid-scope-merging-value-blocks.ts depend on?
repro-invalid-scope-merging-value-blocks.ts imports 1 module(s): shared-runtime.
Where is repro-invalid-scope-merging-value-blocks.ts in the architecture?
repro-invalid-scope-merging-value-blocks.ts is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/repro-invalid-scope-merging-value-blocks.ts (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