autodepsdecorations.ts — react Source File
Architecture documentation for autodepsdecorations.ts, a typescript file in the react codebase. 5 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 08a4e47f_6b9c_64f7_9030_8560a35663d9["autodepsdecorations.ts"] 8e72bb38_0446_40c5_e453_1f12111e8936["range.ts"] 08a4e47f_6b9c_64f7_9030_8560a35663d9 --> 8e72bb38_0446_40c5_e453_1f12111e8936 497f93b4_2542_8bd2_bd98_b0f4095478c3["sourceLocationToRange"] 08a4e47f_6b9c_64f7_9030_8560a35663d9 --> 497f93b4_2542_8bd2_bd98_b0f4095478c3 33e3aca7_66ee_ce27_72ad_b6d7fb17e06c["babel-plugin-react-compiler"] 08a4e47f_6b9c_64f7_9030_8560a35663d9 --> 33e3aca7_66ee_ce27_72ad_b6d7fb17e06c d0e453f3_05cd_2acf_706a_db3a9a8be9a9["vscode-languageserver-textdocument"] 08a4e47f_6b9c_64f7_9030_8560a35663d9 --> d0e453f3_05cd_2acf_706a_db3a9a8be9a9 68521835_0a40_a94c_8edf_d1628eba6b29["node"] 08a4e47f_6b9c_64f7_9030_8560a35663d9 --> 68521835_0a40_a94c_8edf_d1628eba6b29 45729896_cc85_f8cb_a3e3_efc08e3b01a6["index.ts"] 45729896_cc85_f8cb_a3e3_efc08e3b01a6 --> 08a4e47f_6b9c_64f7_9030_8560a35663d9 style 08a4e47f_6b9c_64f7_9030_8560a35663d9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {type AutoDepsDecorationsEvent} from 'babel-plugin-react-compiler';
import {type Position} from 'vscode-languageserver-textdocument';
import {RequestType} from 'vscode-languageserver/node';
import {type Range, sourceLocationToRange} from '../utils/range';
export type AutoDepsDecorationsLSPEvent = {
useEffectCallExpr: Range;
decorations: Array<Range>;
};
export interface AutoDepsDecorationsParams {
position: Position;
}
export namespace AutoDepsDecorationsRequest {
export const type = new RequestType<
AutoDepsDecorationsParams,
AutoDepsDecorationsLSPEvent,
void
>('react/autodeps_decorations');
}
export function mapCompilerEventToLSPEvent(
event: AutoDepsDecorationsEvent,
): AutoDepsDecorationsLSPEvent {
return {
useEffectCallExpr: sourceLocationToRange(event.fnLoc),
decorations: event.decorations.map(sourceLocationToRange),
};
}
Domain
Subdomains
Functions
Dependencies
- babel-plugin-react-compiler
- node
- range.ts
- sourceLocationToRange
- vscode-languageserver-textdocument
Source
Frequently Asked Questions
What does autodepsdecorations.ts do?
autodepsdecorations.ts is a source file in the react codebase, written in typescript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in autodepsdecorations.ts?
autodepsdecorations.ts defines 1 function(s): mapCompilerEventToLSPEvent.
What does autodepsdecorations.ts depend on?
autodepsdecorations.ts imports 5 module(s): babel-plugin-react-compiler, node, range.ts, sourceLocationToRange, vscode-languageserver-textdocument.
What files import autodepsdecorations.ts?
autodepsdecorations.ts is imported by 1 file(s): index.ts.
Where is autodepsdecorations.ts in the architecture?
autodepsdecorations.ts is located at compiler/packages/react-forgive/server/src/requests/autodepsdecorations.ts (domain: BabelCompiler, subdomain: Validation, directory: compiler/packages/react-forgive/server/src/requests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free