"use strict";
/**
 * Copyright: (c) Myia SAS 2026.
 * This file and its contents are licensed under the AGPLv3 License.
 * Please see the LICENSE file at the root of this repository
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGlobalTraceCallBuilder = createGlobalTraceCallBuilder;
function createGlobalTraceCallBuilder(t) {
    return function buildGlobalTraceCall(name, args) {
        const callee = t.memberExpression(t.identifier('globalThis'), t.identifier(name));
        const stmt = t.expressionStatement(t.optionalCallExpression(callee, args, /* optional */ true));
        stmt._traced = true;
        return stmt;
    };
}
