phi-type-inference-property-store.js — react Source File
Architecture documentation for phi-type-inference-property-store.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
// @debug @enablePropagateDepsInHIR
function Component(props) {
const x = {};
let y;
if (props.cond) {
y = {};
} else {
y = {a: props.a};
}
// This should be inferred as `<store> y` s.t. `x` can still
// be independently memoized. *But* this also must properly
// extend the mutable range of the object literals in the
// if/else branches
y.x = x;
return [x, y];
}
export const FIXTURE_ENTRYPOINT = {
fn: Component,
params: [{cond: false, a: 'a!'}],
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does phi-type-inference-property-store.js do?
phi-type-inference-property-store.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 phi-type-inference-property-store.js?
phi-type-inference-property-store.js defines 1 function(s): Component.
Where is phi-type-inference-property-store.js in the architecture?
phi-type-inference-property-store.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/phi-type-inference-property-store.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