Home / Function/ getFunctionSignature() — react Function Reference

getFunctionSignature() — react Function Reference

Architecture documentation for the getFunctionSignature() function in Environment.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  be656a93_989d_fb7a_b608_f2df48cb0e67["getFunctionSignature()"]
  cba0c8a2_0db5_48e2_0d19_b2c6a46799e8["Environment"]
  be656a93_989d_fb7a_b608_f2df48cb0e67 -->|defined in| cba0c8a2_0db5_48e2_0d19_b2c6a46799e8
  67f87937_36ed_a7a2_a22b_50ebabdcd7ed["getHookKindForType()"]
  67f87937_36ed_a7a2_a22b_50ebabdcd7ed -->|calls| be656a93_989d_fb7a_b608_f2df48cb0e67
  041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"]
  be656a93_989d_fb7a_b608_f2df48cb0e67 -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e
  style be656a93_989d_fb7a_b608_f2df48cb0e67 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts lines 1215–1226

  getFunctionSignature(type: FunctionType): FunctionSignature | null {
    const {shapeId} = type;
    if (shapeId !== null) {
      const shape = this.#shapes.get(shapeId);
      CompilerError.invariant(shape !== undefined, {
        reason: `[HIR] Forget internal error: cannot resolve shape ${shapeId}`,
        loc: GeneratedSource,
      });
      return shape.functionType;
    }
    return null;
  }

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free