// Compiled by ClojureScript 1.7.170 {}
goog.provide('cljs.repl');
goog.require('cljs.core');
cljs.repl.print_doc = (function cljs$repl$print_doc(m){
cljs.core.println.call(null,"-------------------------");

cljs.core.println.call(null,[cljs.core.str((function (){var temp__4425__auto__ = new cljs.core.Keyword(null,"ns","ns",441598760).cljs$core$IFn$_invoke$arity$1(m);
if(cljs.core.truth_(temp__4425__auto__)){
var ns = temp__4425__auto__;
return [cljs.core.str(ns),cljs.core.str("/")].join('');
} else {
return null;
}
})()),cljs.core.str(new cljs.core.Keyword(null,"name","name",1843675177).cljs$core$IFn$_invoke$arity$1(m))].join(''));

if(cljs.core.truth_(new cljs.core.Keyword(null,"protocol","protocol",652470118).cljs$core$IFn$_invoke$arity$1(m))){
cljs.core.println.call(null,"Protocol");
} else {
}

if(cljs.core.truth_(new cljs.core.Keyword(null,"forms","forms",2045992350).cljs$core$IFn$_invoke$arity$1(m))){
var seq__15103_15117 = cljs.core.seq.call(null,new cljs.core.Keyword(null,"forms","forms",2045992350).cljs$core$IFn$_invoke$arity$1(m));
var chunk__15104_15118 = null;
var count__15105_15119 = (0);
var i__15106_15120 = (0);
while(true){
if((i__15106_15120 < count__15105_15119)){
var f_15121 = cljs.core._nth.call(null,chunk__15104_15118,i__15106_15120);
cljs.core.println.call(null,"  ",f_15121);

var G__15122 = seq__15103_15117;
var G__15123 = chunk__15104_15118;
var G__15124 = count__15105_15119;
var G__15125 = (i__15106_15120 + (1));
seq__15103_15117 = G__15122;
chunk__15104_15118 = G__15123;
count__15105_15119 = G__15124;
i__15106_15120 = G__15125;
continue;
} else {
var temp__4425__auto___15126 = cljs.core.seq.call(null,seq__15103_15117);
if(temp__4425__auto___15126){
var seq__15103_15127__$1 = temp__4425__auto___15126;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__15103_15127__$1)){
var c__5471__auto___15128 = cljs.core.chunk_first.call(null,seq__15103_15127__$1);
var G__15129 = cljs.core.chunk_rest.call(null,seq__15103_15127__$1);
var G__15130 = c__5471__auto___15128;
var G__15131 = cljs.core.count.call(null,c__5471__auto___15128);
var G__15132 = (0);
seq__15103_15117 = G__15129;
chunk__15104_15118 = G__15130;
count__15105_15119 = G__15131;
i__15106_15120 = G__15132;
continue;
} else {
var f_15133 = cljs.core.first.call(null,seq__15103_15127__$1);
cljs.core.println.call(null,"  ",f_15133);

var G__15134 = cljs.core.next.call(null,seq__15103_15127__$1);
var G__15135 = null;
var G__15136 = (0);
var G__15137 = (0);
seq__15103_15117 = G__15134;
chunk__15104_15118 = G__15135;
count__15105_15119 = G__15136;
i__15106_15120 = G__15137;
continue;
}
} else {
}
}
break;
}
} else {
if(cljs.core.truth_(new cljs.core.Keyword(null,"arglists","arglists",1661989754).cljs$core$IFn$_invoke$arity$1(m))){
var arglists_15138 = new cljs.core.Keyword(null,"arglists","arglists",1661989754).cljs$core$IFn$_invoke$arity$1(m);
if(cljs.core.truth_((function (){var or__4668__auto__ = new cljs.core.Keyword(null,"macro","macro",-867863404).cljs$core$IFn$_invoke$arity$1(m);
if(cljs.core.truth_(or__4668__auto__)){
return or__4668__auto__;
} else {
return new cljs.core.Keyword(null,"repl-special-function","repl-special-function",1262603725).cljs$core$IFn$_invoke$arity$1(m);
}
})())){
cljs.core.prn.call(null,arglists_15138);
} else {
cljs.core.prn.call(null,((cljs.core._EQ_.call(null,new cljs.core.Symbol(null,"quote","quote",1377916282,null),cljs.core.first.call(null,arglists_15138)))?cljs.core.second.call(null,arglists_15138):arglists_15138));
}
} else {
}
}

