/*
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 * as tslib_1 from "tslib";
import { InvalidOperationException } from "./InvalidOperationException";
import { Base, markType } from "./type";
var FilterExpressionVisitor = /** @class */ (function (_super) {
    tslib_1.__extends(FilterExpressionVisitor, _super);
    function FilterExpressionVisitor() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    FilterExpressionVisitor.prototype.a = function (a) {
        if (a == null) {
            throw new InvalidOperationException(1, "Expected an expression but found none");
        }
        if (a.isOperation) {
            this.d(a);
        }
        else if (a.isFunction) {
            this.b(a);
        }
        else if (a.isLiteral) {
            this.c(a);
        }
        else if (a.isPropertyReference) {
            this.e(a);
        }
    };
    FilterExpressionVisitor.prototype.d = function (a) {
        if (a.left != null) {
            this.a(a.left);
        }
        if (a.right != null) {
            this.a(a.right);
        }
    };
    FilterExpressionVisitor.prototype.b = function (a) {
        for (var b = 0; b < a.functionArguments.i.count; b++) {
            this.a(a.functionArguments.i.item(b));
        }
    };
    FilterExpressionVisitor.prototype.c = function (a) {
    };
    FilterExpressionVisitor.prototype.e = function (a) {
    };
    FilterExpressionVisitor.$t = markType(FilterExpressionVisitor, 'FilterExpressionVisitor');
    return FilterExpressionVisitor;
}(Base));
export { FilterExpressionVisitor };
//# sourceMappingURL=FilterExpressionVisitor.js.map