HIRFunction Type — react Architecture
Architecture documentation for the HIRFunction type/interface in HIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 9241c5c1_a9a7_17bc_e41c_e967225008dd["HIRFunction"] 18a78965_f593_105b_e5e8_07001321c2ec["HIR.ts"] 9241c5c1_a9a7_17bc_e41c_e967225008dd -->|defined in| 18a78965_f593_105b_e5e8_07001321c2ec style 9241c5c1_a9a7_17bc_e41c_e967225008dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 282–297
export type HIRFunction = {
loc: SourceLocation;
id: ValidIdentifierName | null;
nameHint: string | null;
fnType: ReactFunctionType;
env: Environment;
params: Array<Place | SpreadPattern>;
returnTypeAnnotation: t.FlowType | t.TSType | null;
returns: Place;
context: Array<Place>;
body: HIR;
generator: boolean;
async: boolean;
directives: Array<string>;
aliasingEffects: Array<AliasingEffect> | null;
};
Source
Frequently Asked Questions
What is the HIRFunction type?
HIRFunction is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is HIRFunction defined?
HIRFunction is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 282.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free