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

Function getLiteralPropertyNameText

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

Source from the content-addressed store, hash-verified

55840 return "" + parent.elements.indexOf(node);
55841 }
55842 function getLiteralPropertyNameText(name) {
55843 var type = getLiteralTypeFromPropertyName(name);
55844 return type.flags & (128 /* TypeFlags.StringLiteral */ | 256 /* TypeFlags.NumberLiteral */) ? "" + type.value : undefined;
55845 }
55846 /** Return the inferred type for a binding element */
55847 function getTypeForBindingElement(declaration) {
55848 var checkMode = declaration.dotDotDotToken ? 64 /* CheckMode.RestBindingElement */ : 0 /* CheckMode.Normal */;

Callers 1

Calls 1

Tested by

no test coverage detected