MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / getCallName

Function getCallName

scripts/oxlint-plugin-executor/utils.js:52–57  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

50}
51
52export function getCallName(node) {
53 const expression = unwrapExpression(node);
54 if (expression?.type === "Identifier") return expression.name;
55 if (expression?.type === "MemberExpression") return getPropertyName(expression.property);
56 return undefined;
57}
58
59export function hasObjectProperty(node, name) {
60 const expression = unwrapExpression(node);

Callers 6

isCatchTagHandlerFunction · 0.90
CallExpressionFunction · 0.90
isSchemaModelExpressionFunction · 0.90
VariableDeclaratorFunction · 0.90
AwaitExpressionFunction · 0.90
getMutationNameFunction · 0.90

Calls 2

getPropertyNameFunction · 0.85
unwrapExpressionFunction · 0.70

Tested by

no test coverage detected