getMethodCallName() — react Function Reference
Architecture documentation for the getMethodCallName() function in parseStackTrace.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 6994a131_6218_cba5_2231_90f5cadef485["getMethodCallName()"] c70671e1_42cb_8c92_da33_5303a72f89b1["parseStackTrace.js"] 6994a131_6218_cba5_2231_90f5cadef485 -->|defined in| c70671e1_42cb_8c92_da33_5303a72f89b1 d8a563c2_1186_4118_2454_b0e4ea9aa908["collectStackTrace()"] d8a563c2_1186_4118_2454_b0e4ea9aa908 -->|calls| 6994a131_6218_cba5_2231_90f5cadef485 style 6994a131_6218_cba5_2231_90f5cadef485 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-devtools-shared/src/backend/utils/parseStackTrace.js lines 113–146
function getMethodCallName(callSite: CallSite): string {
const typeName = callSite.getTypeName();
const methodName = callSite.getMethodName();
const functionName = callSite.getFunctionName();
let result = '';
if (functionName) {
if (
typeName &&
identifierRegExp.test(functionName) &&
functionName !== typeName
) {
result += typeName + '.';
}
result += functionName;
if (
methodName &&
functionName !== methodName &&
!functionName.endsWith('.' + methodName) &&
!functionName.endsWith(' ' + methodName)
) {
result += ' [as ' + methodName + ']';
}
} else {
if (typeName) {
result += typeName + '.';
}
if (methodName) {
result += methodName;
} else {
result += '<anonymous>';
}
}
return result;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getMethodCallName() do?
getMethodCallName() is a function in the react codebase, defined in packages/react-devtools-shared/src/backend/utils/parseStackTrace.js.
Where is getMethodCallName() defined?
getMethodCallName() is defined in packages/react-devtools-shared/src/backend/utils/parseStackTrace.js at line 113.
What calls getMethodCallName()?
getMethodCallName() is called by 1 function(s): collectStackTrace.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free