if(cljs.core.truth_(new cljs.core.Keyword(null,"special-form","special-form",-1326536374).cljs$core$IFn$_invoke$arity$1(m))){
cljs.core.println.call(null,"Special Form");

cljs.core.println.call(null," ",new cljs.core.Keyword(null,"doc","doc",1913296891).cljs$core$IFn$_invoke$arity$1(m));

if(cljs.core.contains_QMARK_.call(null,m,new cljs.core.Keyword(null,"url","url",276297046))){
if(cljs.core.truth_(new cljs.core.Keyword(null,"url","url",276297046).cljs$core$IFn$_invoke$arity$1(m))){
return cljs.core.println.call(null,[cljs.core.str("\n  Please see http://clojure.org/"),cljs.core.str(new cljs.core.Keyword(null,"url","url",276297046).cljs$core$IFn$_invoke$arity$1(m))].join(''));
} else {
return null;
}
} else {
return cljs.core.println.call(null,[cljs.core.str("\n  Please see http://clojure.org/special_forms#"),cljs.core.str(new cljs.core.Keyword(null,"name","name",1843675177).cljs$core$IFn$_invoke$arity$1(m))].join(''));
}
} else {
if(cljs.core.truth_(new cljs.core.Keyword(null,"macro","macro",-867863404).cljs$core$IFn$_invoke$arity$1(m))){
cljs.core.println.call(null,"Macro");
} else {
}

if(cljs.core.truth_(new cljs.core.Keyword(null,"repl-special-function","repl-special-function",1262603725).cljs$core$IFn$_invoke$arity$1(m))){
cljs.core.println.call(null,"REPL Special Function");
} else {
}

cljs.core.println.call(null," ",new cljs.core.Keyword(null,"doc","doc",1913296891).cljs$core$IFn$_invoke$arity$1(m));

if(cljs.core.truth_(new cljs.core.Keyword(null,"protocol","protocol",652470118).cljs$core$IFn$_invoke$arity$1(m))){
var seq__15107 = cljs.core.seq.call(null,new cljs.core.Keyword(null,"methods","methods",453930866).cljs$core$IFn$_invoke$arity$1(m));
var chunk__15108 = null;
var count__15109 = (0);
var i__15110 = (0);
while(true){
if((i__15110 < count__15109)){
var vec__15111 = cljs.core._nth.call(null,chunk__15108,i__15110);
var name = cljs.core.nth.call(null,vec__15111,(0),null);
var map__15112 = cljs.core.nth.call(null,vec__15111,(1),null);
var map__15112__$1 = ((((!((map__15112 == null)))?((((map__15112.cljs$lang$protocol_mask$partition0$ & (64))) || (map__15112.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__15112):map__15112);
var doc = cljs.core.get.call(null,map__15112__$1,new cljs.core.Keyword(null,"doc","doc",1913296891));
var arglists = cljs.core.get.call(null,map__15112__$1,new cljs.core.Keyword(null,"arglists","arglists",1661989754));
cljs.core.println.call(null);

cljs.core.println.call(null," ",name);

cljs.core.println.call(null," ",arglists);

if(cljs.core.truth_(doc)){
cljs.core.println.call(null," ",doc);
} else {
}

var G__15139 = seq__15107;
var G__15140 = chunk__15108;
var G__15141 = count__15109;
var G__15142 = (i__15110 + (1));
seq__15107 = G__15139;
chunk__15108 = G__15140;
count__15109 = G__15141;
i__15110 = G__15142;
continue;
} else {
var temp__4425__auto__ = cljs.core.seq.call(null,seq__15107);
if(temp__4425__auto__){
var seq__15107__$1 = temp__4425__auto__;
if(cljs.core.chunked_seq_QMARK_.call(null,seq__15107__$1)){
var c__5471__auto__ = cljs.core.chunk_first.call(null,seq__15107__$1);
var G__15143 = cljs.core.chunk_rest.call(null,seq__15107__$1);
var G__15144 = c__5471__auto__;
var G__15145 = cljs.core.count.call(null,c__5471__auto__);
var G__15146 = (0);
seq__15107 = G__15143;
chunk__15108 = G__15144;
count__15109 = G__15145;
i__15110 = G__15146;
continue;
} else {
var vec__15114 = cljs.core.first.call(null,seq__15107__$1);
var name = cljs.core.nth.call(null,vec__15114,(0),null);
var map__15115 = cljs.core.nth.call(null,vec__15114,(1),null);
var map__15115__$1 = ((((!((map__15115 == null)))?((((map__15115.cljs$lang$protocol_mask$partition0$ & (64))) || (map__15115.cljs$core$ISeq$))?true:false):false))?cljs.core.apply.call(null,cljs.core.hash_map,map__15115):map__15115);
var doc = cljs.core.get.call(null,map__15115__$1,new cljs.core.Keyword(null,"doc","doc",1913296891));
var arglists = cljs.core.get.call(null,map__15115__$1,new cljs.core.Keyword(null,"arglists","arglists",1661989754));
cljs.core.println.call(null);

cljs.core.println.call(null," ",name);

cljs.core.println.call(null," ",arglists);

if(cljs.core.truth_(doc)){
cljs.core.println.call(null," ",doc);
} else {
}

var G__15147 = cljs.core.next.call(null,seq__15107__$1);
var G__15148 = null;
var G__15149 = (0);
var G__15150 = (0);
seq__15107 = G__15147;
chunk__15108 = G__15148;
count__15109 = G__15149;
i__15110 = G__15150;
continue;
}
} else {
return null;
}
}
break;
}
} else {
return null;
}
}
});
