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

Function getPropertyName

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

Source from the content-addressed store, hash-verified

41}
42
43export function getPropertyName(node) {
44 if (!node) return undefined;
45 if (node.type === "Identifier") return node.name;
46 if (node.type === "PrivateIdentifier") return node.name;
47 if (node.type === "Literal" && typeof node.value === "string") return node.value;
48 if (node.type === "StringLiteral") return node.value;
49 return undefined;
50}
51
52export function getCallName(node) {
53 const expression = unwrapExpression(node);

Callers 15

isGlobalFetchMemberFunction · 0.90
MemberExpressionFunction · 0.90
VariableDeclaratorFunction · 0.90
isRawDurableObjectIdCallFunction · 0.90
isEffectFailFunction · 0.90
MemberExpressionFunction · 0.90
isPromiseRejectFunction · 0.90
isEffectEscapeHatchFunction · 0.90
getTagAccessFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected