Home / Function/ enterReserved() — react Function Reference

enterReserved() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  10c63c7e_e339_2c92_cb9e_11d13186c6a7["enterReserved()"]
  d1b85268_f4cd_bc3c_7ba0_ee15dcc8a845["HIRBuilder"]
  10c63c7e_e339_2c92_cb9e_11d13186c6a7 -->|defined in| d1b85268_f4cd_bc3c_7ba0_ee15dcc8a845
  bb81d73c_5996_9609_94fe_e0f8ad5e876d["lowerOptionalMemberExpression()"]
  bb81d73c_5996_9609_94fe_e0f8ad5e876d -->|calls| 10c63c7e_e339_2c92_cb9e_11d13186c6a7
  e401a324_13b9_af8a_12c7_b731c9f220a3["lowerOptionalCallExpression()"]
  e401a324_13b9_af8a_12c7_b731c9f220a3 -->|calls| 10c63c7e_e339_2c92_cb9e_11d13186c6a7
  3db1e7ce_1c6f_24e2_3cbb_86c02c29d285["enter()"]
  3db1e7ce_1c6f_24e2_3cbb_86c02c29d285 -->|calls| 10c63c7e_e339_2c92_cb9e_11d13186c6a7
  8e8a7c07_79b4_f2fb_53bd_2e3554679223["writeOptionalDependency()"]
  8e8a7c07_79b4_f2fb_53bd_2e3554679223 -->|calls| 10c63c7e_e339_2c92_cb9e_11d13186c6a7
  style 10c63c7e_e339_2c92_cb9e_11d13186c6a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts lines 464–478

  enterReserved(wip: WipBlock, fn: () => Terminal): void {
    const current = this.#current;
    this.#current = wip;
    const terminal = fn();
    const {id: blockId, kind, instructions} = this.#current;
    this.#completed.set(blockId, {
      kind,
      id: blockId,
      instructions,
      terminal,
      preds: new Set(),
      phis: new Set(),
    });
    this.#current = current;
  }

Subdomains

Frequently Asked Questions

What does enterReserved() do?
enterReserved() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts.
Where is enterReserved() defined?
enterReserved() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts at line 464.
What calls enterReserved()?
enterReserved() is called by 4 function(s): enter, lowerOptionalCallExpression, lowerOptionalMemberExpression, writeOptionalDependency.

Analyze Your Own Codebase

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

Try Supermodel Free