$_invoke$vararg method

dynamic $_invoke$vararg(
  1. dynamic $AMPERSAND_form$1,
  2. dynamic $AMPERSAND_env$1,
  3. dynamic pred$1,
  4. dynamic expr$1,
  5. dynamic clauses$1,
)
override

Implementation

dc.dynamic $_invoke$vararg(dc.dynamic $AMPERSAND_form$1, dc.dynamic $AMPERSAND_env$1, dc.dynamic pred$1, dc.dynamic expr$1, dc.dynamic clauses$1, ){
late final dc.dynamic gpred$1;
if((lcoc_core.gensym is dc.Function)){
gpred$1=(lcoc_core.gensym as dc.Function)("pred__", );
}else if((lcoc_core.gensym is lcoc_core.IFn$iface)){
gpred$1=((lcoc_core.gensym as lcoc_core.IFn$iface).$_invoke$1("pred__", ));
}else{
gpred$1=(lcoc_core.IFn.extensions(lcoc_core.gensym, ).$_invoke$1(lcoc_core.gensym, "pred__", ));
}
late final dc.dynamic gexpr$1;
if((lcoc_core.gensym is dc.Function)){
gexpr$1=(lcoc_core.gensym as dc.Function)("expr__", );
}else if((lcoc_core.gensym is lcoc_core.IFn$iface)){
gexpr$1=((lcoc_core.gensym as lcoc_core.IFn$iface).$_invoke$1("expr__", ));
}else{
gexpr$1=(lcoc_core.IFn.extensions(lcoc_core.gensym, ).$_invoke$1(lcoc_core.gensym, "expr__", ));
}
dc.dynamic emit$1(dc.dynamic pred$2, dc.dynamic expr$2, dc.dynamic args$1, ){
late final dc.int $if_$16;
if((lcoc_core.$EQ_.$_invoke$2(lcoc_core.Keyword(null, ">>", 1535291001, ), lcoc_core.second(args$1, ), ))){
$if_$16=3;
}else{
$if_$16=2;
}
final dc.dynamic vec$8671_$1=lcoc_core.split_at($if_$16, args$1, );
final dc.dynamic vec$8674_$1=(lcoc_core.nth.$_invoke$3(vec$8671_$1, 0, null, ));
final dc.dynamic a$2=(lcoc_core.nth.$_invoke$3(vec$8674_$1, 0, null, ));
final dc.dynamic b$2=(lcoc_core.nth.$_invoke$3(vec$8674_$1, 1, null, ));
final dc.dynamic c$2=(lcoc_core.nth.$_invoke$3(vec$8674_$1, 2, null, ));
final dc.dynamic clause$2=vec$8674_$1;
final dc.dynamic more$2=(lcoc_core.nth.$_invoke$3(vec$8671_$1, 1, null, ));
final dc.dynamic coll7677$2=clause$2;
late final dc.int n$2;
if((coll7677$2 is lcoc_core.ICounted$iface)){
n$2=(((coll7677$2 as lcoc_core.ICounted$iface).$_count$0()) as dc.int);
}else{
n$2=(((lcoc_core.ICounted.extensions(coll7677$2, ) as lcoc_core.ICounted$ext).$_count$0(coll7677$2, )) as dc.int);
}
if((lcoc_core.$EQ_.$_invoke$2(0, n$2, ))){
final dc.dynamic arg$7=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "throw", )), ));
final dc.dynamic arg$6=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "ArgumentError.", )), ));
final dc.dynamic o7603$19=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "str", )), )), (lcoc_core.list.$_invoke$1("No matching clause: ", )), (lcoc_core.list.$_invoke$1(expr$2, )), ));
late final dc.dynamic $if_$17;
if((o7603$19 is lcoc_core.ISeqable$iface)){
$if_$17=((o7603$19 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$17=((lcoc_core.ISeqable.extensions(o7603$19, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$19, ));
}
final dc.dynamic $8=(lcoc_core.list.$_invoke$1($if_$17, ));
final dc.dynamic o7603$20=(lcoc_core.concat.$_invoke$2(arg$6, $8, ));
late final dc.dynamic $if_$18;
if((o7603$20 is lcoc_core.ISeqable$iface)){
$if_$18=((o7603$20 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$18=((lcoc_core.ISeqable.extensions(o7603$20, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$20, ));
}
final dc.dynamic $9=(lcoc_core.list.$_invoke$1($if_$18, ));
final dc.dynamic o7603$21=(lcoc_core.concat.$_invoke$2(arg$7, $9, ));
if((o7603$21 is lcoc_core.ISeqable$iface)){
return ((o7603$21 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$21, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$21, ));
}
if((lcoc_core.$EQ_.$_invoke$2(1, n$2, ))){
return a$2;
}
if((lcoc_core.$EQ_.$_invoke$2(2, n$2, ))){
final dc.dynamic arg$8=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "if", )), ));
final dc.dynamic o7603$22=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1(pred$2, )), (lcoc_core.list.$_invoke$1(a$2, )), (lcoc_core.list.$_invoke$1(expr$2, )), ));
late final dc.dynamic $if_$19;
if((o7603$22 is lcoc_core.ISeqable$iface)){
$if_$19=((o7603$22 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$19=((lcoc_core.ISeqable.extensions(o7603$22, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$22, ));
}
final dc.dynamic $10=(lcoc_core.list.$_invoke$1($if_$19, ));
final dc.dynamic o7603$23=(lcoc_core.concat.$_invoke$4(arg$8, $10, (lcoc_core.list.$_invoke$1(b$2, )), (lcoc_core.list.$_invoke$1(emit$1(pred$2, expr$2, more$2, ), )), ));
if((o7603$23 is lcoc_core.ISeqable$iface)){
return ((o7603$23 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$23, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$23, ));
}
final dc.dynamic arg$10=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "if-let", )), ));
final dc.dynamic arg$9=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "p__8662__auto__", )), ));
final dc.dynamic o7603$24=(lcoc_core.concat.$_invoke$3((lcoc_core.list.$_invoke$1(pred$2, )), (lcoc_core.list.$_invoke$1(a$2, )), (lcoc_core.list.$_invoke$1(expr$2, )), ));
late final dc.dynamic $if_$20;
if((o7603$24 is lcoc_core.ISeqable$iface)){
$if_$20=((o7603$24 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$20=((lcoc_core.ISeqable.extensions(o7603$24, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$24, ));
}
final dc.dynamic $11=(lcoc_core.list.$_invoke$1($if_$20, ));
final dc.dynamic o7603$25=(lcoc_core.concat.$_invoke$2(arg$9, $11, ));
late final dc.dynamic $if_$21;
if((o7603$25 is lcoc_core.ISeqable$iface)){
$if_$21=((o7603$25 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$21=((lcoc_core.ISeqable.extensions(o7603$25, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$25, ));
}
final dc.dynamic $12=(lcoc_core.apply.$_invoke$2(lcoc_core.vector, $if_$21, ));
final dc.dynamic $14=(lcoc_core.list.$_invoke$1($12, ));
final dc.dynamic o7603$26=(lcoc_core.concat.$_invoke$2((lcoc_core.list.$_invoke$1(c$2, )), (lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2(null, "p__8662__auto__", )), )), ));
late final dc.dynamic $if_$22;
if((o7603$26 is lcoc_core.ISeqable$iface)){
$if_$22=((o7603$26 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$22=((lcoc_core.ISeqable.extensions(o7603$26, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$26, ));
}
final dc.dynamic $13=(lcoc_core.list.$_invoke$1($if_$22, ));
final dc.dynamic o7603$27=(lcoc_core.concat.$_invoke$4(arg$10, $14, $13, (lcoc_core.list.$_invoke$1(emit$1(pred$2, expr$2, more$2, ), )), ));
if((o7603$27 is lcoc_core.ISeqable$iface)){
return ((o7603$27 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$27, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$27, ));
}
final dc.dynamic Function(dc.dynamic, dc.dynamic, dc.dynamic, ) emit$2=emit$1;
final dc.dynamic arg$11=(lcoc_core.list.$_invoke$1((lcoc_core.symbol.$_invoke$2("cljd.core", "let", )), ));
final dc.dynamic o7603$28=(lcoc_core.concat.$_invoke$4((lcoc_core.list.$_invoke$1(gpred$1, )), (lcoc_core.list.$_invoke$1(pred$1, )), (lcoc_core.list.$_invoke$1(gexpr$1, )), (lcoc_core.list.$_invoke$1(expr$1, )), ));
late final dc.dynamic $if_$23;
if((o7603$28 is lcoc_core.ISeqable$iface)){
$if_$23=((o7603$28 as lcoc_core.ISeqable$iface).$_seq$0());
}else{
$if_$23=((lcoc_core.ISeqable.extensions(o7603$28, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$28, ));
}
final dc.dynamic $15=(lcoc_core.apply.$_invoke$2(lcoc_core.vector, $if_$23, ));
final dc.dynamic $16=(lcoc_core.list.$_invoke$1($15, ));
final dc.dynamic o7603$29=(lcoc_core.concat.$_invoke$3(arg$11, $16, (lcoc_core.list.$_invoke$1(emit$2(gpred$1, gexpr$1, clauses$1, ), )), ));
if((o7603$29 is lcoc_core.ISeqable$iface)){
return ((o7603$29 as lcoc_core.ISeqable$iface).$_seq$0());
}
return ((lcoc_core.ISeqable.extensions(o7603$29, ) as lcoc_core.ISeqable$ext).$_seq$0(o7603$29, ));
}