/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { CodeGeneratingComponentRendererHandlerEmitter } from "./CodeGeneratingComponentRendererHandlerEmitter";
import { markType } from "./type";
/**
 * @hidden
 */
export let DotNetCodeGeneratingComponentRendererHandlerEmitter = /*@__PURE__*/ (() => {
    class DotNetCodeGeneratingComponentRendererHandlerEmitter extends CodeGeneratingComponentRendererHandlerEmitter {
        constructor(a, b) {
            super(a, b);
        }
        v(a, b) {
            super.v(a, b);
            a.addUsing(b);
        }
        t(a, b) {
            super.t(a, b);
            if (b) {
                this.g.l("await JS.InvokeVoidAsync(\"" + a + "\");");
            }
            else {
                this.g.l("this." + a + "();");
            }
        }
        u(a, b) {
            super.u(a, b);
            if (b) {
                this.h.l("await JS.InvokeVoidAsync(\"" + a + "\");");
            }
            else {
                this.h.l("this." + a + "();");
            }
        }
        q(a) {
            return a;
        }
    }
    DotNetCodeGeneratingComponentRendererHandlerEmitter.$t = markType(DotNetCodeGeneratingComponentRendererHandlerEmitter, 'DotNetCodeGeneratingComponentRendererHandlerEmitter', CodeGeneratingComponentRendererHandlerEmitter.$);
    return DotNetCodeGeneratingComponentRendererHandlerEmitter;
})();
