Home / Function/ drawInferredEffectDepDecorations() — react Function Reference

drawInferredEffectDepDecorations() — react Function Reference

Architecture documentation for the drawInferredEffectDepDecorations() function in autodeps.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ff0073da_3466_9c44_3477_8cf7b08a4c7c["drawInferredEffectDepDecorations()"]
  fab4dac4_b1d2_9219_5b57_865f42c56191["autodeps.ts"]
  ff0073da_3466_9c44_3477_8cf7b08a4c7c -->|defined in| fab4dac4_b1d2_9219_5b57_865f42c56191
  53a1361f_1c97_6de1_db62_3c0cc543d4ec["requestAutoDepsDecorations()"]
  53a1361f_1c97_6de1_db62_3c0cc543d4ec -->|calls| ff0073da_3466_9c44_3477_8cf7b08a4c7c
  8b03c84d_93d1_8f5d_1738_d4c92b683f01["positionLiteralToVSCodePosition()"]
  ff0073da_3466_9c44_3477_8cf7b08a4c7c -->|calls| 8b03c84d_93d1_8f5d_1738_d4c92b683f01
  style ff0073da_3466_9c44_3477_8cf7b08a4c7c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/react-forgive/client/src/autodeps.ts lines 84–100

export function drawInferredEffectDepDecorations(
  decorations: Array<[Position, Position]>,
): void {
  const decorationOptions = decorations.map(([start, end]) => {
    return {
      range: new vscode.Range(
        positionLiteralToVSCodePosition(start),
        positionLiteralToVSCodePosition(end),
      ),
      hoverMessage: 'Inferred as an effect dependency',
    };
  });
  vscode.window.activeTextEditor?.setDecorations(
    inferredEffectDepDecoration,
    decorationOptions,
  );
}

Domain

Subdomains

Frequently Asked Questions

What does drawInferredEffectDepDecorations() do?
drawInferredEffectDepDecorations() is a function in the react codebase, defined in compiler/packages/react-forgive/client/src/autodeps.ts.
Where is drawInferredEffectDepDecorations() defined?
drawInferredEffectDepDecorations() is defined in compiler/packages/react-forgive/client/src/autodeps.ts at line 84.
What does drawInferredEffectDepDecorations() call?
drawInferredEffectDepDecorations() calls 1 function(s): positionLiteralToVSCodePosition.
What calls drawInferredEffectDepDecorations()?
drawInferredEffectDepDecorations() is called by 1 function(s): requestAutoDepsDecorations.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free