buf() — react Function Reference
Architecture documentation for the buf() function in DeriveMinimalDependenciesHIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6aad5b1d_3185_c950_2422_28b0c0c9b5f3["buf()"] dd6a3818_76d4_f9e4_2966_4bd3583370fe["ReactiveScopeDependencyTreeHIR"] 6aad5b1d_3185_c950_2422_28b0c0c9b5f3 -->|defined in| dd6a3818_76d4_f9e4_2966_4bd3583370fe 5f694d00_db22_ca76_929e_f1ed21313ce8["push()"] 6aad5b1d_3185_c950_2422_28b0c0c9b5f3 -->|calls| 5f694d00_db22_ca76_929e_f1ed21313ce8 style 6aad5b1d_3185_c950_2422_28b0c0c9b5f3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts lines 225–234
static #debugImpl<T extends string>(
buf: Array<string>,
node: TreeNode<T>,
depth: number = 0,
): void {
for (const [property, childNode] of node.properties) {
buf.push(`${' '.repeat(depth)}.${property} (${childNode.accessType}):`);
this.#debugImpl(buf, childNode, depth + 1);
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does buf() do?
buf() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts.
Where is buf() defined?
buf() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/DeriveMinimalDependenciesHIR.ts at line 225.
What does buf() call?
buf() calls 1 function(s): push.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free