hookSourceLocation.js — react Source File
Architecture documentation for hookSourceLocation.js, a javascript file in the react codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7bff09e2_7a50_c113_becb_8eee3e5ccda4["hookSourceLocation.js"] aec7978f_0a19_ba93_de9e_ac8cf5ddc74b["types"] 7bff09e2_7a50_c113_becb_8eee3e5ccda4 --> aec7978f_0a19_ba93_de9e_ac8cf5ddc74b 741f125f_8d71_2134_c016_a18fb8f60d66["ReactDebugHooks"] 7bff09e2_7a50_c113_becb_8eee3e5ccda4 --> 741f125f_8d71_2134_c016_a18fb8f60d66 style 7bff09e2_7a50_c113_becb_8eee3e5ccda4 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.
*
* @flow
*/
import type {HookSourceLocationKey} from 'react-devtools-shared/src/frontend/types';
import type {HookSource} from 'react-debug-tools/src/ReactDebugHooks';
export function getHookSourceLocationKey({
fileName,
lineNumber,
columnNumber,
}: HookSource): HookSourceLocationKey {
if (fileName == null || lineNumber == null || columnNumber == null) {
throw Error('Hook source code location not found.');
}
return `${fileName}:${lineNumber}:${columnNumber}`;
}
Domain
Subdomains
Functions
Dependencies
- ReactDebugHooks
- types
Source
Frequently Asked Questions
What does hookSourceLocation.js do?
hookSourceLocation.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in hookSourceLocation.js?
hookSourceLocation.js defines 1 function(s): getHookSourceLocationKey.
What does hookSourceLocation.js depend on?
hookSourceLocation.js imports 2 module(s): ReactDebugHooks, types.
Where is hookSourceLocation.js in the architecture?
hookSourceLocation.js is located at packages/react-devtools-shared/src/hookSourceLocation.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-devtools-shared/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free