infer-component-props-non-null.tsx — react Source File
Architecture documentation for infer-component-props-non-null.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c820147f_471b_69a0_c5af_1fcd6805e77f["infer-component-props-non-null.tsx"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] c820147f_471b_69a0_c5af_1fcd6805e77f --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style c820147f_471b_69a0_c5af_1fcd6805e77f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// @enablePropagateDepsInHIR
import {identity, Stringify} from 'shared-runtime';
function Foo(props) {
/**
* props.value should be inferred as the dependency of this scope
* since we know that props is safe to read from (i.e. non-null)
* as it is arg[0] of a component function
*/
const arr = [];
if (props.cond) {
arr.push(identity(props.value));
}
return <Stringify arr={arr} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [{value: 2, cond: true}],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does infer-component-props-non-null.tsx do?
infer-component-props-non-null.tsx is a source file in the react codebase, written in tsx. It belongs to the TestingUtilities domain, Fixtures subdomain.
What functions are defined in infer-component-props-non-null.tsx?
infer-component-props-non-null.tsx defines 1 function(s): Foo.
What does infer-component-props-non-null.tsx depend on?
infer-component-props-non-null.tsx imports 1 module(s): shared-runtime.
Where is infer-component-props-non-null.tsx in the architecture?
infer-component-props-non-null.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/propagate-scope-deps-hir-fork/infer-component-props-non-null.tsx (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