debug() — react Function Reference
Architecture documentation for the debug() function in DeriveMinimalDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD be6dc962_71f6_4266_c409_6238243a005b["debug()"] ce8ab5d9_db4b_3be5_3f9c_38fa68bcbaa1["ReactiveScopeDependencyTreeHIR"] be6dc962_71f6_4266_c409_6238243a005b -->|defined in| ce8ab5d9_db4b_3be5_3f9c_38fa68bcbaa1 073c81a5_c389_d108_5b8f_4d6dc6eece83["push()"] be6dc962_71f6_4266_c409_6238243a005b -->|calls| 073c81a5_c389_d108_5b8f_4d6dc6eece83 e7a01d7c_c128_be66_a07d_007952a380da["printIdentifier()"] be6dc962_71f6_4266_c409_6238243a005b -->|calls| e7a01d7c_c128_be66_a07d_007952a380da style be6dc962_71f6_4266_c409_6238243a005b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts lines 215–223
static debug<T extends string>(roots: Map<Identifier, TreeNode<T>>): string {
const buf: Array<string> = [`tree() [`];
for (const [rootId, rootNode] of roots) {
buf.push(`${printIdentifier(rootId)} (${rootNode.accessType}):`);
this.#debugImpl(buf, rootNode, 1);
}
buf.push(']');
return buf.length > 2 ? buf.join('\n') : buf.join('');
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does debug() do?
debug() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts.
Where is debug() defined?
debug() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts at line 215.
What does debug() call?
debug() calls 2 function(s): printIdentifier, push.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free