writePrunedScope() — react Function Reference
Architecture documentation for the writePrunedScope() function in PrintReactiveFunction.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 2a895fc3_0c85_2027_d795_4f445574b7bc["writePrunedScope()"] d77f9ffb_2d12_7d1f_126f_8c05214f0059["PrintReactiveFunction.ts"] 2a895fc3_0c85_2027_d795_4f445574b7bc -->|defined in| d77f9ffb_2d12_7d1f_126f_8c05214f0059 5b0b4134_f31c_d57b_a687_fa6358a8ebe1["writeReactiveInstruction()"] 5b0b4134_f31c_d57b_a687_fa6358a8ebe1 -->|calls| 2a895fc3_0c85_2027_d795_4f445574b7bc d0290dff_c442_0216_dbb6_27657f40b130["writeLine()"] 2a895fc3_0c85_2027_d795_4f445574b7bc -->|calls| d0290dff_c442_0216_dbb6_27657f40b130 694a6a07_b3ca_4ab4_beba_18f4053a49f2["printReactiveScopeSummary()"] 2a895fc3_0c85_2027_d795_4f445574b7bc -->|calls| 694a6a07_b3ca_4ab4_beba_18f4053a49f2 cfec30fc_785b_6ff8_440a_c84098aac705["writeReactiveInstructions()"] 2a895fc3_0c85_2027_d795_4f445574b7bc -->|calls| cfec30fc_785b_6ff8_440a_c84098aac705 style 2a895fc3_0c85_2027_d795_4f445574b7bc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts lines 104–111
export function writePrunedScope(
writer: Writer,
block: PrunedReactiveScopeBlock,
): void {
writer.writeLine(`<pruned> ${printReactiveScopeSummary(block.scope)} {`);
writeReactiveInstructions(writer, block.instructions);
writer.writeLine('}');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does writePrunedScope() do?
writePrunedScope() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts.
Where is writePrunedScope() defined?
writePrunedScope() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/PrintReactiveFunction.ts at line 104.
What does writePrunedScope() call?
writePrunedScope() calls 3 function(s): printReactiveScopeSummary, writeLine, writeReactiveInstructions.
What calls writePrunedScope()?
writePrunedScope() is called by 1 function(s): writeReactiveInstruction.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free