buildTypeEnvironment() — react Function Reference
Architecture documentation for the buildTypeEnvironment() function in Types.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD 58b4e5ec_badc_7135_9399_4df950f48acd["buildTypeEnvironment()"] 912702ee_f06e_77d9_d237_a41c50607cdf["Types.ts"] 58b4e5ec_badc_7135_9399_4df950f48acd -->|defined in| 912702ee_f06e_77d9_d237_a41c50607cdf e3d1f312_c52c_8d71_91e3_cec13c53ceb5["init()"] e3d1f312_c52c_8d71_91e3_cec13c53ceb5 -->|calls| 58b4e5ec_badc_7135_9399_4df950f48acd d8dd1b5e_3796_9a03_a97b_b42a7fad07d5["serializeLoc()"] 58b4e5ec_badc_7135_9399_4df950f48acd -->|calls| d8dd1b5e_3796_9a03_a97b_b42a7fad07d5 style 58b4e5ec_badc_7135_9399_4df950f48acd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Flood/Types.ts lines 671–690
function buildTypeEnvironment(
flowOutput: Array<{loc: t.SourceLocation; type: string}>,
): Map<string, string> {
const result: Map<string, string> = new Map();
for (const item of flowOutput) {
const loc: t.SourceLocation = {
start: {
line: item.loc.start.line,
column: item.loc.start.column - 1,
index: item.loc.start.index,
},
end: item.loc.end,
filename: item.loc.filename,
identifierName: item.loc.identifierName,
};
result.set(serializeLoc(loc), item.type);
}
return result;
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does buildTypeEnvironment() do?
buildTypeEnvironment() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Flood/Types.ts.
Where is buildTypeEnvironment() defined?
buildTypeEnvironment() is defined in compiler/packages/babel-plugin-react-compiler/src/Flood/Types.ts at line 671.
What does buildTypeEnvironment() call?
buildTypeEnvironment() calls 1 function(s): serializeLoc.
What calls buildTypeEnvironment()?
buildTypeEnvironment() is called by 1 function(s): init.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free