MCPcopy Create free account
hub / github.com/Rich-Harris/code-red / call

Function call

test/test.js:131–145  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

129 }`;
130
131 const call = (name) => ({
132 type: 'ExpressionStatement',
133 expression: {
134 type: 'CallExpression',
135 callee: {
136 type: 'MemberExpression',
137 object: { type: 'Identifier', name: 'console' },
138 property: { type: 'Identifier', name: 'log' },
139 optional: false,
140 computed: false
141 },
142 arguments: [{ type: 'Identifier', name }],
143 optional: false
144 }
145 });
146
147 assert.deepEqual(fn.body.body, [
148 { leadingComments: undefined, ...call('a') },

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…