requestAutoDepsDecorations() — react Function Reference
Architecture documentation for the requestAutoDepsDecorations() function in autodeps.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD e074d90d_e7e4_8712_7e9a_f91dc45771f7["requestAutoDepsDecorations()"] 3a910676_f8be_d818_db50_a56e267deac8["autodeps.ts"] e074d90d_e7e4_8712_7e9a_f91dc45771f7 -->|defined in| 3a910676_f8be_d818_db50_a56e267deac8 17f018e9_1791_e79a_69ea_e5ced1b31d52["activate()"] 17f018e9_1791_e79a_69ea_e5ced1b31d52 -->|calls| e074d90d_e7e4_8712_7e9a_f91dc45771f7 358051bf_e2fe_3f49_ee76_6a7f127f830a["setCurrentlyDecoratedAutoDepFnLoc()"] e074d90d_e7e4_8712_7e9a_f91dc45771f7 -->|calls| 358051bf_e2fe_3f49_ee76_6a7f127f830a a61442c1_1956_4da5_44fa_0759c3c6d573["positionsToRange()"] e074d90d_e7e4_8712_7e9a_f91dc45771f7 -->|calls| a61442c1_1956_4da5_44fa_0759c3c6d573 0b6a5fa1_a2ec_087a_62ef_d4f4bdedce1a["drawInferredEffectDepDecorations()"] e074d90d_e7e4_8712_7e9a_f91dc45771f7 -->|calls| 0b6a5fa1_a2ec_087a_62ef_d4f4bdedce1a 677e7028_ca89_375d_72a9_768be649aed8["clearCurrentlyDecoratedAutoDepFnLoc()"] e074d90d_e7e4_8712_7e9a_f91dc45771f7 -->|calls| 677e7028_ca89_375d_72a9_768be649aed8 9df07149_b18d_d802_dd2c_87c370b203e2["clearDecorations()"] e074d90d_e7e4_8712_7e9a_f91dc45771f7 -->|calls| 9df07149_b18d_d802_dd2c_87c370b203e2 style e074d90d_e7e4_8712_7e9a_f91dc45771f7 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/react-forgive/client/src/autodeps.ts lines 56–82
export function requestAutoDepsDecorations(
client: LanguageClient,
position: vscode.Position,
options: AutoDepsDecorationsOptions,
) {
const id = ++decorationRequestId;
client
.sendRequest(AutoDepsDecorationsRequest.type, {position})
.then(response => {
if (response !== null) {
const {
decorations,
useEffectCallExpr: [start, end],
} = response;
// Maintain ordering
if (decorationRequestId === id) {
if (options.shouldUpdateCurrent) {
setCurrentlyDecoratedAutoDepFnLoc(positionsToRange(start, end));
}
drawInferredEffectDepDecorations(decorations);
}
} else {
clearCurrentlyDecoratedAutoDepFnLoc();
clearDecorations(inferredEffectDepDecoration);
}
});
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does requestAutoDepsDecorations() do?
requestAutoDepsDecorations() is a function in the react codebase, defined in compiler/packages/react-forgive/client/src/autodeps.ts.
Where is requestAutoDepsDecorations() defined?
requestAutoDepsDecorations() is defined in compiler/packages/react-forgive/client/src/autodeps.ts at line 56.
What does requestAutoDepsDecorations() call?
requestAutoDepsDecorations() calls 5 function(s): clearCurrentlyDecoratedAutoDepFnLoc, clearDecorations, drawInferredEffectDepDecorations, positionsToRange, setCurrentlyDecoratedAutoDepFnLoc.
What calls requestAutoDepsDecorations()?
requestAutoDepsDecorations() is called by 1 function(s): activate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free