import "./cljs_env.js";
goog.provide('clojure_eval.selections');
var module$node_modules$$codemirror$state$dist$index_cjs=shadow.js.require("module$node_modules$$codemirror$state$dist$index_cjs", {});
clojure_eval.selections.range = (function clojure_eval$selections$range(var_args){
var G__54496 = arguments.length;
switch (G__54496) {
case 2:
return clojure_eval.selections.range.cljs$core$IFn$_invoke$arity$2((arguments[(0)]),(arguments[(1)]));

break;
case 1:
return clojure_eval.selections.range.cljs$core$IFn$_invoke$arity$1((arguments[(0)]));

break;
default:
throw (new Error(["Invalid arity: ",cljs.core.str.cljs$core$IFn$_invoke$arity$1(arguments.length)].join('')));

}
});

(clojure_eval.selections.range.cljs$core$IFn$_invoke$arity$2 = (function (from,to){
return module$node_modules$$codemirror$state$dist$index_cjs.EditorSelection.range(from,to);
}));

(clojure_eval.selections.range.cljs$core$IFn$_invoke$arity$1 = (function (range){
return module$node_modules$$codemirror$state$dist$index_cjs.EditorSelection.range(range.from,range.to);
}));

(clojure_eval.selections.range.cljs$lang$maxFixedArity = 2);

clojure_eval.selections.cursor = (function clojure_eval$selections$cursor(from){
return module$node_modules$$codemirror$state$dist$index_cjs.EditorSelection.cursor(from);
});
clojure_eval.selections.create = (function clojure_eval$selections$create(ranges,index){
return module$node_modules$$codemirror$state$dist$index_cjs.EditorSelection.create(ranges,index);
});
clojure_eval.selections.constrain = (function clojure_eval$selections$constrain(state,from){
var x__4309__auto__ = (function (){var x__4306__auto__ = from;
var y__4307__auto__ = (0);
return ((x__4306__auto__ > y__4307__auto__) ? x__4306__auto__ : y__4307__auto__);
})();
var y__4310__auto__ = state.doc.length;
return ((x__4309__auto__ < y__4310__auto__) ? x__4309__auto__ : y__4310__auto__);
});
clojure_eval.selections.eq_QMARK_ = (function clojure_eval$selections$eq_QMARK_(sel1,sel2){
return sel1.eq(sel2);
});

//# sourceMappingURL=clojure_eval.selections.js.map
