MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / attributeName

Function attributeName

graph-ui/tools/promise-scan.mjs:213–222  ·  view source on GitHub ↗

Der Name eines JSX-Attributs als Text.

(node)

Source from the content-addressed store, hash-verified

211
212/** Der Name eines JSX-Attributs als Text. */
213function attributeName(node) {
214 const name = node.name;
215 if (name === undefined) {
216 return '';
217 }
218 if (ts.isIdentifier(name) || ts.isStringLiteral(name)) {
219 return name.text;
220 }
221 return name.getText?.() ?? '';
222}
223
224/** Der Tagname eines JSX-Elements, oder leer. */
225function tagNameOf(opening) {

Callers 1

visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected