error.todo-valid-functiondecl-hoisting.tsx — react Source File
Architecture documentation for error.todo-valid-functiondecl-hoisting.tsx, a tsx file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fc181101_45c1_1382_4a49_f659077a13a4["error.todo-valid-functiondecl-hoisting.tsx"] 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05["shared-runtime"] fc181101_45c1_1382_4a49_f659077a13a4 --> 006eec3d_77a9_4a47_e6c1_a96d7a6c9c05 style fc181101_45c1_1382_4a49_f659077a13a4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import {Stringify} from 'shared-runtime';
/**
* Also see error.todo-functiondecl-hoisting.tsx which shows *invalid*
* compilation cases.
*
* This bailout specifically is a false positive for since this function's only
* reference-before-definition are within other functions which are not invoked.
*/
function Foo() {
'use memo';
function foo() {
return bar();
}
function bar() {
return 42;
}
return <Stringify fn1={foo} fn2={bar} shouldInvokeFns={true} />;
}
export const FIXTURE_ENTRYPOINT = {
fn: Foo,
params: [],
};
Domain
Subdomains
Functions
Dependencies
- shared-runtime
Source
Frequently Asked Questions
What does error.todo-valid-functiondecl-hoisting.tsx do?
error.todo-valid-functiondecl-hoisting.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 error.todo-valid-functiondecl-hoisting.tsx?
error.todo-valid-functiondecl-hoisting.tsx defines 1 function(s): Foo.
What does error.todo-valid-functiondecl-hoisting.tsx depend on?
error.todo-valid-functiondecl-hoisting.tsx imports 1 module(s): shared-runtime.
Where is error.todo-valid-functiondecl-hoisting.tsx in the architecture?
error.todo-valid-functiondecl-hoisting.tsx is located at compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/error.todo-valid-functiondecl-hoisting.tsx (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