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

Function nodeName

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

Source from the content-addressed store, hash-verified

123}
124
125export function nodeName(node) {
126 if (isIdentifier(node)) return node.name;
127 if (node?.type === "PrivateIdentifier") return node.name;
128 if (isStringLiteral(node)) return node.value;
129 return undefined;
130}

Callers 6

BinaryExpressionFunction · 0.90
isErrorLikeIdentifierFunction · 0.90
BinaryExpressionFunction · 0.90
isClientInterfaceFunction · 0.90
isErrorConstructorFunction · 0.90

Calls 2

isIdentifierFunction · 0.85
isStringLiteralFunction · 0.85

Tested by

no test coverage detected