Home / Function/ mapCompilerEventToLSPEvent() — react Function Reference

mapCompilerEventToLSPEvent() — react Function Reference

Architecture documentation for the mapCompilerEventToLSPEvent() function in autodepsdecorations.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c22d5a3d_3487_16b9_1aaa_bcb46a8280f5["mapCompilerEventToLSPEvent()"]
  08a4e47f_6b9c_64f7_9030_8560a35663d9["autodepsdecorations.ts"]
  c22d5a3d_3487_16b9_1aaa_bcb46a8280f5 -->|defined in| 08a4e47f_6b9c_64f7_9030_8560a35663d9
  497f93b4_2542_8bd2_bd98_b0f4095478c3["sourceLocationToRange()"]
  c22d5a3d_3487_16b9_1aaa_bcb46a8280f5 -->|calls| 497f93b4_2542_8bd2_bd98_b0f4095478c3
  style c22d5a3d_3487_16b9_1aaa_bcb46a8280f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts lines 28–35

export function mapCompilerEventToLSPEvent(
  event: AutoDepsDecorationsEvent,
): AutoDepsDecorationsLSPEvent {
  return {
    useEffectCallExpr: sourceLocationToRange(event.fnLoc),
    decorations: event.decorations.map(sourceLocationToRange),
  };
}

Domain

Subdomains

Frequently Asked Questions

What does mapCompilerEventToLSPEvent() do?
mapCompilerEventToLSPEvent() is a function in the react codebase, defined in compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts.
Where is mapCompilerEventToLSPEvent() defined?
mapCompilerEventToLSPEvent() is defined in compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts at line 28.
What does mapCompilerEventToLSPEvent() call?
mapCompilerEventToLSPEvent() calls 1 function(s): sourceLocationToRange.

Analyze Your Own Codebase

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

Try Supermodel Free