Home / Function/ makeTypeId() — react Function Reference

makeTypeId() — react Function Reference

Architecture documentation for the makeTypeId() function in Types.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  fc7fca18_2798_ef54_3a4f_a5307da94a13["makeTypeId()"]
  f1874e3c_f8f2_5f68_d3a9_0c56c0dad5ec["Types.ts"]
  fc7fca18_2798_ef54_3a4f_a5307da94a13 -->|defined in| f1874e3c_f8f2_5f68_d3a9_0c56c0dad5ec
  c50e6c61_a100_0e6f_983b_951164ba4856["makeType()"]
  c50e6c61_a100_0e6f_983b_951164ba4856 -->|calls| fc7fca18_2798_ef54_3a4f_a5307da94a13
  041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"]
  fc7fca18_2798_ef54_3a4f_a5307da94a13 -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e
  style fc7fca18_2798_ef54_3a4f_a5307da94a13 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/Types.ts lines 86–92

export function makeTypeId(id: number): TypeId {
  CompilerError.invariant(id >= 0 && Number.isInteger(id), {
    reason: 'Expected instruction id to be a non-negative integer',
    loc: GeneratedSource,
  });
  return id as TypeId;
}

Subdomains

Calls

Called By

Frequently Asked Questions

What does makeTypeId() do?
makeTypeId() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Types.ts.
Where is makeTypeId() defined?
makeTypeId() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Types.ts at line 86.
What does makeTypeId() call?
makeTypeId() calls 1 function(s): invariant.
What calls makeTypeId()?
makeTypeId() is called by 1 function(s): makeType.

Analyze Your Own Codebase

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

Try Supermodel Free