"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ast_1 = require("../ast");
function* splitExpressions(e, operator = "&&") {
    if (ast_1.BinaryExpression.is(e) && e.operator === operator) {
        yield* splitExpressions(e.left, operator);
        yield* splitExpressions(e.right, operator);
    }
    else {
        yield e;
    }
}
exports.default = splitExpressions;
