getMethodCallName() — react Function Reference
Architecture documentation for the getMethodCallName() function in ReactFlightStackConfigV8.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a636622f_5efc_89d6_e0eb_f5e54b6cd41f["getMethodCallName()"] 6b04fae3_e76f_58bb_e731_caa9abb4c49c["ReactFlightStackConfigV8.js"] a636622f_5efc_89d6_e0eb_f5e54b6cd41f -->|defined in| 6b04fae3_e76f_58bb_e731_caa9abb4c49c 3890a326_1e32_462e_feaa_0e71b5156b1f["collectStackTracePrivate()"] 3890a326_1e32_462e_feaa_0e71b5156b1f -->|calls| a636622f_5efc_89d6_e0eb_f5e54b6cd41f style a636622f_5efc_89d6_e0eb_f5e54b6cd41f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-server/src/ReactFlightStackConfigV8.js lines 17–50
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-server/src/ReactFlightStackConfigV8.js.
Where is getMethodCallName() defined?
getMethodCallName() is defined in packages/react-server/src/ReactFlightStackConfigV8.js at line 17.
What calls getMethodCallName()?
getMethodCallName() is called by 1 function(s): collectStackTracePrivate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free