buildTypeOfReactForget() — react Function Reference
Architecture documentation for the buildTypeOfReactForget() function in babel-plugin-annotate-react-code.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1323d328_ed55_02a1_0f5a_0d3ab078df8e["buildTypeOfReactForget()"] 90fd4a4d_9742_70a7_9512_f9dd5b565200["babel-plugin-annotate-react-code.ts"] 1323d328_ed55_02a1_0f5a_0d3ab078df8e -->|defined in| 90fd4a4d_9742_70a7_9512_f9dd5b565200 5269e169_1dd4_8259_43a8_57511e747ea4["annotate()"] 5269e169_1dd4_8259_43a8_57511e747ea4 -->|calls| 1323d328_ed55_02a1_0f5a_0d3ab078df8e style 1323d328_ed55_02a1_0f5a_0d3ab078df8e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts lines 55–77
function buildTypeOfReactForget(): t.Statement {
// typeof globalThis[Symbol.for("react_forget")]
return t.expressionStatement(
t.unaryExpression(
'typeof',
t.memberExpression(
t.identifier('globalThis'),
t.callExpression(
t.memberExpression(
t.identifier('Symbol'),
t.identifier('for'),
false,
false,
),
[t.stringLiteral('react_forget')],
),
true,
false,
),
true,
),
);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does buildTypeOfReactForget() do?
buildTypeOfReactForget() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts.
Where is buildTypeOfReactForget() defined?
buildTypeOfReactForget() is defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts at line 55.
What calls buildTypeOfReactForget()?
buildTypeOfReactForget() is called by 1 function(s): annotate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free