logical-expression-object.js — react Source File
Architecture documentation for logical-expression-object.js, a javascript file in the react codebase.
Entity Profile
Relationship Graph
Source Code
function component(props) {
// The mutable range for a extens the entire body.
// commenting out the last line of InferMutableRanges fixes it.
// my guess of what's going on is that a is aliased into the return value object literal,
// and that alias makes it look like the range of a needs to be extended to that point.
// but what's weird is that the end of a's range doesn't quite extend to the object.
let a = props.a || (props.b && props.c && props.d);
let b = (props.a && props.b && props.c) || props.d;
return {a, b};
}
export const FIXTURE_ENTRYPOINT = {
fn: component,
params: ['TodoAdd'],
isComponent: 'TodoAdd',
};
Domain
Subdomains
Functions
Source
Frequently Asked Questions
What does logical-expression-object.js do?
logical-expression-object.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 logical-expression-object.js?
logical-expression-object.js defines 1 function(s): component.
Where is logical-expression-object.js in the architecture?
logical-expression-object.js is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/logical-expression-object.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