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

Function getPropertyNameFromIndex

test/fixtures/snapshot/typescript.js:62059–62066  ·  view source on GitHub ↗
(indexType, accessNode)

Source from the content-addressed store, hash-verified

62057 return false;
62058 }
62059 function getPropertyNameFromIndex(indexType, accessNode) {
62060 return isTypeUsableAsPropertyName(indexType) ?
62061 getPropertyNameFromType(indexType) :
62062 accessNode && ts.isPropertyName(accessNode) ?
62063 // late bound names are handled in the first branch, so here we only need to handle normal names
62064 ts.getPropertyNameForPropertyNameNode(accessNode) :
62065 undefined;
62066 }
62067 function isUncalledFunctionReference(node, symbol) {
62068 if (symbol.flags & (16 /* SymbolFlags.Function */ | 8192 /* SymbolFlags.Method */)) {
62069 var parent = ts.findAncestor(node.parent, function (n) { return !ts.isAccessExpression(n); }) || node.parent;

Callers 3

elaborateElementwiseFunction · 0.85

Calls 2

getPropertyNameFromTypeFunction · 0.85

Tested by

no test coverage detected