Home / Function/ transformFire() — react Function Reference

transformFire() — react Function Reference

Architecture documentation for the transformFire() function in TransformFire.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  eb912b93_4822_3d1c_01d1_b29c95176ed7["transformFire()"]
  6061353e_921a_a1a8_d6c1_777e8d9f8896["TransformFire.ts"]
  eb912b93_4822_3d1c_01d1_b29c95176ed7 -->|defined in| 6061353e_921a_a1a8_d6c1_777e8d9f8896
  38224692_55f3_a937_63fd_e0266e855650["replaceFireFunctions()"]
  eb912b93_4822_3d1c_01d1_b29c95176ed7 -->|calls| 38224692_55f3_a937_63fd_e0266e855650
  61bac3c3_d338_97b0_70fd_5bd6924abfa9["hasErrors()"]
  eb912b93_4822_3d1c_01d1_b29c95176ed7 -->|calls| 61bac3c3_d338_97b0_70fd_5bd6924abfa9
  d2181b26_6497_c534_1059_eea301950095["ensureNoMoreFireUses()"]
  eb912b93_4822_3d1c_01d1_b29c95176ed7 -->|calls| d2181b26_6497_c534_1059_eea301950095
  dffc2a47_a4be_b40a_b989_6b15ad82cf00["throwIfErrorsFound()"]
  eb912b93_4822_3d1c_01d1_b29c95176ed7 -->|calls| dffc2a47_a4be_b40a_b989_6b15ad82cf00
  style eb912b93_4822_3d1c_01d1_b29c95176ed7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts lines 51–58

export function transformFire(fn: HIRFunction): void {
  const context = new Context(fn.env);
  replaceFireFunctions(fn, context);
  if (!context.hasErrors()) {
    ensureNoMoreFireUses(fn, context);
  }
  context.throwIfErrorsFound();
}

Domain

Subdomains

Frequently Asked Questions

What does transformFire() do?
transformFire() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts.
Where is transformFire() defined?
transformFire() is defined in compiler/packages/babel-plugin-react-compiler/src/Transform/TransformFire.ts at line 51.
What does transformFire() call?
transformFire() calls 4 function(s): ensureNoMoreFireUses, hasErrors, replaceFireFunctions, throwIfErrorsFound.

Analyze Your Own Codebase

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

Try Supermodel Free