MCPcopy Index your code
hub / github.com/nodejs/node / declarationNameToString

Function declarationNameToString

test/fixtures/snapshot/typescript.js:15212–15214  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

15210 // Computed property names will just be emitted as "[<expr>]", where <expr> is the source
15211 // text of the expression in the computed property.
15212 function declarationNameToString(name) {
15213 return !name || getFullWidth(name) === 0 ? "(Missing)" : getTextOfNode(name);
15214 }
15215 ts.declarationNameToString = declarationNameToString;
15216 function getNameFromIndexInfo(info) {
15217 return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : undefined;

Callers 1

getNameFromIndexInfoFunction · 0.85

Calls 2

getFullWidthFunction · 0.85
getTextOfNodeFunction · 0.85

Tested by

no test coverage detected