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

Function isStringLiteral

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

Source from the content-addressed store, hash-verified

78}
79
80export function isStringLiteral(node) {
81 return (
82 (node?.type === "Literal" && typeof node.value === "string") || node?.type === "StringLiteral"
83 );
84}
85
86export function typeName(node) {
87 if (node?.type === "Identifier") return node.name;

Callers 3

isTagPropertyFunction · 0.90
BinaryExpressionFunction · 0.90
nodeNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected