Home / Function/ lowerObjectMethod() — react Function Reference

lowerObjectMethod() — react Function Reference

Architecture documentation for the lowerObjectMethod() function in BuildHIR.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  0dc9964a_90d6_36ea_5cbb_0afd21422799["lowerObjectMethod()"]
  e04c04d6_37a7_1dc3_7fae_7d07660d0af9["BuildHIR.ts"]
  0dc9964a_90d6_36ea_5cbb_0afd21422799 -->|defined in| e04c04d6_37a7_1dc3_7fae_7d07660d0af9
  ace1177a_10b2_b870_31fd_da4aa845554c["lowerExpression()"]
  ace1177a_10b2_b870_31fd_da4aa845554c -->|calls| 0dc9964a_90d6_36ea_5cbb_0afd21422799
  535369af_370f_d1a4_e72e_56482eceef72["lowerFunction()"]
  0dc9964a_90d6_36ea_5cbb_0afd21422799 -->|calls| 535369af_370f_d1a4_e72e_56482eceef72
  style 0dc9964a_90d6_36ea_5cbb_0afd21422799 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts lines 1491–1506

function lowerObjectMethod(
  builder: HIRBuilder,
  property: NodePath<t.ObjectMethod>,
): InstructionValue {
  const loc = property.node.loc ?? GeneratedSource;
  const loweredFunc = lowerFunction(builder, property);
  if (!loweredFunc) {
    return {kind: 'UnsupportedNode', node: property.node, loc: loc};
  }

  return {
    kind: 'ObjectMethod',
    loc,
    loweredFunc,
  };
}

Subdomains

Called By

Frequently Asked Questions

What does lowerObjectMethod() do?
lowerObjectMethod() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts.
Where is lowerObjectMethod() defined?
lowerObjectMethod() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts at line 1491.
What does lowerObjectMethod() call?
lowerObjectMethod() calls 1 function(s): lowerFunction.
What calls lowerObjectMethod()?
lowerObjectMethod() is called by 1 function(s): lowerExpression.

Analyze Your Own Codebase

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

Try Supermodel Free