MCPcopy Create free account
hub / github.com/nodejs/node / asName

Function asName

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

Source from the content-addressed store, hash-verified

27199 return array ? createNodeArray(array) : undefined;
27200 }
27201 function asName(name) {
27202 return typeof name === "string" ? createIdentifier(name) :
27203 name;
27204 }
27205 function asExpression(value) {
27206 return typeof value === "string" ? createStringLiteral(value) :
27207 typeof value === "number" ? createNumericLiteral(value) :

Callers 12

createQualifiedNameFunction · 0.85
createTypePredicateNodeFunction · 0.85
createTypeReferenceNodeFunction · 0.85
createBindingElementFunction · 0.85
createContinueStatementFunction · 0.85
createBreakStatementFunction · 0.85
createLabeledStatementFunction · 0.85
createExportSpecifierFunction · 0.85
createEnumMemberFunction · 0.85

Calls 1

createIdentifierFunction · 0.85

Tested by

no test coverage detected