makeInstructionId() — react Function Reference
Architecture documentation for the makeInstructionId() function in HIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD d0270ab6_a621_bd55_a1b9_a5cad8b406b2["makeInstructionId()"] 18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"] d0270ab6_a621_bd55_a1b9_a5cad8b406b2 -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec f214c28b_2f6d_b5a3_71e1_9a69d9b50455["lower()"] f214c28b_2f6d_b5a3_71e1_9a69d9b50455 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 c01b12bd_811d_9f90_f641_fac8e518dbb7["lowerStatement()"] c01b12bd_811d_9f90_f641_fac8e518dbb7 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 ace1177a_10b2_b870_31fd_da4aa845554c["lowerExpression()"] ace1177a_10b2_b870_31fd_da4aa845554c -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 bb81d73c_5996_9609_94fe_e0f8ad5e876d["lowerOptionalMemberExpression()"] bb81d73c_5996_9609_94fe_e0f8ad5e876d -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 e401a324_13b9_af8a_12c7_b731c9f220a3["lowerOptionalCallExpression()"] e401a324_13b9_af8a_12c7_b731c9f220a3 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 f1f0c182_09ad_b29e_b1ca_56f10046adff["lowerValueToTemporary()"] f1f0c182_09ad_b29e_b1ca_56f10046adff -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 b98634fa_1f83_e1bb_1406_d07e28c93b41["lowerAssignment()"] b98634fa_1f83_e1bb_1406_d07e28c93b41 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 4e7c3351_9e52_0196_d1f4_d8371b23d0cb["makeTemporaryIdentifier()"] 4e7c3351_9e52_0196_d1f4_d8371b23d0cb -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 944a7685_681f_7ceb_b9d7_9dba5aaf1da4["forkTemporaryIdentifier()"] 944a7685_681f_7ceb_b9d7_9dba5aaf1da4 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 53244187_914c_cc90_5880_7bfc1fc9c0bb["push()"] 53244187_914c_cc90_5880_7bfc1fc9c0bb -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 cf4d0005_5527_42f1_2412_741dbace1899["resolveBinding()"] cf4d0005_5527_42f1_2412_741dbace1899 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 0c09df5a_6c07_11e5_1a6b_9253007463b8["markInstructionIds()"] 0c09df5a_6c07_11e5_1a6b_9253007463b8 -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 c678dac0_f0b5_fd43_e8fe_97067c37de7d["removeUnnecessaryTryCatch()"] c678dac0_f0b5_fd43_e8fe_97067c37de7d -->|calls| d0270ab6_a621_bd55_a1b9_a5cad8b406b2 style d0270ab6_a621_bd55_a1b9_a5cad8b406b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1775–1781
export function makeInstructionId(id: number): InstructionId {
CompilerError.invariant(id >= 0 && Number.isInteger(id), {
reason: 'Expected instruction id to be a non-negative integer',
loc: GeneratedSource,
});
return id as InstructionId;
}
Domain
Subdomains
Calls
Called By
- alignReactiveScopesToBlockScopesHIR()
- buildDependencyInstructions()
- collectDependencies()
- emitDestructureProps()
- emitOutlinedFn()
- emitOutlinedJsx()
- forkTemporaryIdentifier()
- inferMutationAliasingRanges()
- inferReactiveScopeVariables()
- lower()
- lowerAssignment()
- lowerExpression()
- lowerOptionalCallExpression()
- lowerOptionalMemberExpression()
- lowerStatement()
- lowerValueToTemporary()
- makeId()
- makeTemporaryIdentifier()
- mapTerminalSuccessors()
- markInstructionIds()
- mergeOverlappingReactiveScopesHIR()
- mutate()
- push()
- removeUnnecessaryTryCatch()
- resolveBinding()
- signatureArgument()
- writeNonOptionalDependency()
- writeOptionalDependency()
Source
Frequently Asked Questions
What does makeInstructionId() do?
makeInstructionId() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is makeInstructionId() defined?
makeInstructionId() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1775.
What does makeInstructionId() call?
makeInstructionId() calls 1 function(s): invariant.
What calls makeInstructionId()?
makeInstructionId() is called by 28 function(s): alignReactiveScopesToBlockScopesHIR, buildDependencyInstructions, collectDependencies, emitDestructureProps, emitOutlinedFn, emitOutlinedJsx, forkTemporaryIdentifier, inferMutationAliasingRanges, and 20 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free