MCPcopy
hub / github.com/sveltejs/svelte / maybe_call

Function maybe_call

packages/svelte/src/compiler/utils/builders.js:149–157  ·  view source on GitHub ↗
(callee, ...args)

Source from the content-addressed store, hash-verified

147 * @returns {ESTree.ChainExpression}
148 */
149export function maybe_call(callee, ...args) {
150 const expression = /** @type {ESTree.SimpleCallExpression} */ (call(callee, ...args));
151 expression.optional = true;
152
153 return {
154 type: 'ChainExpression',
155 expression
156 };
157}
158
159/**
160 * @param {ESTree.UnaryOperator} operator

Callers

nothing calls this directly

Calls 1

callFunction · 0.85

Tested by

no test coverage detected