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

Function isUncalledFunctionReference

test/fixtures/snapshot/typescript.js:62067–62076  ·  view source on GitHub ↗
(node, symbol)

Source from the content-addressed store, hash-verified

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;
62070 if (ts.isCallLikeExpression(parent)) {
62071 return ts.isCallOrNewExpression(parent) && ts.isIdentifier(node) && hasMatchingArgument(parent, node);
62072 }
62073 return ts.every(symbol.declarations, function (d) { return !ts.isFunctionLike(d) || !!(ts.getCombinedNodeFlags(d) & 268435456 /* NodeFlags.Deprecated */); });
62074 }
62075 return true;
62076 }
62077 function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) {
62078 var _a;
62079 var accessExpression = accessNode && accessNode.kind === 207 /* SyntaxKind.ElementAccessExpression */ ? accessNode : undefined;

Calls 2

hasMatchingArgumentFunction · 0.85
everyMethod · 0.80

Tested by

no test coverage detected