get() — react Function Reference
Architecture documentation for the get() function in InferTypes.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD f0603215_bdb0_88a0_8649_8c18b423f04f["get()"] e91596b5_bd35_ace7_a141_7dbab722b96d["Unifier"] f0603215_bdb0_88a0_8649_8c18b423f04f -->|defined in| e91596b5_bd35_ace7_a141_7dbab722b96d 257b9810_205d_8a64_1735_4cb469bb9ada["apply()"] 257b9810_205d_8a64_1735_4cb469bb9ada -->|calls| f0603215_bdb0_88a0_8649_8c18b423f04f a8cd1844_3d70_5338_2068_d0b3c257e5fa["getName()"] a8cd1844_3d70_5338_2068_d0b3c257e5fa -->|calls| f0603215_bdb0_88a0_8649_8c18b423f04f 1c006d07_fe01_836d_2c9c_015b0c23187c["unify()"] 1c006d07_fe01_836d_2c9c_015b0c23187c -->|calls| f0603215_bdb0_88a0_8649_8c18b423f04f 6938eece_f870_22b1_d136_01eb0a26f7b9["bindVariableTo()"] 6938eece_f870_22b1_d136_01eb0a26f7b9 -->|calls| f0603215_bdb0_88a0_8649_8c18b423f04f 3586dd2f_f748_328e_8e11_2899a16d4f45["tryResolveType()"] 3586dd2f_f748_328e_8e11_2899a16d4f45 -->|calls| f0603215_bdb0_88a0_8649_8c18b423f04f aa93304b_656c_028f_c640_ad8396517027["occursCheck()"] aa93304b_656c_028f_c640_ad8396517027 -->|calls| f0603215_bdb0_88a0_8649_8c18b423f04f style f0603215_bdb0_88a0_8649_8c18b423f04f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/TypeInference/InferTypes.ts lines 812–833
get(type: Type): Type {
if (type.kind === 'Type') {
if (this.substitutions.has(type.id)) {
return this.get(this.substitutions.get(type.id)!);
}
}
if (type.kind === 'Phi') {
return {kind: 'Phi', operands: type.operands.map(o => this.get(o))};
}
if (type.kind === 'Function') {
return {
kind: 'Function',
isConstructor: type.isConstructor,
shapeId: type.shapeId,
return: this.get(type.return),
};
}
return type;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does get() do?
get() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/TypeInference/InferTypes.ts.
Where is get() defined?
get() is defined in compiler/packages/babel-plugin-react-compiler/src/TypeInference/InferTypes.ts at line 812.
What calls get()?
get() is called by 6 function(s): apply, bindVariableTo, getName, occursCheck, tryResolveType, unify.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free