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

Function getCalledExpressionName

test/fixtures/snapshot/typescript.js:141564–141576  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

141562 }
141563 // See also 'tryGetPropertyAccessOrIdentifierToString'
141564 function getCalledExpressionName(expr) {
141565 if (ts.isIdentifier(expr)) {
141566 return expr.text;
141567 }
141568 else if (ts.isPropertyAccessExpression(expr)) {
141569 var left = getCalledExpressionName(expr.expression);
141570 var right = expr.name.text;
141571 return left === undefined ? right : "".concat(left, ".").concat(right);
141572 }
141573 else {
141574 return undefined;
141575 }
141576 }
141577 function isFunctionOrClassExpression(node) {
141578 switch (node.kind) {
141579 case 214 /* SyntaxKind.ArrowFunction */:

Callers 1

getFunctionOrClassNameFunction · 0.85

Calls 1

concatMethod · 0.80

Tested by

no test coverage detected