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

Function isExpressionInCallExpression

test/fixtures/snapshot/typescript.js:131162–131167  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

131160 return parent && (ts.isImportClause(parent) || ts.isImportSpecifier(parent) || ts.isNamespaceImport(parent));
131161 }
131162 function isExpressionInCallExpression(node) {
131163 while (isRightSideOfQualifiedNameOrPropertyAccess(node)) {
131164 node = node.parent;
131165 }
131166 return ts.isCallExpression(node.parent) && node.parent.expression === node;
131167 }
131168 function isRightSideOfQualifiedNameOrPropertyAccess(node) {
131169 return (ts.isQualifiedName(node.parent) && node.parent.right === node) || (ts.isPropertyAccessExpression(node.parent) && node.parent.name === node);
131170 }

Callers 1

reclassifyByTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…