getFallthroughPropertyType() — react Function Reference
Architecture documentation for the getFallthroughPropertyType() function in Environment.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD ed5ed57e_aa77_1344_2ec0_5575b749f425["getFallthroughPropertyType()"] cba0c8a2_0db5_48e2_0d19_b2c6a46799e8["Environment"] ed5ed57e_aa77_1344_2ec0_5575b749f425 -->|defined in| cba0c8a2_0db5_48e2_0d19_b2c6a46799e8 041ca752_10c1_3cda_1f5c_02f44a01310e["invariant()"] ed5ed57e_aa77_1344_2ec0_5575b749f425 -->|calls| 041ca752_10c1_3cda_1f5c_02f44a01310e style ed5ed57e_aa77_1344_2ec0_5575b749f425 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts lines 1161–1180
getFallthroughPropertyType(
receiver: Type,
_property: Type,
): BuiltInType | PolyType | null {
let shapeId = null;
if (receiver.kind === 'Object' || receiver.kind === 'Function') {
shapeId = receiver.shapeId;
}
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.properties.get('*') ?? null;
}
return null;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does getFallthroughPropertyType() do?
getFallthroughPropertyType() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts.
Where is getFallthroughPropertyType() defined?
getFallthroughPropertyType() is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/Environment.ts at line 1161.
What does getFallthroughPropertyType() call?
getFallthroughPropertyType() calls 1 function(s): invariant.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free