Home / Function/ newBlock() — react Function Reference

newBlock() — react Function Reference

Architecture documentation for the newBlock() function in HIRBuilder.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  3c87e791_7408_e104_6c1c_3ada84d97629["newBlock()"]
  df6865e0_b573_e905_84d6_4eb6b419a888["HIRBuilder.ts"]
  3c87e791_7408_e104_6c1c_3ada84d97629 -->|defined in| df6865e0_b573_e905_84d6_4eb6b419a888
  120d83a3_3b47_09ef_b55b_3acb35934a1f["constructor()"]
  120d83a3_3b47_09ef_b55b_3acb35934a1f -->|calls| 3c87e791_7408_e104_6c1c_3ada84d97629
  88ff4269_4045_952d_05c0_a73b9bcad451["terminate()"]
  88ff4269_4045_952d_05c0_a73b9bcad451 -->|calls| 3c87e791_7408_e104_6c1c_3ada84d97629
  2a23449a_1dec_0ba3_8f5a_0e9e83d42add["reserve()"]
  2a23449a_1dec_0ba3_8f5a_0e9e83d42add -->|calls| 3c87e791_7408_e104_6c1c_3ada84d97629
  style 3c87e791_7408_e104_6c1c_3ada84d97629 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts lines 77–79

function newBlock(id: BlockId, kind: BlockKind): WipBlock {
  return {id, kind, instructions: []};
}

Subdomains

Frequently Asked Questions

What does newBlock() do?
newBlock() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts.
Where is newBlock() defined?
newBlock() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts at line 77.
What calls newBlock()?
newBlock() is called by 3 function(s): constructor, reserve, terminate.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free