MCPcopy
hub / github.com/lingodotdev/lingo.dev / CallExpression

Function CallExpression

packages/compiler/src/utils/invokations.ts:57–71  ·  view source on GitHub ↗
(callPath: NodePath<t.CallExpression>)

Source from the content-addressed store, hash-verified

55
56 program.traverse({
57 CallExpression(callPath: NodePath<t.CallExpression>) {
58 const callee = callPath.node.callee;
59
60 if (t.isIdentifier(callee) && importNames.has(callee.name)) {
61 result.push(callPath.node);
62 } else if (
63 t.isMemberExpression(callee) &&
64 t.isIdentifier(callee.object) &&
65 importNames.get(callee.object.name) === "namespace" &&
66 t.isIdentifier(callee.property) &&
67 callee.property.name === functionName
68 ) {
69 result.push(callPath.node);
70 }
71 },
72 });
73}

Callers

nothing calls this directly

Calls 3

hasMethod · 0.65
pushMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected