Home / File/ mapping.ts — react Source File

mapping.ts — react Source File

Architecture documentation for mapping.ts, a typescript file in the react codebase. 2 imports, 2 dependents.

File typescript BabelCompiler Validation 2 imports 2 dependents 2 functions

Entity Profile

Dependency Diagram

graph LR
  eb31addc_e8f2_e650_2d2e_73b1e6707d3b["mapping.ts"]
  7b0819cb_de77_6f97_9611_4fdd26c462b2["vscode"]
  eb31addc_e8f2_e650_2d2e_73b1e6707d3b --> 7b0819cb_de77_6f97_9611_4fdd26c462b2
  9c9d6ec0_3169_dadc_b536_71d91f7cda8b["node"]
  eb31addc_e8f2_e650_2d2e_73b1e6707d3b --> 9c9d6ec0_3169_dadc_b536_71d91f7cda8b
  fab4dac4_b1d2_9219_5b57_865f42c56191["autodeps.ts"]
  fab4dac4_b1d2_9219_5b57_865f42c56191 --> eb31addc_e8f2_e650_2d2e_73b1e6707d3b
  f813a254_53b8_e2e6_c027_4a274369335d["extension.ts"]
  f813a254_53b8_e2e6_c027_4a274369335d --> eb31addc_e8f2_e650_2d2e_73b1e6707d3b
  style eb31addc_e8f2_e650_2d2e_73b1e6707d3b 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 * as vscode from 'vscode';
import {Position} from 'vscode-languageclient/node';

export function positionLiteralToVSCodePosition(
  position: Position,
): vscode.Position {
  return new vscode.Position(position.line, position.character);
}

export function positionsToRange(start: Position, end: Position): vscode.Range {
  return new vscode.Range(
    positionLiteralToVSCodePosition(start),
    positionLiteralToVSCodePosition(end),
  );
}

Domain

Subdomains

Dependencies

  • node
  • vscode

Frequently Asked Questions

What does mapping.ts do?
mapping.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 mapping.ts?
mapping.ts defines 2 function(s): positionLiteralToVSCodePosition, positionsToRange.
What does mapping.ts depend on?
mapping.ts imports 2 module(s): node, vscode.
What files import mapping.ts?
mapping.ts is imported by 2 file(s): autodeps.ts, extension.ts.
Where is mapping.ts in the architecture?
mapping.ts is located at compiler/packages/react-forgive/client/src/mapping.ts (domain: BabelCompiler, subdomain: Validation, directory: compiler/packages/react-forgive/client/src).

Analyze Your Own Codebase

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

Try Supermodel Free