kaitai-struct-compiler 0.11.0 → 0.12.0-SNAPSHOT20251110.202039.1a11e75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3038,8 +3038,8 @@ function $m_Lio_kaitai_struct_Utils$() {
3038
3038
  function $c_Lio_kaitai_struct_Version$() {
3039
3039
  this.Lio_kaitai_struct_Version$__f_version = null;
3040
3040
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
3041
- this.Lio_kaitai_struct_Version$__f_version = "0.11.0";
3042
- this.Lio_kaitai_struct_Version$__f_gitTime = "2025-09-07T18:59:46Z"
3041
+ this.Lio_kaitai_struct_Version$__f_version = "0.12-SNAPSHOT20251110.202039.1a11e75";
3042
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2025-11-10T20:20:39Z"
3043
3043
  }
3044
3044
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
3045
3045
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -18619,39 +18619,41 @@ function $asArrayOf_Lio_kaitai_struct_languages_components_LanguageCompilerStati
18619
18619
  function $c_Lio_kaitai_struct_languages_components_LanguageCompilerStatic$() {
18620
18620
  this.Lio_kaitai_struct_languages_components_LanguageCompilerStatic$__f_NAME_TO_CLASS = null;
18621
18621
  $n_Lio_kaitai_struct_languages_components_LanguageCompilerStatic$ = this;
18622
- var this$34 = $n($m_s_Predef$().s_Predef$__f_Map);
18622
+ var this$36 = $n($m_s_Predef$().s_Predef$__f_Map);
18623
18623
  var y = $m_Lio_kaitai_struct_ConstructClassCompiler$();
18624
- var $$x14 = $ct_T2__O__O__(new $c_T2(), "construct", y);
18624
+ var $$x15 = $ct_T2__O__O__(new $c_T2(), "construct", y);
18625
18625
  var y$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
18626
- var $$x13 = $ct_T2__O__O__(new $c_T2(), "cpp_stl", y$1);
18626
+ var $$x14 = $ct_T2__O__O__(new $c_T2(), "cpp_stl", y$1);
18627
18627
  var y$2 = $m_Lio_kaitai_struct_languages_CSharpCompiler$();
18628
- var $$x12 = $ct_T2__O__O__(new $c_T2(), "csharp", y$2);
18628
+ var $$x13 = $ct_T2__O__O__(new $c_T2(), "csharp", y$2);
18629
18629
  var y$3 = $m_Lio_kaitai_struct_GraphvizClassCompiler$();
18630
- var $$x11 = $ct_T2__O__O__(new $c_T2(), "graphviz", y$3);
18630
+ var $$x12 = $ct_T2__O__O__(new $c_T2(), "graphviz", y$3);
18631
18631
  var y$4 = $m_Lio_kaitai_struct_languages_GoCompiler$();
18632
- var $$x10 = $ct_T2__O__O__(new $c_T2(), "go", y$4);
18632
+ var $$x11 = $ct_T2__O__O__(new $c_T2(), "go", y$4);
18633
18633
  var y$5 = $m_Lio_kaitai_struct_HtmlClassCompiler$();
18634
- var $$x9 = $ct_T2__O__O__(new $c_T2(), "html", y$5);
18634
+ var $$x10 = $ct_T2__O__O__(new $c_T2(), "html", y$5);
18635
18635
  var y$6 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
18636
- var $$x8 = $ct_T2__O__O__(new $c_T2(), "java", y$6);
18636
+ var $$x9 = $ct_T2__O__O__(new $c_T2(), "java", y$6);
18637
18637
  var y$7 = $m_Lio_kaitai_struct_languages_JavaScriptCompiler$();
18638
- var $$x7 = $ct_T2__O__O__(new $c_T2(), "javascript", y$7);
18638
+ var $$x8 = $ct_T2__O__O__(new $c_T2(), "javascript", y$7);
18639
18639
  var y$8 = $m_Lio_kaitai_struct_languages_LuaCompiler$();
18640
- var $$x6 = $ct_T2__O__O__(new $c_T2(), "lua", y$8);
18640
+ var $$x7 = $ct_T2__O__O__(new $c_T2(), "lua", y$8);
18641
18641
  var y$9 = $m_Lio_kaitai_struct_languages_NimCompiler$();
18642
- var $$x5 = $ct_T2__O__O__(new $c_T2(), "nim", y$9);
18642
+ var $$x6 = $ct_T2__O__O__(new $c_T2(), "nim", y$9);
18643
18643
  var y$10 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
18644
- var $$x4 = $ct_T2__O__O__(new $c_T2(), "perl", y$10);
18644
+ var $$x5 = $ct_T2__O__O__(new $c_T2(), "perl", y$10);
18645
18645
  var y$11 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
18646
- var $$x3 = $ct_T2__O__O__(new $c_T2(), "php", y$11);
18646
+ var $$x4 = $ct_T2__O__O__(new $c_T2(), "php", y$11);
18647
18647
  var y$12 = $m_Lio_kaitai_struct_languages_PythonCompiler$();
18648
- var $$x2 = $ct_T2__O__O__(new $c_T2(), "python", y$12);
18648
+ var $$x3 = $ct_T2__O__O__(new $c_T2(), "python", y$12);
18649
18649
  var y$13 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
18650
- var $$x1 = $ct_T2__O__O__(new $c_T2(), "ruby", y$13);
18650
+ var $$x2 = $ct_T2__O__O__(new $c_T2(), "ruby", y$13);
18651
18651
  var y$14 = $m_Lio_kaitai_struct_languages_RustCompiler$();
18652
- var array = [$$x14, $$x13, $$x12, $$x11, $$x10, $$x9, $$x8, $$x7, $$x6, $$x5, $$x4, $$x3, $$x2, $$x1, $ct_T2__O__O__(new $c_T2(), "rust", y$14)];
18652
+ var $$x1 = $ct_T2__O__O__(new $c_T2(), "rust", y$14);
18653
+ var y$15 = $m_Lio_kaitai_struct_languages_ZigCompiler$();
18654
+ var array = [$$x15, $$x14, $$x13, $$x12, $$x11, $$x10, $$x9, $$x8, $$x7, $$x6, $$x5, $$x4, $$x3, $$x2, $$x1, $ct_T2__O__O__(new $c_T2(), "zig", y$15)];
18653
18655
  var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
18654
- this.Lio_kaitai_struct_languages_components_LanguageCompilerStatic$__f_NAME_TO_CLASS = this$34.from__sc_IterableOnce__sci_Map(elems);
18656
+ this.Lio_kaitai_struct_languages_components_LanguageCompilerStatic$__f_NAME_TO_CLASS = this$36.from__sc_IterableOnce__sci_Map(elems);
18655
18657
  $as_sci_Map($n(this.Lio_kaitai_struct_languages_components_LanguageCompilerStatic$__f_NAME_TO_CLASS).map__F1__sc_IterableOps(new $c_sjsr_AnonFunction1(((x$1$2) => {
18656
18658
  var x$1 = $as_T2(x$1$2);
18657
18659
  return $n(x$1).swap__T2()
@@ -18710,7 +18712,7 @@ function $f_Lio_kaitai_struct_languages_components_SingleOutputFile__$init$__V($
18710
18712
  $thiz.io$kaitai$struct$languages$components$SingleOutputFile$_setter_$importList_$eq__Lio_kaitai_struct_ImportList__V(new $c_Lio_kaitai_struct_ImportList())
18711
18713
  }
18712
18714
  function $f_Lio_kaitai_struct_languages_components_SwitchOps__switchCasesRender__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__sci_Map__F1__F1__V($thiz, id, on, cases, normalCaseProc, elseCaseProc) {
18713
- var someNormalCases = ($n($as_sc_IterableOnceOps($n(cases).filter__F1__O(new $c_sjsr_AnonFunction1(((x0$1$2) => {
18715
+ var someNormalCases = $n(cases).exists__F1__Z(new $c_sjsr_AnonFunction1(((x0$1$2) => {
18714
18716
  var x0$1 = $as_T2(x0$1$2);
18715
18717
  if ((x0$1 !== null)) {
18716
18718
  var caseExpr = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x0$1)._1__O());
@@ -18719,7 +18721,7 @@ function $f_Lio_kaitai_struct_languages_components_SwitchOps__switchCasesRender_
18719
18721
  } else {
18720
18722
  throw new $c_s_MatchError(x0$1)
18721
18723
  }
18722
- }))))).size__I() > 0);
18724
+ })));
18723
18725
  if (someNormalCases) {
18724
18726
  $thiz.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V(id, on);
18725
18727
  var first = new $c_sr_BooleanRef(true);
@@ -20020,7 +20022,7 @@ function $p_Lio_kaitai_struct_translators_CommonArraysAndCast__valuesAsByteArray
20020
20022
  }
20021
20023
  }
20022
20024
  function $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T($thiz, s) {
20023
- return (("\"" + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteralBody__T__T($thiz, s)) + "\"")
20025
+ return (("\"" + $thiz.doStringLiteralBody__T__T(s)) + "\"")
20024
20026
  }
20025
20027
  function $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteralBody__T__T($thiz, s) {
20026
20028
  var $$x10 = $m_s_Predef$();
@@ -28875,6 +28877,34 @@ function $m_sc_SeqFactory$UnapplySeqWrapper$() {
28875
28877
  return $n_sc_SeqFactory$UnapplySeqWrapper$
28876
28878
  }
28877
28879
  /** @constructor */
28880
+ function $c_sc_Stepper$() {
28881
+ /*<skip>*/
28882
+ }
28883
+ $c_sc_Stepper$.prototype = new $h_O();
28884
+ $c_sc_Stepper$.prototype.constructor = $c_sc_Stepper$;
28885
+ /** @constructor */
28886
+ function $h_sc_Stepper$() {
28887
+ /*<skip>*/
28888
+ }
28889
+ $h_sc_Stepper$.prototype = $c_sc_Stepper$.prototype;
28890
+ $c_sc_Stepper$.prototype.throwNSEE__E = (function() {
28891
+ throw $ct_ju_NoSuchElementException__T__(new $c_ju_NoSuchElementException(), "Empty Stepper")
28892
+ });
28893
+ var $d_sc_Stepper$ = new $TypeData().initClass({
28894
+ sc_Stepper$: 0
28895
+ }, false, "scala.collection.Stepper$", {
28896
+ sc_Stepper$: 1,
28897
+ O: 1
28898
+ });
28899
+ $c_sc_Stepper$.prototype.$classData = $d_sc_Stepper$;
28900
+ var $n_sc_Stepper$;
28901
+ function $m_sc_Stepper$() {
28902
+ if ((!$n_sc_Stepper$)) {
28903
+ $n_sc_Stepper$ = new $c_sc_Stepper$()
28904
+ };
28905
+ return $n_sc_Stepper$
28906
+ }
28907
+ /** @constructor */
28878
28908
  function $c_sc_StringOps$() {
28879
28909
  this.sc_StringOps$__f_fallback = null;
28880
28910
  $n_sc_StringOps$ = this;
@@ -34264,23 +34294,24 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileClass__Lio_kaitai_struct_for
34264
34294
  this.compileInstances__Lio_kaitai_struct_format_ClassSpec__V(curClass);
34265
34295
  var this$10 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_seq);
34266
34296
  var suffix$1 = $n(curClass).Lio_kaitai_struct_format_ClassSpec__f_params;
34267
- var this$23 = $n(this$10.appendedAll__sc_IterableOnce__sci_List(suffix$1));
34297
+ var this$22 = $n(this$10.appendedAll__sc_IterableOnce__sci_List(suffix$1));
34268
34298
  $n($m_s_package$().s_package$__f_List);
34269
- var $$x4 = new $c_Lio_kaitai_struct_format_AttrSpec($m_sci_Nil$(), $m_Lio_kaitai_struct_format_RootIdentifier$(), new $c_Lio_kaitai_struct_datatype_DataType$CalcUserType(this.Lio_kaitai_struct_ClassCompiler__f_topClassName, $m_s_None$(), $as_sci_Seq($n($m_s_package$().s_package$__f_Seq).apply__sci_Seq__sc_SeqOps($m_sci_Nil$())), false), ($m_Lio_kaitai_struct_format_AttrSpec$(), new $c_Lio_kaitai_struct_format_ConditionalSpec($m_s_None$(), $m_Lio_kaitai_struct_format_NoRepeat$())), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().Lio_kaitai_struct_format_DocSpec$__f_EMPTY));
34299
+ var $$x4 = new $c_Lio_kaitai_struct_format_AttrSpec($m_sci_Nil$(), $m_Lio_kaitai_struct_format_RootIdentifier$(), $n(this.topClass__Lio_kaitai_struct_format_ClassSpec()).toDataType__Lio_kaitai_struct_datatype_DataType(), ($m_Lio_kaitai_struct_format_AttrSpec$(), new $c_Lio_kaitai_struct_format_ConditionalSpec($m_s_None$(), $m_Lio_kaitai_struct_format_NoRepeat$())), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().Lio_kaitai_struct_format_DocSpec$__f_EMPTY));
34270
34300
  var $$x3 = $m_sci_Nil$();
34271
34301
  var $$x2 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
34272
- var this$15 = $n(curClass);
34273
- var array$1 = [$$x4, new $c_Lio_kaitai_struct_format_AttrSpec($$x3, $$x2, $n(this$15.Lio_kaitai_struct_format_ClassSpec__f_parentClass).toDataType__Lio_kaitai_struct_datatype_DataType(), ($m_Lio_kaitai_struct_format_AttrSpec$(), new $c_Lio_kaitai_struct_format_ConditionalSpec($m_s_None$(), $m_Lio_kaitai_struct_format_NoRepeat$())), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().Lio_kaitai_struct_format_DocSpec$__f_EMPTY))];
34302
+ var this$14 = $n(curClass);
34303
+ var array$1 = [$$x4, new $c_Lio_kaitai_struct_format_AttrSpec($$x3, $$x2, $n(this$14.Lio_kaitai_struct_format_ClassSpec__f_parentClass).toDataType__Lio_kaitai_struct_datatype_DataType(), ($m_Lio_kaitai_struct_format_AttrSpec$(), new $c_Lio_kaitai_struct_format_ConditionalSpec($m_s_None$(), $m_Lio_kaitai_struct_format_NoRepeat$())), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_s_None$()), ($m_Lio_kaitai_struct_format_AttrSpec$(), $m_Lio_kaitai_struct_format_DocSpec$().Lio_kaitai_struct_format_DocSpec$__f_EMPTY))];
34274
34304
  var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
34275
34305
  var suffix$2 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
34276
- var this$24 = $n(this$23.appendedAll__sc_IterableOnce__sci_List(suffix$2));
34306
+ var this$23 = $n(this$22.appendedAll__sc_IterableOnce__sci_List(suffix$2));
34277
34307
  var suffix$3 = $m_Lio_kaitai_struct_languages_components_ExtraAttrs$().forClassSpec__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_languages_components_ExtraAttrs__sci_List(curClass, this.Lio_kaitai_struct_ClassCompiler__f_lang);
34278
- var allAttrs = this$24.appendedAll__sc_IterableOnce__sci_List(suffix$3);
34279
- this.compileAttrDeclarations__sci_List__V(allAttrs);
34308
+ var allAttrs = this$23.appendedAll__sc_IterableOnce__sci_List(suffix$3);
34280
34309
  this.compileAttrReaders__sci_List__V(allAttrs);
34281
- var this$25 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_toStringExpr);
34282
- if ((!this$25.isEmpty__Z())) {
34283
- var arg1 = this$25.get__O();
34310
+ this.compileInstanceDeclarations__Lio_kaitai_struct_format_ClassSpec__V(curClass);
34311
+ this.compileAttrDeclarations__sci_List__V(allAttrs);
34312
+ var this$24 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_toStringExpr);
34313
+ if ((!this$24.isEmpty__Z())) {
34314
+ var arg1 = this$24.get__O();
34284
34315
  var expr = $as_Lio_kaitai_struct_exprlang_Ast$expr(arg1);
34285
34316
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).classToString__Lio_kaitai_struct_exprlang_Ast$expr__V(expr)
34286
34317
  };
@@ -34694,6 +34725,20 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileSubclasses__Lio_kaitai_struc
34694
34725
  }));
34695
34726
  $m_sci_RedBlackTree$().foreach__sci_RedBlackTree$Tree__F1__V(this$2.sci_TreeMap__f_tree, f)
34696
34727
  });
34728
+ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstanceDeclarations__Lio_kaitai_struct_format_ClassSpec__V = (function(curClass) {
34729
+ var this$2 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_instances);
34730
+ var f = new $c_sjsr_AnonFunction1(((x0$1$2) => {
34731
+ var x0$1 = $as_T2(x0$1$2);
34732
+ if ((x0$1 !== null)) {
34733
+ var instName = $as_Lio_kaitai_struct_format_InstanceIdentifier($n(x0$1)._1__O());
34734
+ var instSpec = $as_Lio_kaitai_struct_format_InstanceSpec($n(x0$1)._2__O());
34735
+ this.compileInstanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_format_InstanceSpec__V(instName, instSpec)
34736
+ } else {
34737
+ throw new $c_s_MatchError(x0$1)
34738
+ }
34739
+ }));
34740
+ $m_sci_RedBlackTree$().foreach__sci_RedBlackTree$Tree__F1__V(this$2.sci_TreeMap__f_tree, f)
34741
+ });
34697
34742
  $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstances__Lio_kaitai_struct_format_ClassSpec__V = (function(curClass) {
34698
34743
  var this$2 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_instances);
34699
34744
  var f = new $c_sjsr_AnonFunction1(((x0$1$2) => {
@@ -34710,7 +34755,6 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstances__Lio_kaitai_struct
34710
34755
  });
34711
34756
  $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstance__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_format_InstanceSpec__s_Option__V = (function(className, instName, instSpec, endian) {
34712
34757
  var dataType = $n(instSpec).dataTypeComposite__Lio_kaitai_struct_datatype_DataType();
34713
- this.compileInstanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_format_InstanceSpec__V(instName, instSpec);
34714
34758
  if ((!$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).innerDocstrings__Z())) {
34715
34759
  this.compileInstanceDoc__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_InstanceSpec__V(instName, instSpec)
34716
34760
  };
@@ -34738,6 +34782,7 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstance__sci_List__Lio_kait
34738
34782
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturnNullIfDisabled__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
34739
34783
  };
34740
34784
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
34785
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceTempVarDeclaration__Lio_kaitai_struct_datatype_DataType__Z__V(dataType, $n(instSpec).isNullable__Z());
34741
34786
  if ((instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec)) {
34742
34787
  var x2 = $as_Lio_kaitai_struct_format_ValueInstanceSpec(instSpec);
34743
34788
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfHeader__Lio_kaitai_struct_format_Identifier__s_Option__V(instName, $n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr);
@@ -34749,7 +34794,7 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstance__sci_List__Lio_kait
34749
34794
  } else {
34750
34795
  throw new $c_s_MatchError(instSpec)
34751
34796
  };
34752
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
34797
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, $n(instSpec).isNullable__Z());
34753
34798
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceFooter__V();
34754
34799
  if ($n(this.Lio_kaitai_struct_ClassCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readWrite) {
34755
34800
  if ((instSpec instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
@@ -44486,7 +44531,7 @@ $c_Lio_kaitai_struct_GoClassCompiler.prototype.compileInstance__sci_List__Lio_ka
44486
44531
  } else {
44487
44532
  throw new $c_s_MatchError(instSpec)
44488
44533
  };
44489
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
44534
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, $n(instSpec).isNullable__Z());
44490
44535
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceFooter__V()
44491
44536
  });
44492
44537
  $c_Lio_kaitai_struct_GoClassCompiler.prototype.compileCalcEndian__Lio_kaitai_struct_datatype_CalcEndian__V = (function(ce) {
@@ -44808,7 +44853,7 @@ $c_Lio_kaitai_struct_NimClassCompiler.prototype.compileInstance__sci_List__Lio_k
44808
44853
  } else {
44809
44854
  throw new $c_s_MatchError(instSpec)
44810
44855
  };
44811
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
44856
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, $n(instSpec).isNullable__Z());
44812
44857
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceFooter__V()
44813
44858
  });
44814
44859
  $c_Lio_kaitai_struct_NimClassCompiler.prototype.compileTypes__Lio_kaitai_struct_format_ClassSpec__V = (function(curClass) {
@@ -45111,7 +45156,7 @@ $c_Lio_kaitai_struct_RustClassCompiler.prototype.compileInstance__sci_List__Lio_
45111
45156
  } else {
45112
45157
  throw new $c_s_MatchError(instSpec)
45113
45158
  };
45114
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
45159
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, $n(instSpec).isNullable__Z());
45115
45160
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceFooter__V()
45116
45161
  });
45117
45162
  var $d_Lio_kaitai_struct_RustClassCompiler = new $TypeData().initClass({
@@ -52694,6 +52739,296 @@ function $m_Lio_kaitai_struct_languages_RubyCompiler$() {
52694
52739
  };
52695
52740
  return $n_Lio_kaitai_struct_languages_RubyCompiler$
52696
52741
  }
52742
+ /** @constructor */
52743
+ function $c_Lio_kaitai_struct_languages_ZigCompiler$() {
52744
+ /*<skip>*/
52745
+ }
52746
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype = new $h_O();
52747
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.constructor = $c_Lio_kaitai_struct_languages_ZigCompiler$;
52748
+ /** @constructor */
52749
+ function $h_Lio_kaitai_struct_languages_ZigCompiler$() {
52750
+ /*<skip>*/
52751
+ }
52752
+ $h_Lio_kaitai_struct_languages_ZigCompiler$.prototype = $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype;
52753
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
52754
+ return new $c_Lio_kaitai_struct_languages_ZigCompiler(tp, config)
52755
+ });
52756
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
52757
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
52758
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
52759
+ var name = $n(x2).Lio_kaitai_struct_format_SpecialIdentifier__f_name;
52760
+ return name
52761
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
52762
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
52763
+ var name$2 = $n(x3).Lio_kaitai_struct_format_NamedIdentifier__f_name;
52764
+ return name$2
52765
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
52766
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
52767
+ var idx = $n(x4).Lio_kaitai_struct_format_NumberedIdentifier__f_idx;
52768
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().Lio_kaitai_struct_format_NumberedIdentifier$__f_TEMPLATE) + idx)
52769
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
52770
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
52771
+ var name$3 = $n(x5).Lio_kaitai_struct_format_InstanceIdentifier__f_name;
52772
+ return ("_m_" + name$3)
52773
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
52774
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
52775
+ var innerId = $n(x6).Lio_kaitai_struct_format_RawIdentifier__f_innerId;
52776
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
52777
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
52778
+ var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
52779
+ var innerId$2 = $n(x7).Lio_kaitai_struct_format_IoStorageIdentifier__f_innerId;
52780
+ return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
52781
+ } else {
52782
+ throw new $c_s_MatchError(id)
52783
+ }
52784
+ });
52785
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
52786
+ return ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier) ? "_v" : ("self." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)))
52787
+ });
52788
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T = (function(attrType, importList, curClass) {
52789
+ while (true) {
52790
+ var rc71 = false;
52791
+ var x2 = null;
52792
+ var rc72 = false;
52793
+ var x5 = null;
52794
+ var rc73 = false;
52795
+ var x44 = null;
52796
+ var x1 = attrType;
52797
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$Int1Type)) {
52798
+ rc71 = true;
52799
+ x2 = $as_Lio_kaitai_struct_datatype_DataType$Int1Type(x1);
52800
+ var p3 = $n(x2).Lio_kaitai_struct_datatype_DataType$Int1Type__f_signed;
52801
+ if ((p3 === false)) {
52802
+ return "u8"
52803
+ }
52804
+ };
52805
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntMultiType)) {
52806
+ rc72 = true;
52807
+ x5 = $as_Lio_kaitai_struct_datatype_DataType$IntMultiType(x1);
52808
+ var p6 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_signed;
52809
+ var p7 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_width;
52810
+ if ((p6 === false)) {
52811
+ var x = $m_Lio_kaitai_struct_datatype_DataType$Width2$();
52812
+ var $$x1 = (x === p7)
52813
+ } else {
52814
+ var $$x1 = false
52815
+ };
52816
+ if ($$x1) {
52817
+ return "u16"
52818
+ }
52819
+ };
52820
+ if (rc72) {
52821
+ var p12 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_signed;
52822
+ var p13 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_width;
52823
+ if ((p12 === false)) {
52824
+ var x$3 = $m_Lio_kaitai_struct_datatype_DataType$Width4$();
52825
+ var $$x2 = (x$3 === p13)
52826
+ } else {
52827
+ var $$x2 = false
52828
+ };
52829
+ if ($$x2) {
52830
+ return "u32"
52831
+ }
52832
+ };
52833
+ if (rc72) {
52834
+ var p18 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_signed;
52835
+ var p19 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_width;
52836
+ if ((p18 === false)) {
52837
+ var x$5 = $m_Lio_kaitai_struct_datatype_DataType$Width8$();
52838
+ var $$x3 = (x$5 === p19)
52839
+ } else {
52840
+ var $$x3 = false
52841
+ };
52842
+ if ($$x3) {
52843
+ return "u64"
52844
+ }
52845
+ };
52846
+ if (rc71) {
52847
+ var p24 = $n(x2).Lio_kaitai_struct_datatype_DataType$Int1Type__f_signed;
52848
+ if ((p24 === true)) {
52849
+ return "i8"
52850
+ }
52851
+ };
52852
+ if (rc72) {
52853
+ var p27 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_signed;
52854
+ var p28 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_width;
52855
+ if ((p27 === true)) {
52856
+ var x$7 = $m_Lio_kaitai_struct_datatype_DataType$Width2$();
52857
+ var $$x4 = (x$7 === p28)
52858
+ } else {
52859
+ var $$x4 = false
52860
+ };
52861
+ if ($$x4) {
52862
+ return "i16"
52863
+ }
52864
+ };
52865
+ if (rc72) {
52866
+ var p33 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_signed;
52867
+ var p34 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_width;
52868
+ if ((p33 === true)) {
52869
+ var x$9 = $m_Lio_kaitai_struct_datatype_DataType$Width4$();
52870
+ var $$x5 = (x$9 === p34)
52871
+ } else {
52872
+ var $$x5 = false
52873
+ };
52874
+ if ($$x5) {
52875
+ return "i32"
52876
+ }
52877
+ };
52878
+ if (rc72) {
52879
+ var p39 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_signed;
52880
+ var p40 = $n(x5).Lio_kaitai_struct_datatype_DataType$IntMultiType__f_width;
52881
+ if ((p39 === true)) {
52882
+ var x$11 = $m_Lio_kaitai_struct_datatype_DataType$Width8$();
52883
+ var $$x6 = (x$11 === p40)
52884
+ } else {
52885
+ var $$x6 = false
52886
+ };
52887
+ if ($$x6) {
52888
+ return "i64"
52889
+ }
52890
+ };
52891
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatMultiType)) {
52892
+ rc73 = true;
52893
+ x44 = $as_Lio_kaitai_struct_datatype_DataType$FloatMultiType(x1);
52894
+ var p45 = $n(x44).Lio_kaitai_struct_datatype_DataType$FloatMultiType__f_width;
52895
+ var x$13 = $m_Lio_kaitai_struct_datatype_DataType$Width4$();
52896
+ if ((x$13 === p45)) {
52897
+ return "f32"
52898
+ }
52899
+ };
52900
+ if (rc73) {
52901
+ var p49 = $n(x44).Lio_kaitai_struct_datatype_DataType$FloatMultiType__f_width;
52902
+ var x$15 = $m_Lio_kaitai_struct_datatype_DataType$Width8$();
52903
+ if ((x$15 === p49)) {
52904
+ return "f64"
52905
+ }
52906
+ };
52907
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType)) {
52908
+ return "u64"
52909
+ };
52910
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType)) {
52911
+ return "bool"
52912
+ };
52913
+ var x$17 = $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$();
52914
+ if ((x$17 === x1)) {
52915
+ return "i32"
52916
+ };
52917
+ var x$19 = $m_Lio_kaitai_struct_datatype_DataType$CalcFloatType$();
52918
+ if ((x$19 === x1)) {
52919
+ return "f64"
52920
+ };
52921
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)) {
52922
+ return "[]const u8"
52923
+ };
52924
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType)) {
52925
+ return "[]const u8"
52926
+ };
52927
+ var x$21 = $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$();
52928
+ if ((x$21 === x1)) {
52929
+ var $$x7 = true
52930
+ } else {
52931
+ var x$23 = $m_Lio_kaitai_struct_datatype_DataType$OwnedKaitaiStreamType$();
52932
+ var $$x7 = (x$23 === x1)
52933
+ };
52934
+ if ($$x7) {
52935
+ return "*_imp_kaitai_struct.KaitaiStream"
52936
+ };
52937
+ var x$25 = $m_Lio_kaitai_struct_datatype_DataType$AnyType$();
52938
+ if ((x$25 === x1)) {
52939
+ var $$x8 = true
52940
+ } else {
52941
+ var x$27 = $m_Lio_kaitai_struct_datatype_DataType$KaitaiStructType$();
52942
+ if ((x$27 === x1)) {
52943
+ var $$x8 = true
52944
+ } else {
52945
+ var $$x8 = (x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$CalcKaitaiStructType)
52946
+ }
52947
+ };
52948
+ if ($$x8) {
52949
+ return "*anyopaque"
52950
+ };
52951
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
52952
+ var x66 = $as_Lio_kaitai_struct_datatype_DataType$UserType(x1);
52953
+ var isExternal = $n(x66).isExternal__Lio_kaitai_struct_format_ClassSpec__Z(curClass);
52954
+ if (isExternal) {
52955
+ this.externalTypeDeclaration__Lio_kaitai_struct_ExternalType__Lio_kaitai_struct_ImportList__V(new $c_Lio_kaitai_struct_ExternalUserType($as_Lio_kaitai_struct_format_ClassSpec($n($n(x66).Lio_kaitai_struct_datatype_DataType$UserType__f_classSpec).get__O())), importList)
52956
+ };
52957
+ return ("*" + this.types2class__sci_List__Z__T($n(x66).Lio_kaitai_struct_datatype_DataType$UserType__f_name, isExternal))
52958
+ };
52959
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
52960
+ var x67 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(x1);
52961
+ var isExternal$2 = $n(x67).isExternal__Lio_kaitai_struct_format_ClassSpec__Z(curClass);
52962
+ if (isExternal$2) {
52963
+ this.externalTypeDeclaration__Lio_kaitai_struct_ExternalType__Lio_kaitai_struct_ImportList__V(new $c_Lio_kaitai_struct_ExternalEnum($as_Lio_kaitai_struct_format_EnumSpec($n($n(x67).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O())), importList)
52964
+ };
52965
+ return this.types2class__sci_List__Z__T($n(x67).Lio_kaitai_struct_datatype_DataType$EnumType__f_name, isExternal$2)
52966
+ };
52967
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType)) {
52968
+ var x68 = $as_Lio_kaitai_struct_datatype_DataType$ArrayType(x1);
52969
+ return (("*_imp_std.ArrayList(" + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T($n(x68).Lio_kaitai_struct_datatype_DataType$ArrayType__f_elType, importList, curClass)) + ")")
52970
+ };
52971
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$SwitchType)) {
52972
+ var x69 = $as_Lio_kaitai_struct_datatype_DataType$SwitchType(x1);
52973
+ attrType = $n(x69).combinedType__Lio_kaitai_struct_datatype_DataType();
52974
+ continue
52975
+ };
52976
+ throw new $c_s_MatchError(x1)
52977
+ }
52978
+ });
52979
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__Z__T = (function(attrType, importList, curClass, isNullable) {
52980
+ var nonNullable = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(attrType, importList, curClass);
52981
+ return (isNullable ? ("?" + nonNullable) : nonNullable)
52982
+ });
52983
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.types2class__sci_List__Z__T = (function(name, isExternal) {
52984
+ var prefix = (isExternal ? (("_imp_" + $n(name).head__O()) + ".") : "");
52985
+ var this$3 = $n(name);
52986
+ var f = ((x$2) => {
52987
+ var x = $as_T(x$2);
52988
+ return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(x)
52989
+ });
52990
+ if ((this$3 === $m_sci_Nil$())) {
52991
+ var $$x1 = $m_sci_Nil$()
52992
+ } else {
52993
+ var arg1 = this$3.head__O();
52994
+ var h = new $c_sci_$colon$colon(f(arg1), $m_sci_Nil$());
52995
+ var t = h;
52996
+ var rest = $as_sci_List(this$3.tail__O());
52997
+ while ((rest !== $m_sci_Nil$())) {
52998
+ var arg1$1 = $n(rest).head__O();
52999
+ var nx = new $c_sci_$colon$colon(f(arg1$1), $m_sci_Nil$());
53000
+ $n(t).sci_$colon$colon__f_next = nx;
53001
+ t = nx;
53002
+ rest = $as_sci_List($n(rest).tail__O())
53003
+ };
53004
+ var $$x1 = h
53005
+ };
53006
+ var this$4 = $n($$x1);
53007
+ return (prefix + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$4, "", ".", ""))
53008
+ });
53009
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.externalTypeDeclaration__Lio_kaitai_struct_ExternalType__Lio_kaitai_struct_ImportList__V = (function(extType, importList) {
53010
+ var moduleName = $as_T($n($n(extType).name__sci_List()).head__O());
53011
+ var this$1 = $n(importList);
53012
+ var s = (((("const _imp_" + moduleName) + " = @import(\"") + moduleName) + ".zig\");");
53013
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, s)
53014
+ });
53015
+ var $d_Lio_kaitai_struct_languages_ZigCompiler$ = new $TypeData().initClass({
53016
+ Lio_kaitai_struct_languages_ZigCompiler$: 0
53017
+ }, false, "io.kaitai.struct.languages.ZigCompiler$", {
53018
+ Lio_kaitai_struct_languages_ZigCompiler$: 1,
53019
+ O: 1,
53020
+ Lio_kaitai_struct_languages_components_LanguageCompilerStatic: 1,
53021
+ Lio_kaitai_struct_languages_components_UpperCamelCaseClasses: 1,
53022
+ Lio_kaitai_struct_languages_components_StreamStructNames: 1
53023
+ });
53024
+ $c_Lio_kaitai_struct_languages_ZigCompiler$.prototype.$classData = $d_Lio_kaitai_struct_languages_ZigCompiler$;
53025
+ var $n_Lio_kaitai_struct_languages_ZigCompiler$;
53026
+ function $m_Lio_kaitai_struct_languages_ZigCompiler$() {
53027
+ if ((!$n_Lio_kaitai_struct_languages_ZigCompiler$)) {
53028
+ $n_Lio_kaitai_struct_languages_ZigCompiler$ = new $c_Lio_kaitai_struct_languages_ZigCompiler$()
53029
+ };
53030
+ return $n_Lio_kaitai_struct_languages_ZigCompiler$
53031
+ }
52697
53032
  function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V($thiz, id, dataType, io, rep, isRaw, defEndian, assignTypeOpt) {
52698
53033
  var this$1 = $n(assignTypeOpt);
52699
53034
  var assignType = $as_Lio_kaitai_struct_datatype_DataType((this$1.isEmpty__Z() ? dataType : this$1.get__O()));
@@ -52727,14 +53062,14 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrPa
52727
53062
  var $$x1 = $n($thiz.translator__Lio_kaitai_struct_translators_BaseTranslator());
52728
53063
  var dataType$1 = $n(x5).Lio_kaitai_struct_datatype_DataType$StrFromBytesType__f_bytes;
52729
53064
  var expr = $n($$x1).bytesToStr__T__T__T($f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__parseExprBytes__Lio_kaitai_struct_datatype_DataType$BytesType__T__T($thiz, dataType$1, io), $n(x5).Lio_kaitai_struct_datatype_DataType$StrFromBytesType__f_encoding);
52730
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr, rep, isRaw)
53065
+ $thiz.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(id, expr, rep, isRaw)
52731
53066
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
52732
53067
  var x6 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(dataType);
52733
53068
  var expr$2 = $n($thiz.translator__Lio_kaitai_struct_translators_BaseTranslator()).doEnumById__Lio_kaitai_struct_format_EnumSpec__T__T($as_Lio_kaitai_struct_format_EnumSpec($n($n(x6).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O()), $thiz.parseExpr__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__T__s_Option__T($n(x6).Lio_kaitai_struct_datatype_DataType$EnumType__f_basedOn, $n(x6).Lio_kaitai_struct_datatype_DataType$EnumType__f_basedOn, io, defEndian));
52734
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr$2, rep, isRaw)
53069
+ $thiz.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(id, expr$2, rep, isRaw)
52735
53070
  } else {
52736
53071
  var expr$3 = $thiz.parseExpr__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__T__s_Option__T(dataType, assignType, io, defEndian);
52737
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr$3, rep, isRaw)
53072
+ $thiz.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(id, expr$3, rep, isRaw)
52738
53073
  }
52739
53074
  }
52740
53075
  function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrBytesTypeParse__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, dataType, io, rep, isRaw) {
@@ -52749,7 +53084,7 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrBy
52749
53084
  var rawId = new $c_Lio_kaitai_struct_format_RawIdentifier(id)
52750
53085
  };
52751
53086
  var expr = $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__parseExprBytes__Lio_kaitai_struct_datatype_DataType$BytesType__T__T($thiz, dataType, io);
52752
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, rawId, expr, rep, isRaw);
53087
+ $thiz.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(rawId, expr, rep, isRaw);
52753
53088
  var this$1 = $n($n(dataType).process__s_Option());
52754
53089
  if ((!this$1.isEmpty__Z())) {
52755
53090
  var arg1 = this$1.get__O();
@@ -52787,7 +53122,7 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrUs
52787
53122
  };
52788
53123
  var expr = $thiz.parseExpr__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__T__s_Option__T(dataType, dataType, newIO, defEndian);
52789
53124
  if ($n($n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_autoRead) {
52790
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr, rep, false)
53125
+ $thiz.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(id, expr, rep, false)
52791
53126
  } else {
52792
53127
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
52793
53128
  if ((x === rep)) {
@@ -52799,7 +53134,7 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrUs
52799
53134
  $thiz.tryFinally__F0__F0__V(new $c_sjsr_AnonFunction0((() => {
52800
53135
  $thiz.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V(tempVarName, dataType, assignType)
52801
53136
  })), new $c_sjsr_AnonFunction0((() => {
52802
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, tempVarName, rep, false)
53137
+ $thiz.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(id, tempVarName, rep, false)
52803
53138
  })))
52804
53139
  }
52805
53140
  }
@@ -66630,7 +66965,7 @@ function $f_Lio_kaitai_struct_languages_components_GoReads__attrSwitchTypeParse_
66630
66965
  var p5 = $as_s_Option($n(x1)._1__O());
66631
66966
  var x$1 = $m_s_None$();
66632
66967
  if ((x$1 === p5)) {
66633
- var someNormalCases = ($n($as_sc_IterableOnceOps($n(cases).filter__F1__O(new $c_sjsr_AnonFunction1(((x0$1$2$2) => {
66968
+ var someNormalCases = $n(cases).exists__F1__Z(new $c_sjsr_AnonFunction1(((x0$1$2$2) => {
66634
66969
  var x0$1$3 = $as_T2(x0$1$2$2);
66635
66970
  if ((x0$1$3 !== null)) {
66636
66971
  var caseExpr = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x0$1$3)._1__O());
@@ -66639,7 +66974,7 @@ function $f_Lio_kaitai_struct_languages_components_GoReads__attrSwitchTypeParse_
66639
66974
  } else {
66640
66975
  throw new $c_s_MatchError(x0$1$3)
66641
66976
  }
66642
- }))))).size__I() > 0);
66977
+ })));
66643
66978
  if (someNormalCases) {
66644
66979
  $thiz.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V(id, on);
66645
66980
  var first = new $c_sr_BooleanRef(true);
@@ -67011,6 +67346,9 @@ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceSet
67011
67346
  $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceEnabledSetter__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
67012
67347
  $m_s_Predef$().$qmark$qmark$qmark__E()
67013
67348
  });
67349
+ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceTempVarDeclaration__Lio_kaitai_struct_datatype_DataType__Z__V = (function(dataType, isNullable) {
67350
+ /*<skip>*/
67351
+ });
67014
67352
  $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceInvalidate__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
67015
67353
  $m_s_Predef$().$qmark$qmark$qmark__E()
67016
67354
  });
@@ -71275,6 +71613,40 @@ function $asArrayOf_sc_SetOps(obj, depth) {
71275
71613
  return (($isArrayOf_sc_SetOps(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.SetOps;", depth))
71276
71614
  }
71277
71615
  /** @constructor */
71616
+ function $c_sc_Stepper$$anon$1(outer) {
71617
+ this.sc_Stepper$$anon$1__f_$outer = null;
71618
+ if ((outer === null)) {
71619
+ $n(null)
71620
+ } else {
71621
+ this.sc_Stepper$$anon$1__f_$outer = outer
71622
+ }
71623
+ }
71624
+ $c_sc_Stepper$$anon$1.prototype = new $h_sc_AbstractIterator();
71625
+ $c_sc_Stepper$$anon$1.prototype.constructor = $c_sc_Stepper$$anon$1;
71626
+ /** @constructor */
71627
+ function $h_sc_Stepper$$anon$1() {
71628
+ /*<skip>*/
71629
+ }
71630
+ $h_sc_Stepper$$anon$1.prototype = $c_sc_Stepper$$anon$1.prototype;
71631
+ $c_sc_Stepper$$anon$1.prototype.hasNext__Z = (function() {
71632
+ return $n(this.sc_Stepper$$anon$1__f_$outer).hasStep__Z()
71633
+ });
71634
+ $c_sc_Stepper$$anon$1.prototype.next__O = (function() {
71635
+ var this$1 = $n(this.sc_Stepper$$anon$1__f_$outer);
71636
+ return this$1.nextStep$mcI$sp__I()
71637
+ });
71638
+ var $d_sc_Stepper$$anon$1 = new $TypeData().initClass({
71639
+ sc_Stepper$$anon$1: 0
71640
+ }, false, "scala.collection.Stepper$$anon$1", {
71641
+ sc_Stepper$$anon$1: 1,
71642
+ sc_AbstractIterator: 1,
71643
+ O: 1,
71644
+ sc_Iterator: 1,
71645
+ sc_IterableOnce: 1,
71646
+ sc_IterableOnceOps: 1
71647
+ });
71648
+ $c_sc_Stepper$$anon$1.prototype.$classData = $d_sc_Stepper$$anon$1;
71649
+ /** @constructor */
71278
71650
  function $c_sc_StrictOptimizedLinearSeqOps$$anon$1(outer) {
71279
71651
  this.sc_StrictOptimizedLinearSeqOps$$anon$1__f_current = null;
71280
71652
  this.sc_StrictOptimizedLinearSeqOps$$anon$1__f_current = outer
@@ -71474,6 +71846,45 @@ var $d_sc_View$DropRightIterator = new $TypeData().initClass({
71474
71846
  sc_IterableOnceOps: 1
71475
71847
  });
71476
71848
  $c_sc_View$DropRightIterator.prototype.$classData = $d_sc_View$DropRightIterator;
71849
+ /** @constructor */
71850
+ function $c_sc_convert_impl_CodePointStringStepper(underlying, i0, iN) {
71851
+ this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$underlying = null;
71852
+ this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$i0 = 0;
71853
+ this.sc_convert_impl_CodePointStringStepper__f_iN = 0;
71854
+ this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$underlying = underlying;
71855
+ this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$i0 = i0;
71856
+ this.sc_convert_impl_CodePointStringStepper__f_iN = iN
71857
+ }
71858
+ $c_sc_convert_impl_CodePointStringStepper.prototype = new $h_O();
71859
+ $c_sc_convert_impl_CodePointStringStepper.prototype.constructor = $c_sc_convert_impl_CodePointStringStepper;
71860
+ /** @constructor */
71861
+ function $h_sc_convert_impl_CodePointStringStepper() {
71862
+ /*<skip>*/
71863
+ }
71864
+ $h_sc_convert_impl_CodePointStringStepper.prototype = $c_sc_convert_impl_CodePointStringStepper.prototype;
71865
+ $c_sc_convert_impl_CodePointStringStepper.prototype.hasStep__Z = (function() {
71866
+ return (this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$i0 < this.sc_convert_impl_CodePointStringStepper__f_iN)
71867
+ });
71868
+ $c_sc_convert_impl_CodePointStringStepper.prototype.nextStep$mcI$sp__I = (function() {
71869
+ if (this.hasStep__Z()) {
71870
+ var cp = $f_T__codePointAt__I__I($n(this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$underlying), this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$i0);
71871
+ this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$i0 = ((this.sc_convert_impl_CodePointStringStepper__f_scala$collection$convert$impl$CodePointStringStepper$$i0 + ((cp >= 65536) ? 2 : 1)) | 0);
71872
+ return cp
71873
+ } else {
71874
+ $m_sc_Stepper$().throwNSEE__E()
71875
+ }
71876
+ });
71877
+ var $d_sc_convert_impl_CodePointStringStepper = new $TypeData().initClass({
71878
+ sc_convert_impl_CodePointStringStepper: 0
71879
+ }, false, "scala.collection.convert.impl.CodePointStringStepper", {
71880
+ sc_convert_impl_CodePointStringStepper: 1,
71881
+ O: 1,
71882
+ sc_IntStepper: 1,
71883
+ sc_Stepper$mcI$sp: 1,
71884
+ sc_Stepper: 1,
71885
+ sc_Stepper$EfficientSplit: 1
71886
+ });
71887
+ $c_sc_convert_impl_CodePointStringStepper.prototype.$classData = $d_sc_convert_impl_CodePointStringStepper;
71477
71888
  function $p_sci_HashMapBuilder__isAliased__Z($thiz) {
71478
71889
  return ($thiz.sci_HashMapBuilder__f_aliased !== null)
71479
71890
  }
@@ -86567,6 +86978,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doIntLiteral__s_math_B
86567
86978
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doStringLiteral__T__T = (function(s) {
86568
86979
  return $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, s)
86569
86980
  });
86981
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doStringLiteralBody__T__T = (function(s) {
86982
+ return $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteralBody__T__T(this, s)
86983
+ });
86570
86984
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doBoolLiteral__Z__T = (function(n) {
86571
86985
  return ("" + n)
86572
86986
  });
@@ -86867,6 +87281,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doLocalName__T__T = (f
86867
87281
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
86868
87282
  $m_s_Predef$().$qmark$qmark$qmark__E()
86869
87283
  });
87284
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(userType, value, attrName) {
87285
+ return this.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T(value, attrName)
87286
+ });
86870
87287
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strConcat__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, right, extPrec) {
86871
87288
  return this.genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, $m_Lio_kaitai_struct_exprlang_Ast$operator$Add$(), right, extPrec)
86872
87289
  });
@@ -86931,7 +87348,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.kaitaiStructField__Lio
86931
87348
  return this.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T(value, name)
86932
87349
  });
86933
87350
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__O = (function(ut, value, name) {
86934
- return this.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T(value, name)
87351
+ return this.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__T(ut, value, name)
86935
87352
  });
86936
87353
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sci_Seq__O = (function(t, value) {
86937
87354
  return this.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sci_Seq__T(t, value)
@@ -87107,6 +87524,9 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.cmpOp__Lio_kaitai_struct
87107
87524
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.booleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__T = (function(op) {
87108
87525
  return $f_Lio_kaitai_struct_translators_CommonOps__booleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__T(this, op)
87109
87526
  });
87527
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doStringLiteralBody__T__T = (function(s) {
87528
+ return $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteralBody__T__T(this, s)
87529
+ });
87110
87530
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralGenericCC__C__T = (function(code) {
87111
87531
  return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralGenericCC__C__T(this, code)
87112
87532
  });
@@ -91105,7 +91525,8 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doEnumByLabel__Lio_k
91105
91525
  return (($m_Lio_kaitai_struct_languages_PythonCompiler$().types2class__sci_List__Z__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, isExternal) + ".") + label)
91106
91526
  });
91107
91527
  $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doEnumById__Lio_kaitai_struct_format_EnumSpec__T__T = (function(enumSpec, id) {
91108
- return (((("KaitaiStream.resolve_enum(" + $m_Lio_kaitai_struct_languages_PythonCompiler$().types2class__sci_List__Z__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, $n(enumSpec).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass))) + ", ") + id) + ")")
91528
+ var isExternal = $n(enumSpec).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass);
91529
+ return (((("KaitaiStream.resolve_enum(" + $m_Lio_kaitai_struct_languages_PythonCompiler$().types2class__sci_List__Z__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, isExternal)) + ", ") + id) + ")")
91109
91530
  });
91110
91531
  $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.booleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__T = (function(op) {
91111
91532
  var x = $m_Lio_kaitai_struct_exprlang_Ast$boolop$Or$();
@@ -92470,6 +92891,442 @@ var $d_Lio_kaitai_struct_translators_RustTranslator = new $TypeData().initClass(
92470
92891
  });
92471
92892
  $c_Lio_kaitai_struct_translators_RustTranslator.prototype.$classData = $d_Lio_kaitai_struct_translators_RustTranslator;
92472
92893
  /** @constructor */
92894
+ function $c_Lio_kaitai_struct_translators_ZigTranslator(provider, importList, config) {
92895
+ this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
92896
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
92897
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_inSubIOWriteBackHandler = false;
92898
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
92899
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_OPERATOR_PRECEDENCE = null;
92900
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
92901
+ this.Lio_kaitai_struct_translators_ZigTranslator__f_importList = null;
92902
+ this.Lio_kaitai_struct_translators_ZigTranslator__f_OPERATOR_PRECEDENCE = null;
92903
+ this.Lio_kaitai_struct_translators_ZigTranslator__f_asciiCharQuoteMap = null;
92904
+ this.Lio_kaitai_struct_translators_ZigTranslator__f_importList = importList;
92905
+ $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
92906
+ var this$36 = $n($m_s_Predef$().s_Predef$__f_Map);
92907
+ var self = $m_Lio_kaitai_struct_exprlang_Ast$operator$Mult$();
92908
+ var $$x15 = $ct_T2__O__O__(new $c_T2(), self, 130);
92909
+ var self$1 = $m_Lio_kaitai_struct_exprlang_Ast$operator$Div$();
92910
+ var $$x14 = $ct_T2__O__O__(new $c_T2(), self$1, 130);
92911
+ var self$2 = $m_Lio_kaitai_struct_exprlang_Ast$operator$Mod$();
92912
+ var $$x13 = $ct_T2__O__O__(new $c_T2(), self$2, 130);
92913
+ var self$3 = $m_Lio_kaitai_struct_exprlang_Ast$operator$Add$();
92914
+ var $$x12 = $ct_T2__O__O__(new $c_T2(), self$3, 120);
92915
+ var self$4 = $m_Lio_kaitai_struct_exprlang_Ast$operator$Sub$();
92916
+ var $$x11 = $ct_T2__O__O__(new $c_T2(), self$4, 120);
92917
+ var self$5 = $m_Lio_kaitai_struct_exprlang_Ast$operator$LShift$();
92918
+ var $$x10 = $ct_T2__O__O__(new $c_T2(), self$5, 110);
92919
+ var self$6 = $m_Lio_kaitai_struct_exprlang_Ast$operator$RShift$();
92920
+ var $$x9 = $ct_T2__O__O__(new $c_T2(), self$6, 110);
92921
+ var self$7 = $m_Lio_kaitai_struct_exprlang_Ast$operator$BitAnd$();
92922
+ var $$x8 = $ct_T2__O__O__(new $c_T2(), self$7, 100);
92923
+ var self$8 = $m_Lio_kaitai_struct_exprlang_Ast$operator$BitXor$();
92924
+ var $$x7 = $ct_T2__O__O__(new $c_T2(), self$8, 100);
92925
+ var self$9 = $m_Lio_kaitai_struct_exprlang_Ast$operator$BitOr$();
92926
+ var $$x6 = $ct_T2__O__O__(new $c_T2(), self$9, 100);
92927
+ var self$10 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Lt$();
92928
+ var $$x5 = $ct_T2__O__O__(new $c_T2(), self$10, 90);
92929
+ var self$11 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$LtE$();
92930
+ var $$x4 = $ct_T2__O__O__(new $c_T2(), self$11, 90);
92931
+ var self$12 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Gt$();
92932
+ var $$x3 = $ct_T2__O__O__(new $c_T2(), self$12, 90);
92933
+ var self$13 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$GtE$();
92934
+ var $$x2 = $ct_T2__O__O__(new $c_T2(), self$13, 90);
92935
+ var self$14 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$();
92936
+ var $$x1 = $ct_T2__O__O__(new $c_T2(), self$14, 90);
92937
+ var self$15 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$NotEq$();
92938
+ var array = [$$x15, $$x14, $$x13, $$x12, $$x11, $$x10, $$x9, $$x8, $$x7, $$x6, $$x5, $$x4, $$x3, $$x2, $$x1, $ct_T2__O__O__(new $c_T2(), self$15, 90)];
92939
+ var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
92940
+ this.Lio_kaitai_struct_translators_ZigTranslator__f_OPERATOR_PRECEDENCE = this$36.from__sc_IterableOnce__sci_Map(elems);
92941
+ var this$50 = $n($m_s_Predef$().s_Predef$__f_Map);
92942
+ var array$1 = [$ct_T2__O__O__(new $c_T2(), $bC(10), "\\n"), $ct_T2__O__O__(new $c_T2(), $bC(13), "\\r"), $ct_T2__O__O__(new $c_T2(), $bC(9), "\\t"), $ct_T2__O__O__(new $c_T2(), $bC(92), "\\\\"), $ct_T2__O__O__(new $c_T2(), $bC(34), "\\\"")];
92943
+ var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
92944
+ this.Lio_kaitai_struct_translators_ZigTranslator__f_asciiCharQuoteMap = this$50.from__sc_IterableOnce__sci_Map(elems$1)
92945
+ }
92946
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype = new $h_Lio_kaitai_struct_translators_BaseTranslator();
92947
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.constructor = $c_Lio_kaitai_struct_translators_ZigTranslator;
92948
+ /** @constructor */
92949
+ function $h_Lio_kaitai_struct_translators_ZigTranslator() {
92950
+ /*<skip>*/
92951
+ }
92952
+ $h_Lio_kaitai_struct_translators_ZigTranslator.prototype = $c_Lio_kaitai_struct_translators_ZigTranslator.prototype;
92953
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.OPERATOR_PRECEDENCE__sci_Map = (function() {
92954
+ return this.Lio_kaitai_struct_translators_ZigTranslator__f_OPERATOR_PRECEDENCE
92955
+ });
92956
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sci_Seq__T = (function(t, value) {
92957
+ var nativeType = $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(t, this.Lio_kaitai_struct_translators_ZigTranslator__f_importList, $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass);
92958
+ var this$2 = $n($as_sc_IterableOnceOps($n(value).map__F1__O(new $c_sjsr_AnonFunction1(((v$2) => {
92959
+ var v = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2);
92960
+ return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0)
92961
+ })))));
92962
+ var commaStr = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", ", ", "");
92963
+ return (((((((("_imp_std.ArrayList(" + nativeType) + "){ .items = @constCast(@as([]const ") + nativeType) + ", &.{ ") + commaStr) + " })), .capacity = ") + $n(value).length__I()) + " }")
92964
+ });
92965
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doByteArrayLiteral__sci_Seq__T = (function(arr) {
92966
+ var this$2 = $n($as_sc_IterableOnceOps($n(arr).map__F1__O(new $c_sjsr_AnonFunction1(((x$1$2) => {
92967
+ var x$1 = $uB(x$1$2);
92968
+ return (255 & x$1)
92969
+ })))));
92970
+ return (("&[_]u8{ " + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", ", ", "")) + " }")
92971
+ });
92972
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doByteArrayNonLiteral__sci_Seq__T = (function(elts) {
92973
+ var this$2 = $n($as_sc_IterableOnceOps($n(elts).map__F1__O(new $c_sjsr_AnonFunction1(((v$2) => {
92974
+ var v = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2);
92975
+ return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0)
92976
+ })))));
92977
+ return (("&[_]u8{ " + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", ", ", "")) + " }")
92978
+ });
92979
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
92980
+ return this.Lio_kaitai_struct_translators_ZigTranslator__f_asciiCharQuoteMap
92981
+ });
92982
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doStringLiteralBody__T__T = (function(s) {
92983
+ $m_sc_StringOps$();
92984
+ var this$3 = $n(s);
92985
+ var this$4 = new $c_sc_convert_impl_CodePointStringStepper(s, 0, this$3.length);
92986
+ var this$10 = new $c_sc_Stepper$$anon$1(this$4);
92987
+ var f = new $c_sjsr_AnonFunction1(((code$2) => {
92988
+ var code = $uI(code$2);
92989
+ if ((code <= 255)) {
92990
+ var code$1 = (65535 & code);
92991
+ return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralAsciiChar__C__T(this, code$1)
92992
+ } else {
92993
+ var $$x1 = $m_sc_StringOps$();
92994
+ var array = [code];
92995
+ return $n($$x1).format$extension__T__sci_Seq__T("\\u{%04x}", $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array))
92996
+ }
92997
+ }));
92998
+ var this$11 = new $c_sc_Iterator$$anon$9(this$10, f);
92999
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$11, "", "", "")
93000
+ });
93001
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strLiteralGenericCC__C__T = (function(code) {
93002
+ var $$x1 = $m_sc_StringOps$();
93003
+ var array = [code];
93004
+ return $n($$x1).format$extension__T__sci_Seq__T("\\u{%04x}", $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array))
93005
+ });
93006
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
93007
+ var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
93008
+ var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
93009
+ if ((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType)) {
93010
+ if ((_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType)) {
93011
+ var x = $m_Lio_kaitai_struct_exprlang_Ast$operator$Mod$();
93012
+ var $$x1 = (x === op)
93013
+ } else {
93014
+ var $$x1 = false
93015
+ }
93016
+ } else {
93017
+ var $$x1 = false
93018
+ };
93019
+ if ($$x1) {
93020
+ return (((("@mod(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ")")
93021
+ } else {
93022
+ return $f_Lio_kaitai_struct_translators_CommonOps__genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(this, left, op, right, extPrec)
93023
+ }
93024
+ });
93025
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doLocalName__T__T = (function(s) {
93026
+ if (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR === s)) {
93027
+ return "_it"
93028
+ } else if (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR2 === s)) {
93029
+ return "_buf"
93030
+ } else if (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_SWITCH_ON === s)) {
93031
+ return "_on"
93032
+ } else if (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_INDEX === s)) {
93033
+ return "i"
93034
+ } else if ((($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ROOT === s) || ($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_PARENT === s))) {
93035
+ return (("self." + s) + ".?")
93036
+ } else if (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_IO === s)) {
93037
+ return ("self." + s)
93038
+ } else {
93039
+ var this$1 = $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider);
93040
+ if (this$1.isLazy__Lio_kaitai_struct_format_ClassSpec__T__Z(this$1.Lio_kaitai_struct_ClassTypeProvider__f_nowClass, s)) {
93041
+ return (("(try self." + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s)) + "())")
93042
+ } else {
93043
+ return ("self." + s)
93044
+ }
93045
+ }
93046
+ });
93047
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doName__T__T = (function(s) {
93048
+ return s
93049
+ });
93050
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
93051
+ return $m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)
93052
+ });
93053
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(ut, value, name) {
93054
+ var valueStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0);
93055
+ if ((($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ROOT === name) || ($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_PARENT === name))) {
93056
+ return (((valueStr + ".") + name) + ".?")
93057
+ } else if (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_IO === name)) {
93058
+ return ((valueStr + ".") + name)
93059
+ } else {
93060
+ var isLazy = $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).isLazy__Lio_kaitai_struct_format_ClassSpec__T__Z($as_Lio_kaitai_struct_format_ClassSpec($n($n(ut).Lio_kaitai_struct_datatype_DataType$UserType__f_classSpec).get__O()), name);
93061
+ return (isLazy ? (((("(try " + valueStr) + ".") + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)) + "())") : ((valueStr + ".") + name))
93062
+ }
93063
+ });
93064
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doEnumByLabel__Lio_kaitai_struct_format_EnumSpec__T__T = (function(enumSpec, label) {
93065
+ var et = new $c_Lio_kaitai_struct_datatype_DataType$EnumType($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$());
93066
+ et.Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec = new $c_s_Some(enumSpec);
93067
+ return (($m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(et, this.Lio_kaitai_struct_translators_ZigTranslator__f_importList, $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass) + ".") + label)
93068
+ });
93069
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doEnumById__Lio_kaitai_struct_format_EnumSpec__T__T = (function(enumSpec, id) {
93070
+ var et = new $c_Lio_kaitai_struct_datatype_DataType$EnumType($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$());
93071
+ et.Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec = new $c_s_Some(enumSpec);
93072
+ return (((("@as(" + $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(et, this.Lio_kaitai_struct_translators_ZigTranslator__f_importList, $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) + ", @enumFromInt(") + id) + "))")
93073
+ });
93074
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doStrCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
93075
+ return this.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, op, right, extPrec)
93076
+ });
93077
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
93078
+ var x = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$();
93079
+ if ((x === op)) {
93080
+ return (((("_imp_std.mem.eql(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ")")
93081
+ } else {
93082
+ var x$3 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$NotEq$();
93083
+ if ((x$3 === op)) {
93084
+ return (((("!_imp_std.mem.eql(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ")")
93085
+ } else {
93086
+ var x$5 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Lt$();
93087
+ if ((x$5 === op)) {
93088
+ return (((("(_imp_std.mem.order(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ") == .lt)")
93089
+ } else {
93090
+ var x$7 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Gt$();
93091
+ if ((x$7 === op)) {
93092
+ return (((("(_imp_std.mem.order(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ") == .gt)")
93093
+ } else {
93094
+ var x$9 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$LtE$();
93095
+ if ((x$9 === op)) {
93096
+ return (((("_imp_std.mem.order(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ").compare(.lte)")
93097
+ } else {
93098
+ var x$11 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$GtE$();
93099
+ if ((x$11 === op)) {
93100
+ return (((("_imp_std.mem.order(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + ").compare(.gte)")
93101
+ } else {
93102
+ throw new $c_s_MatchError(op)
93103
+ }
93104
+ }
93105
+ }
93106
+ }
93107
+ }
93108
+ }
93109
+ });
93110
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.booleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__T = (function(op) {
93111
+ var x = $m_Lio_kaitai_struct_exprlang_Ast$boolop$Or$();
93112
+ if ((x === op)) {
93113
+ return "or"
93114
+ } else {
93115
+ var x$3 = $m_Lio_kaitai_struct_exprlang_Ast$boolop$And$();
93116
+ if ((x$3 === op)) {
93117
+ return "and"
93118
+ } else {
93119
+ throw new $c_s_MatchError(op)
93120
+ }
93121
+ }
93122
+ });
93123
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
93124
+ return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(container, 0) + ".items[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(idx, 0)) + "]")
93125
+ });
93126
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(condition, ifTrue, ifFalse) {
93127
+ return (((((("(if (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(condition, 0)) + ") ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(ifTrue, 0)) + " else ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(ifFalse, 0)) + ")")
93128
+ });
93129
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doCast__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__T = (function(value, typeName) {
93130
+ return (((("@as(" + $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(typeName, this.Lio_kaitai_struct_translators_ZigTranslator__f_importList, $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0)) + ")")
93131
+ });
93132
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strConcat__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, right, extPrec) {
93133
+ return (((("(try _imp_std.mem.concat(self._allocator(), u8, &[_][]const u8{ " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(right, 0)) + " }))")
93134
+ });
93135
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, base) {
93136
+ return (((("(try _imp_std.fmt.parseInt(i32, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, 0)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(base, 0)) + "))")
93137
+ });
93138
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__T = (function(v, et) {
93139
+ return (("@intFromEnum(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0)) + ")")
93140
+ });
93141
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
93142
+ return (("@intFromFloat(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0)) + ")")
93143
+ });
93144
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
93145
+ return (("@intFromBool(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0)) + ")")
93146
+ });
93147
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
93148
+ return (("(try _imp_std.fmt.allocPrint(self._allocator(), \"{d}\", .{ " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(i, 0)) + " }))")
93149
+ });
93150
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
93151
+ return (((("(try _imp_kaitai_struct.KaitaiStream.bytesToStr(self._allocator(), " + bytesExpr) + ", ") + $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, encoding)) + "))")
93152
+ });
93153
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
93154
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, 999) + ".len")
93155
+ });
93156
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
93157
+ return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(container, 999) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(idx, 0)) + "]")
93158
+ });
93159
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
93160
+ var this$1 = $m_s_math_BigInt$();
93161
+ return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(b, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(0)))
93162
+ });
93163
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
93164
+ var $$x2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(b, new $c_Lio_kaitai_struct_exprlang_Ast$identifier("length"));
93165
+ var $$x1 = $m_Lio_kaitai_struct_exprlang_Ast$operator$Sub$();
93166
+ var this$1 = $m_s_math_BigInt$();
93167
+ return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(b, new $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp($$x2, $$x1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(1))))
93168
+ });
93169
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
93170
+ return (("_imp_std.mem.min(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, 0)) + ")")
93171
+ });
93172
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
93173
+ return (("_imp_std.mem.max(u8, " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, 0)) + ")")
93174
+ });
93175
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
93176
+ return (("new StringBuilder(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, 0)) + ").reverse().toString()")
93177
+ });
93178
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, from, to) {
93179
+ return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, 999) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(from, 0)) + "..") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(to, 0)) + "]")
93180
+ });
93181
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
93182
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 999) + ".items[0]")
93183
+ });
93184
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
93185
+ var v = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 999);
93186
+ return (((v + ".items[") + v) + ".items.len - 1]")
93187
+ });
93188
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
93189
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 999) + ".items.len")
93190
+ });
93191
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
93192
+ var t = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(a);
93193
+ var elType = $n($as_Lio_kaitai_struct_datatype_DataType$ArrayType(t)).Lio_kaitai_struct_datatype_DataType$ArrayType__f_elType;
93194
+ return (((("_imp_std.mem.min(" + $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(elType, this.Lio_kaitai_struct_translators_ZigTranslator__f_importList, $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 999)) + ".items)")
93195
+ });
93196
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
93197
+ var t = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(a);
93198
+ var elType = $n($as_Lio_kaitai_struct_datatype_DataType$ArrayType(t)).Lio_kaitai_struct_datatype_DataType$ArrayType__f_elType;
93199
+ return (((("_imp_std.mem.max(" + $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(elType, this.Lio_kaitai_struct_translators_ZigTranslator__f_importList, $n(this.Lio_kaitai_struct_translators_BaseTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 999)) + ".items)")
93200
+ });
93201
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
93202
+ return (("(try " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 999)) + ".size())")
93203
+ });
93204
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
93205
+ return (("(try " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 999)) + ".isEof())")
93206
+ });
93207
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.kaitaiStreamPos__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
93208
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 999) + ".pos()")
93209
+ });
93210
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doInterpolatedStringLiteral__sci_Seq__T = (function(exprs) {
93211
+ if ($n(exprs).isEmpty__Z()) {
93212
+ return $f_Lio_kaitai_struct_translators_CommonLiterals__doStringLiteral__T__T(this, "")
93213
+ } else {
93214
+ var this$2 = $n($as_sc_IterableOnceOps($n(exprs).map__F1__O(new $c_sjsr_AnonFunction1(((expr$2) => {
93215
+ var expr = $as_Lio_kaitai_struct_exprlang_Ast$expr(expr$2);
93216
+ var x1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(expr);
93217
+ if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
93218
+ return "{d}"
93219
+ } else if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)) {
93220
+ return "{s}"
93221
+ } else {
93222
+ throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), (("unable to convert " + x1) + " to string in format string (only integers and strings are supported)"))
93223
+ }
93224
+ })))));
93225
+ var fmtString = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", "", "");
93226
+ var this$3 = $n($as_sc_IterableOnceOps($n(exprs).map__F1__O(new $c_sjsr_AnonFunction1(((v$2) => {
93227
+ var v = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2);
93228
+ return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0)
93229
+ })))));
93230
+ return (((("(try _imp_std.fmt.allocPrint(self._allocator(), \"" + fmtString) + "\", .{ ") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$3, "", ", ", "")) + " }))")
93231
+ }
93232
+ });
93233
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.kaitaiStreamPos__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
93234
+ return this.kaitaiStreamPos__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
93235
+ });
93236
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
93237
+ return this.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
93238
+ });
93239
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
93240
+ return this.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
93241
+ });
93242
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
93243
+ return this.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
93244
+ });
93245
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
93246
+ return this.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
93247
+ });
93248
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
93249
+ return this.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
93250
+ });
93251
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
93252
+ return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
93253
+ });
93254
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
93255
+ return this.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
93256
+ });
93257
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, from, to) {
93258
+ return this.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, from, to)
93259
+ });
93260
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
93261
+ return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
93262
+ });
93263
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
93264
+ return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
93265
+ });
93266
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
93267
+ return this.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
93268
+ });
93269
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
93270
+ return this.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
93271
+ });
93272
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
93273
+ return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
93274
+ });
93275
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
93276
+ return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
93277
+ });
93278
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(container, idx) {
93279
+ return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(container, idx)
93280
+ });
93281
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
93282
+ return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
93283
+ });
93284
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
93285
+ return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
93286
+ });
93287
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
93288
+ return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
93289
+ });
93290
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
93291
+ return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
93292
+ });
93293
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O = (function(value, et) {
93294
+ return this.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__T(value, et)
93295
+ });
93296
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, base) {
93297
+ return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
93298
+ });
93299
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doCast__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__O = (function(value, typeName) {
93300
+ return this.doCast__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__T(value, typeName)
93301
+ });
93302
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__O = (function(ut, value, name) {
93303
+ return this.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__T(ut, value, name)
93304
+ });
93305
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doByteArrayNonLiteral__sci_Seq__O = (function(elts) {
93306
+ return this.doByteArrayNonLiteral__sci_Seq__T(elts)
93307
+ });
93308
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doByteArrayLiteral__sci_Seq__O = (function(arr) {
93309
+ return this.doByteArrayLiteral__sci_Seq__T(arr)
93310
+ });
93311
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sci_Seq__O = (function(t, value) {
93312
+ return this.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sci_Seq__T(t, value)
93313
+ });
93314
+ var $d_Lio_kaitai_struct_translators_ZigTranslator = new $TypeData().initClass({
93315
+ Lio_kaitai_struct_translators_ZigTranslator: 0
93316
+ }, false, "io.kaitai.struct.translators.ZigTranslator", {
93317
+ Lio_kaitai_struct_translators_ZigTranslator: 1,
93318
+ Lio_kaitai_struct_translators_BaseTranslator: 1,
93319
+ Lio_kaitai_struct_translators_TypeDetector: 1,
93320
+ O: 1,
93321
+ Lio_kaitai_struct_translators_AbstractTranslator: 1,
93322
+ Lio_kaitai_struct_translators_CommonLiterals: 1,
93323
+ Lio_kaitai_struct_translators_CommonOps: 1,
93324
+ Lio_kaitai_struct_translators_CommonArraysAndCast: 1,
93325
+ Lio_kaitai_struct_translators_CommonMethods: 1,
93326
+ Lio_kaitai_struct_translators_ByteArraysAsTrueArrays: 1
93327
+ });
93328
+ $c_Lio_kaitai_struct_translators_ZigTranslator.prototype.$classData = $d_Lio_kaitai_struct_translators_ZigTranslator;
93329
+ /** @constructor */
92473
93330
  function $c_sc_AbstractView() {
92474
93331
  /*<skip>*/
92475
93332
  }
@@ -95037,6 +95894,9 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.createSubstream__Lio_kaitai
95037
95894
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
95038
95895
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
95039
95896
  });
95897
+ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
95898
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
95899
+ });
95040
95900
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V = (function(attr, id, defEndian) {
95041
95901
  $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(this, attr, id, defEndian)
95042
95902
  });
@@ -96146,10 +97006,10 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceFooter__V = (functi
96146
97006
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
96147
97007
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((("if (" + this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(instName)) + ")"));
96148
97008
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).inc__V();
96149
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
97009
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
96150
97010
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).dec__V()
96151
97011
  });
96152
- $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
97012
+ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
96153
97013
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((("return " + this.nonOwningPointer__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T(instName, attrType)) + ";"))
96154
97014
  });
96155
97015
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
@@ -97181,6 +98041,9 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.createSubstream__Lio
97181
98041
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
97182
98042
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
97183
98043
  });
98044
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
98045
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
98046
+ });
97184
98047
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
97185
98048
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
97186
98049
  });
@@ -97931,10 +98794,10 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceFooter__V =
97931
98794
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
97932
98795
  $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((("if (" + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " !== undefined)"));
97933
98796
  $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).inc__V();
97934
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
98797
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
97935
98798
  $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).dec__V()
97936
98799
  });
97937
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
98800
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
97938
98801
  $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((("return " + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
97939
98802
  });
97940
98803
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.enumDeclaration__sci_List__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
@@ -98137,6 +99000,9 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.createSubstream__Lio_kaitai
98137
99000
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
98138
99001
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
98139
99002
  });
99003
+ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
99004
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
99005
+ });
98140
99006
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
98141
99007
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
98142
99008
  });
@@ -98780,10 +99646,10 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceHeader__sci_List__L
98780
99646
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
98781
99647
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((("if (" + $m_Lio_kaitai_struct_languages_PHPCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " !== null)"));
98782
99648
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).inc__V();
98783
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
99649
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
98784
99650
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).dec__V()
98785
99651
  });
98786
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
99652
+ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
98787
99653
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((("return " + $m_Lio_kaitai_struct_languages_PHPCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
98788
99654
  });
98789
99655
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.enumDeclaration__sci_List__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
@@ -98979,6 +99845,9 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.createSubstream__Lio_kaita
98979
99845
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
98980
99846
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
98981
99847
  });
99848
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
99849
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
99850
+ });
98982
99851
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
98983
99852
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
98984
99853
  });
@@ -99559,7 +100428,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceHeader__sci_List__
99559
100428
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
99560
100429
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((((("return " + $m_Lio_kaitai_struct_languages_PerlCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " if (") + $m_Lio_kaitai_struct_languages_PerlCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ");"))
99561
100430
  });
99562
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
100431
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
99563
100432
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((("return " + $m_Lio_kaitai_struct_languages_PerlCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
99564
100433
  });
99565
100434
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.enumDeclaration__sci_List__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
@@ -99789,6 +100658,9 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.createSubstream__Lio_kai
99789
100658
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
99790
100659
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
99791
100660
  });
100661
+ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
100662
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
100663
+ });
99792
100664
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V = (function(attr, id, defEndian) {
99793
100665
  $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(this, attr, id, defEndian)
99794
100666
  });
@@ -100470,10 +101342,10 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceFooter__V = (fun
100470
101342
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
100471
101343
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V((("if (" + this.flagForInstName__Lio_kaitai_struct_format_Identifier__T(instName)) + ")"));
100472
101344
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).inc__V();
100473
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
101345
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
100474
101346
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).dec__V()
100475
101347
  });
100476
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
101348
+ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
100477
101349
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V((("return " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
100478
101350
  });
100479
101351
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
@@ -101331,10 +102203,10 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceCalculate__Lio_kaita
101331
102203
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
101332
102204
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((("if (this." + this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(instName)) + ") {"));
101333
102205
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).inc__V();
101334
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
102206
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
101335
102207
  this.universalFooter__V()
101336
102208
  });
101337
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
102209
+ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
101338
102210
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((("return " + $m_Lio_kaitai_struct_languages_GoCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ", nil"))
101339
102211
  });
101340
102212
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
@@ -101548,6 +102420,9 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.createSubstream__Lio_kaitai
101548
102420
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
101549
102421
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
101550
102422
  });
102423
+ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
102424
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
102425
+ });
101551
102426
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
101552
102427
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
101553
102428
  });
@@ -101935,13 +102810,13 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceFooter__V = (functi
101935
102810
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
101936
102811
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((("if self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " ~= nil then"));
101937
102812
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).inc__V();
101938
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
102813
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
101939
102814
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).dec__V();
101940
102815
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V("end");
101941
102816
  var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out);
101942
102817
  $n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
101943
102818
  });
101944
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
102819
+ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
101945
102820
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V(("return " + $m_Lio_kaitai_struct_languages_LuaCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)))
101946
102821
  });
101947
102822
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.enumDeclaration__sci_List__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
@@ -102306,6 +103181,9 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.createSubstream__Lio_kaitai
102306
103181
  $c_Lio_kaitai_struct_languages_NimCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
102307
103182
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
102308
103183
  });
103184
+ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
103185
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
103186
+ });
102309
103187
  $c_Lio_kaitai_struct_languages_NimCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
102310
103188
  $m_s_Predef$().$qmark$qmark$qmark__E()
102311
103189
  });
@@ -102645,7 +103523,7 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.instanceFooter__V = (functi
102645
103523
  var this$1 = $n(this.Lio_kaitai_struct_languages_NimCompiler__f_out);
102646
103524
  $n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
102647
103525
  });
102648
- $c_Lio_kaitai_struct_languages_NimCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
103526
+ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
102649
103527
  $n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).puts__T__V((("this." + this.instanceFlagIdentifier__Lio_kaitai_struct_format_InstanceIdentifier__T(instName)) + " = true"));
102650
103528
  $n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).puts__T__V(("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)))
102651
103529
  });
@@ -103209,6 +104087,9 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrParse2$default$7__s_Op
103209
104087
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, bt, io, rep, defEndian) {
103210
104088
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, bt, io, rep, defEndian)
103211
104089
  });
104090
+ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
104091
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
104092
+ });
103212
104093
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
103213
104094
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
103214
104095
  });
@@ -103829,7 +104710,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceHeader__T__Lio_kai
103829
104710
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
103830
104711
  $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V((((("return " + $m_Lio_kaitai_struct_languages_RubyCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " unless ") + $m_Lio_kaitai_struct_languages_RubyCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ".nil?"))
103831
104712
  });
103832
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
104713
+ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
103833
104714
  $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V($m_Lio_kaitai_struct_languages_RubyCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName))
103834
104715
  });
103835
104716
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.enumDeclaration__T__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
@@ -104035,6 +104916,9 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.results__Lio_kaitai_struct
104035
104916
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
104036
104917
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
104037
104918
  });
104919
+ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
104920
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
104921
+ });
104038
104922
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
104039
104923
  $m_s_Predef$().$qmark$qmark$qmark__E()
104040
104924
  });
@@ -104680,7 +105564,7 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.instanceCalculate__Lio_kai
104680
105564
  this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(instName, ((("(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, value)) + ") as ") + $m_Lio_kaitai_struct_languages_RustCompiler$().kaitaiPrimitiveToNativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)))
104681
105565
  }
104682
105566
  });
104683
- $c_Lio_kaitai_struct_languages_RustCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
105567
+ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
104684
105568
  $n(this.Lio_kaitai_struct_languages_RustCompiler__f_out).puts__T__V((("Ok(" + $m_Lio_kaitai_struct_languages_RustCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__Z__T(instName, false)) + ")"))
104685
105569
  });
104686
105570
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.enumDeclaration__sci_List__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
@@ -106043,6 +106927,959 @@ $h_sci_AbstractSet.prototype = $c_sci_AbstractSet.prototype;
106043
106927
  $c_sci_AbstractSet.prototype.iterableFactory__sc_IterableFactory = (function() {
106044
106928
  return $m_sci_Set$()
106045
106929
  });
106930
+ function $p_Lio_kaitai_struct_languages_ZigCompiler__attrValidate__Lio_kaitai_struct_format_AttrLikeSpec__T__Lio_kaitai_struct_datatype_KSError__Z__Lio_kaitai_struct_exprlang_Ast$expr__s_Option__V($thiz, attr, failCondExpr, err, useIo, actual, expected) {
106931
+ $n($thiz.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("if (" + failCondExpr) + ") {"));
106932
+ $n($thiz.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
106933
+ $n($thiz.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("return " + $thiz.ksErrorName__Lio_kaitai_struct_datatype_KSError__T(err)) + ";"));
106934
+ $n($thiz.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
106935
+ $n($thiz.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
106936
+ }
106937
+ /** @constructor */
106938
+ function $c_Lio_kaitai_struct_languages_ZigCompiler(typeProvider, config) {
106939
+ this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider = null;
106940
+ this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config = null;
106941
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_translator = null;
106942
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_NAME_SWITCH_ON = null;
106943
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_outHeader = null;
106944
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_out = null;
106945
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_importList = null;
106946
+ $ct_Lio_kaitai_struct_languages_components_LanguageCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__(this, typeProvider, config);
106947
+ $f_Lio_kaitai_struct_languages_components_SingleOutputFile__$init$__V(this);
106948
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_translator = new $c_Lio_kaitai_struct_translators_ZigTranslator(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider, this.Lio_kaitai_struct_languages_ZigCompiler__f_importList, this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config);
106949
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_NAME_SWITCH_ON = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name(new $c_Lio_kaitai_struct_exprlang_Ast$identifier($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_SWITCH_ON))
106950
+ }
106951
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype = new $h_Lio_kaitai_struct_languages_components_LanguageCompiler();
106952
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.constructor = $c_Lio_kaitai_struct_languages_ZigCompiler;
106953
+ /** @constructor */
106954
+ function $h_Lio_kaitai_struct_languages_ZigCompiler() {
106955
+ /*<skip>*/
106956
+ }
106957
+ $h_Lio_kaitai_struct_languages_ZigCompiler.prototype = $c_Lio_kaitai_struct_languages_ZigCompiler.prototype;
106958
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classHeader__sci_List__V = (function(name) {
106959
+ this.classHeader__T__V($as_T($n(name).last__O()))
106960
+ });
106961
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classConstructorHeader__sci_List__Lio_kaitai_struct_datatype_DataType__sci_List__Z__sci_List__V = (function(name, parentType, rootClassName, isHybrid, params) {
106962
+ this.classConstructorHeader__T__Lio_kaitai_struct_datatype_DataType__T__Z__sci_List__V($as_T($n(name).last__O()), parentType, $as_T($n(rootClassName).last__O()), isHybrid, params)
106963
+ });
106964
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
106965
+ this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($n(className).last__O()), instName, dataType, isNullable)
106966
+ });
106967
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.enumDeclaration__sci_List__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
106968
+ $f_Lio_kaitai_struct_languages_components_NoNeedForFullClassPath__enumDeclaration__sci_List__T__sci_Seq__V(this, curClass, enumName, enumColl)
106969
+ });
106970
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCases__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__sci_Map__F1__F1__V = (function(id, on, cases, normalCaseProc, elseCaseProc) {
106971
+ $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCases__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__sci_Map__F1__F1__V(this, id, on, cases, normalCaseProc, elseCaseProc)
106972
+ });
106973
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCasesUsingIf__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__sci_Map__F1__F1__V = (function(id, on, onType, cases, normalCaseProc, elseCaseProc) {
106974
+ $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCasesUsingIf__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__sci_Map__F1__F1__V(this, id, on, onType, cases, normalCaseProc, elseCaseProc)
106975
+ });
106976
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.allocateIOFixed__Lio_kaitai_struct_format_Identifier__T__T = (function(varName, size) {
106977
+ $m_s_Predef$().$qmark$qmark$qmark__E()
106978
+ });
106979
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
106980
+ return $m_sci_Nil$()
106981
+ });
106982
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classDoc__sci_List__Lio_kaitai_struct_format_DocSpec__V = (function(name, doc) {
106983
+ this.universalDoc__Lio_kaitai_struct_format_DocSpec__V(doc)
106984
+ });
106985
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attributeDoc__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_DocSpec__V = (function(id, doc) {
106986
+ this.universalDoc__Lio_kaitai_struct_format_DocSpec__V(doc)
106987
+ });
106988
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.readFooter__V = (function() {
106989
+ this.universalFooter__V()
106990
+ });
106991
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.writeFooter__V = (function() {
106992
+ this.universalFooter__V()
106993
+ });
106994
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.writeInstanceFooter__V = (function() {
106995
+ this.universalFooter__V()
106996
+ });
106997
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.checkInstanceFooter__V = (function() {
106998
+ this.universalFooter__V()
106999
+ });
107000
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatExprFooter__V = (function() {
107001
+ this.universalFooter__V()
107002
+ });
107003
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatCommonFooter__V = (function() {
107004
+ this.universalFooter__V()
107005
+ });
107006
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condIfFooter__V = (function() {
107007
+ this.universalFooter__V()
107008
+ });
107009
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceFooter__V = (function() {
107010
+ this.universalFooter__V()
107011
+ });
107012
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V = (function(id, dataType, io, rep, isRaw, defEndian, assignTypeOpt) {
107013
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V(this, id, dataType, io, rep, isRaw, defEndian, assignTypeOpt)
107014
+ });
107015
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrParse2$default$7__s_Option = (function() {
107016
+ return $m_s_None$()
107017
+ });
107018
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, bt, io, rep, defEndian) {
107019
+ return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, bt, io, rep, defEndian)
107020
+ });
107021
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
107022
+ return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
107023
+ });
107024
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
107025
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
107026
+ });
107027
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V = (function(attr, id, defEndian) {
107028
+ $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(this, attr, id, defEndian)
107029
+ });
107030
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrId, attrType, io, repeat) {
107031
+ /*<skip>*/
107032
+ });
107033
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrDebugArrInit__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__V = (function(attrId, attrType) {
107034
+ /*<skip>*/
107035
+ });
107036
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrName, attrType, io, repeat) {
107037
+ /*<skip>*/
107038
+ });
107039
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.normalIO__T = (function() {
107040
+ var id = $m_Lio_kaitai_struct_format_IoIdentifier$();
107041
+ return $m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)
107042
+ });
107043
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.type2class__T__T = (function(name) {
107044
+ return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
107045
+ });
107046
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.results__Lio_kaitai_struct_format_ClassSpec__sci_Map = (function(topClass) {
107047
+ return $f_Lio_kaitai_struct_languages_components_SingleOutputFile__results__Lio_kaitai_struct_format_ClassSpec__sci_Map(this, topClass)
107048
+ });
107049
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.outHeader__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
107050
+ return this.Lio_kaitai_struct_languages_ZigCompiler__f_outHeader
107051
+ });
107052
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
107053
+ return this.Lio_kaitai_struct_languages_ZigCompiler__f_out
107054
+ });
107055
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.io$kaitai$struct$languages$components$SingleOutputFile$_setter_$outHeader_$eq__Lio_kaitai_struct_StringLanguageOutputWriter__V = (function(x$1) {
107056
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_outHeader = x$1
107057
+ });
107058
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.io$kaitai$struct$languages$components$SingleOutputFile$_setter_$out_$eq__Lio_kaitai_struct_StringLanguageOutputWriter__V = (function(x$1) {
107059
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_out = x$1
107060
+ });
107061
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.io$kaitai$struct$languages$components$SingleOutputFile$_setter_$importList_$eq__Lio_kaitai_struct_ImportList__V = (function(x$1) {
107062
+ this.Lio_kaitai_struct_languages_ZigCompiler__f_importList = x$1
107063
+ });
107064
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.universalFooter__V = (function() {
107065
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107066
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107067
+ });
107068
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.indent__T = (function() {
107069
+ return " "
107070
+ });
107071
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.outFileName__T__T = (function(topClassName) {
107072
+ return (topClassName + ".zig")
107073
+ });
107074
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.outImports__Lio_kaitai_struct_format_ClassSpec__T = (function(topClass) {
107075
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_importList);
107076
+ var this$2 = $n($n(this$1.Lio_kaitai_struct_ImportList__f_list).toList__sci_List());
107077
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", "\n", "\n")
107078
+ });
107079
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.fileHeader__T__V = (function(topClassName) {
107080
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_outHeader).puts__T__V("// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild");
107081
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_outHeader);
107082
+ $n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
107083
+ var this$2 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_importList);
107084
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$2.Lio_kaitai_struct_ImportList__f_list, "const _imp_std = @import(\"std\");");
107085
+ var this$3 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_importList);
107086
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$3.Lio_kaitai_struct_ImportList__f_list, "const _imp_kaitai_struct = @import(\"kaitai_struct\");");
107087
+ var this$4 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107088
+ $n(this$4.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
107089
+ });
107090
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.externalTypeDeclaration__Lio_kaitai_struct_ExternalType__V = (function(extType) {
107091
+ $m_Lio_kaitai_struct_languages_ZigCompiler$().externalTypeDeclaration__Lio_kaitai_struct_ExternalType__Lio_kaitai_struct_ImportList__V(extType, this.Lio_kaitai_struct_languages_ZigCompiler__f_importList)
107092
+ });
107093
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classHeader__T__V = (function(name) {
107094
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("pub const " + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)) + " = struct {"));
107095
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107096
+ var x1 = $n($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass).Lio_kaitai_struct_format_ClassSpec__f_meta).Lio_kaitai_struct_format_MetaSpec__f_endian;
107097
+ matchEnd6: {
107098
+ if ((x1 instanceof $c_s_Some)) {
107099
+ var x2 = $as_s_Some(x1);
107100
+ var p3 = $as_Lio_kaitai_struct_datatype_Endianness($n(x2).s_Some__f_value);
107101
+ var x = $m_Lio_kaitai_struct_datatype_InheritedEndian$();
107102
+ if ((x === p3)) {
107103
+ break matchEnd6
107104
+ }
107105
+ }
107106
+ }
107107
+ });
107108
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classFooter__sci_List__V = (function(name) {
107109
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_arena: *_imp_std.heap.ArenaAllocator,");
107110
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_io: *_imp_kaitai_struct.KaitaiStream,");
107111
+ var rc9 = false;
107112
+ var x2 = null;
107113
+ var x1 = $n($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass).Lio_kaitai_struct_format_ClassSpec__f_meta).Lio_kaitai_struct_format_MetaSpec__f_endian;
107114
+ matchEnd10: {
107115
+ if ((x1 instanceof $c_s_Some)) {
107116
+ rc9 = true;
107117
+ x2 = $as_s_Some(x1);
107118
+ var p3 = $as_Lio_kaitai_struct_datatype_Endianness($n(x2).s_Some__f_value);
107119
+ var x = $m_Lio_kaitai_struct_datatype_InheritedEndian$();
107120
+ if ((x === p3)) {
107121
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_is_le: ?bool,");
107122
+ break matchEnd10
107123
+ }
107124
+ };
107125
+ if ((rc9 && ($n(x2).s_Some__f_value instanceof $c_Lio_kaitai_struct_datatype_CalcEndian))) {
107126
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_is_le: ?bool = null,");
107127
+ break matchEnd10
107128
+ }
107129
+ };
107130
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107131
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("};")
107132
+ });
107133
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classConstructorHeader__T__Lio_kaitai_struct_datatype_DataType__T__Z__sci_List__V = (function(name, parentType, rootClassName, isHybrid, params) {
107134
+ var $$x2 = $m_Lio_kaitai_struct_Utils$();
107135
+ var this$2 = $n(params);
107136
+ var f = ((p$2) => {
107137
+ var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
107138
+ var id = $n(p).Lio_kaitai_struct_format_ParamDefSpec__f_id;
107139
+ return (($m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id) + ": ") + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T($n(p).Lio_kaitai_struct_format_ParamDefSpec__f_dataType))
107140
+ });
107141
+ if ((this$2 === $m_sci_Nil$())) {
107142
+ var $$x1 = $m_sci_Nil$()
107143
+ } else {
107144
+ var arg1 = this$2.head__O();
107145
+ var h = new $c_sci_$colon$colon(f(arg1), $m_sci_Nil$());
107146
+ var t = h;
107147
+ var rest = $as_sci_List(this$2.tail__O());
107148
+ while ((rest !== $m_sci_Nil$())) {
107149
+ var arg1$1 = $n(rest).head__O();
107150
+ var nx = new $c_sci_$colon$colon(f(arg1$1), $m_sci_Nil$());
107151
+ $n(t).sci_$colon$colon__f_next = nx;
107152
+ t = nx;
107153
+ rest = $as_sci_List($n(rest).tail__O())
107154
+ };
107155
+ var $$x1 = h
107156
+ };
107157
+ var paramsArg = $n($$x2).join__sc_IterableOnce__T__T__T__T($$x1, ", ", ", ", "");
107158
+ var endianSuffix = (isHybrid ? ", _is_le: ?bool" : "");
107159
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((((((("pub fn create(_arena: *_imp_std.heap.ArenaAllocator, _io: *_imp_kaitai_struct.KaitaiStream, _parent: ?" + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(parentType)) + ", _root: ?*") + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(rootClassName)) + endianSuffix) + paramsArg) + ") !*") + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)) + " {"));
107160
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107161
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("const self = try _arena.allocator().create(" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)) + ");"));
107162
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("self.* = .{");
107163
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107164
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("._arena = _arena,");
107165
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("._io = _io,");
107166
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("._parent = _parent,");
107167
+ if ((name === rootClassName)) {
107168
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("._root = _root orelse self,")
107169
+ } else {
107170
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("._root = _root,")
107171
+ };
107172
+ if (isHybrid) {
107173
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("._is_le = _is_le,")
107174
+ };
107175
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107176
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("};");
107177
+ var this$3 = $n(params);
107178
+ var these = this$3;
107179
+ while ((!$n(these).isEmpty__Z())) {
107180
+ var arg1$2 = $n(these).head__O();
107181
+ var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$2);
107182
+ var $$x3 = $n(p$3).Lio_kaitai_struct_format_ParamDefSpec__f_id;
107183
+ var id$1 = $n(p$3).Lio_kaitai_struct_format_ParamDefSpec__f_id;
107184
+ this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V($$x3, $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
107185
+ these = $as_sci_List($n(these).tail__O())
107186
+ }
107187
+ });
107188
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classConstructorFooter__V = (function() {
107189
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("return self;");
107190
+ this.universalFooter__V();
107191
+ var $$x1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107192
+ var name = $as_T($n($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass).Lio_kaitai_struct_format_ClassSpec__f_name).last__O());
107193
+ $n($$x1).puts__T__V((("fn _allocator(self: *const " + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)) + ") _imp_std.mem.Allocator {"));
107194
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107195
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("return self._arena.allocator();");
107196
+ this.universalFooter__V()
107197
+ });
107198
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.runRead__sci_List__V = (function(name) {
107199
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("try self._read();")
107200
+ });
107201
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.runReadCalc__V = (function() {
107202
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("if (self._is_le == true) {");
107203
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107204
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("try self._readLE();");
107205
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107206
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("} else if (self._is_le == false) {");
107207
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107208
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("try self._readBE();");
107209
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107210
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("} else {");
107211
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107212
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("return " + this.ksErrorName__Lio_kaitai_struct_datatype_KSError__T($m_Lio_kaitai_struct_datatype_UndecidedEndiannessError$())) + ";"));
107213
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107214
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107215
+ });
107216
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.readHeader__s_Option__Z__V = (function(endian, isEmpty) {
107217
+ var name = $as_T($n($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass).Lio_kaitai_struct_format_ClassSpec__f_name).last__O());
107218
+ var className = $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name);
107219
+ if ((endian instanceof $c_s_Some)) {
107220
+ var x2 = $as_s_Some(endian);
107221
+ var e = $as_Lio_kaitai_struct_datatype_FixedEndian($n(x2).s_Some__f_value);
107222
+ var $$x1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107223
+ $m_Lio_kaitai_struct_Utils$();
107224
+ var s = $n(e).toSuffix__T();
107225
+ var this$3 = $n(s);
107226
+ $n($$x1).puts__T__V((((("fn _read" + $as_T(this$3.toUpperCase())) + "(self: *") + className) + ") !void {"))
107227
+ } else {
107228
+ var x = $m_s_None$();
107229
+ if ((x === endian)) {
107230
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((((!$n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_autoRead) ? "pub " : "") + "fn _read(self: *") + className) + ") !void {"))
107231
+ } else {
107232
+ throw new $c_s_MatchError(endian)
107233
+ }
107234
+ };
107235
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107236
+ if (isEmpty) {
107237
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_ = self;")
107238
+ }
107239
+ });
107240
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attributeDeclaration__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
107241
+ if ((attrName instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
107242
+ return (void 0)
107243
+ };
107244
+ var x$2 = $m_Lio_kaitai_struct_format_RootIdentifier$();
107245
+ if (((attrName !== null) && $n(attrName).equals__O__Z(x$2))) {
107246
+ var $$x1 = true
107247
+ } else {
107248
+ var x$4 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
107249
+ var $$x1 = ((attrName !== null) && $n(attrName).equals__O__Z(x$4))
107250
+ };
107251
+ if ($$x1) {
107252
+ var isNullableCorrected = true
107253
+ } else {
107254
+ var isNullableCorrected = isNullable
107255
+ };
107256
+ var x$6 = $m_Lio_kaitai_struct_format_RootIdentifier$();
107257
+ if (((attrName !== null) && $n(attrName).equals__O__Z(x$6))) {
107258
+ var $$x2 = true
107259
+ } else {
107260
+ var x$8 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
107261
+ var $$x2 = ((attrName !== null) && $n(attrName).equals__O__Z(x$8))
107262
+ };
107263
+ if ($$x2) {
107264
+ var defaultValue = ""
107265
+ } else {
107266
+ var defaultValue = (isNullable ? " = null" : " = undefined")
107267
+ };
107268
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((($m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + ": ") + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullableCorrected)) + defaultValue) + ","))
107269
+ });
107270
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
107271
+ /*<skip>*/
107272
+ });
107273
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.universalDoc__Lio_kaitai_struct_format_DocSpec__V = (function(doc) {
107274
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107275
+ $n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
107276
+ var this$2 = $n($n(doc).Lio_kaitai_struct_format_DocSpec__f_summary);
107277
+ if ((!this$2.isEmpty__Z())) {
107278
+ var arg1 = this$2.get__O();
107279
+ var summary = $as_T(arg1);
107280
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).putsLines__T__T__T__V("/// ", summary, ($n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out), ""))
107281
+ };
107282
+ var this$3 = $n($n(doc).Lio_kaitai_struct_format_DocSpec__f_ref);
107283
+ if ((!this$3.isEmpty__Z())) {
107284
+ var this$4 = $n($n(doc).Lio_kaitai_struct_format_DocSpec__f_summary);
107285
+ if ((!this$4.isEmpty__Z())) {
107286
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("///")
107287
+ };
107288
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("/// See also:");
107289
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("///")
107290
+ };
107291
+ var this$5 = $n($n(doc).Lio_kaitai_struct_format_DocSpec__f_ref);
107292
+ var these = this$5;
107293
+ while ((!$n(these).isEmpty__Z())) {
107294
+ var arg1$1 = $n(these).head__O();
107295
+ var x0$1 = $as_Lio_kaitai_struct_format_RefSpec(arg1$1);
107296
+ if ((x0$1 instanceof $c_Lio_kaitai_struct_format_TextRef)) {
107297
+ var x2 = $as_Lio_kaitai_struct_format_TextRef(x0$1);
107298
+ var text = $n(x2).Lio_kaitai_struct_format_TextRef__f_text;
107299
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).putsLines__T__T__T__V("/// ", ("* " + text), " ")
107300
+ } else if ((x0$1 instanceof $c_Lio_kaitai_struct_format_UrlRef)) {
107301
+ var x3 = $as_Lio_kaitai_struct_format_UrlRef(x0$1);
107302
+ var url = $n(x3).Lio_kaitai_struct_format_UrlRef__f_url;
107303
+ var text$2 = $n(x3).Lio_kaitai_struct_format_UrlRef__f_text;
107304
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).putsLines__T__T__T__V("/// ", (((("* [" + text$2) + "](") + url) + ")"), " ")
107305
+ } else {
107306
+ throw new $c_s_MatchError(x0$1)
107307
+ };
107308
+ these = $as_sci_List($n(these).tail__O())
107309
+ }
107310
+ });
107311
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrParseHybrid__F0__F0__V = (function(leProc, beProc) {
107312
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("if (self._is_le.?) {");
107313
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107314
+ var this$1 = $n(leProc);
107315
+ this$1.apply__O();
107316
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107317
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("} else {");
107318
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107319
+ var this$2 = $n(beProc);
107320
+ this$2.apply__O();
107321
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107322
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107323
+ });
107324
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrProcess__Lio_kaitai_struct_format_ProcessExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__V = (function(proc, varSrc, varDest, rep) {
107325
+ var srcExpr = $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc);
107326
+ var minArgs = ("self._allocator(), " + srcExpr);
107327
+ if ((proc instanceof $c_Lio_kaitai_struct_format_ProcessXor)) {
107328
+ var x2 = $as_Lio_kaitai_struct_format_ProcessXor(proc);
107329
+ var xorValue = $n(x2).Lio_kaitai_struct_format_ProcessXor__f_key;
107330
+ var x1$2 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(xorValue);
107331
+ if ((x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
107332
+ var procName = "processXorOne"
107333
+ } else {
107334
+ if ((!(x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType))) {
107335
+ throw new $c_s_MatchError(x1$2)
107336
+ };
107337
+ var procName = "processXorMany"
107338
+ };
107339
+ var x1$3 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(xorValue);
107340
+ var xorValueStr = ((x1$3 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) ? $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator).doCast__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__T(xorValue, new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false)) : $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, xorValue));
107341
+ var expr$2 = (((((("try _imp_kaitai_struct.KaitaiStream." + procName) + "(") + minArgs) + ", ") + xorValueStr) + ")")
107342
+ } else {
107343
+ var x = $m_Lio_kaitai_struct_format_ProcessZlib$();
107344
+ if ((x === proc)) {
107345
+ var expr$2 = (("try _imp_kaitai_struct.KaitaiStream.processZlib(" + minArgs) + ")")
107346
+ } else if ((proc instanceof $c_Lio_kaitai_struct_format_ProcessRotate)) {
107347
+ var x4 = $as_Lio_kaitai_struct_format_ProcessRotate(proc);
107348
+ var isLeft = $n(x4).Lio_kaitai_struct_format_ProcessRotate__f_left;
107349
+ var rotValue = $n(x4).Lio_kaitai_struct_format_ProcessRotate__f_key;
107350
+ var expr = (isLeft ? $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, rotValue) : (("8 - (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, rotValue)) + ")"));
107351
+ var expr$2 = (((("try _imp_kaitai_struct.KaitaiStream.processRotateLeft(" + minArgs) + ", ") + expr) + ")")
107352
+ } else {
107353
+ if ((!(proc instanceof $c_Lio_kaitai_struct_format_ProcessCustom))) {
107354
+ throw new $c_s_MatchError(proc)
107355
+ };
107356
+ var x5 = $as_Lio_kaitai_struct_format_ProcessCustom(proc);
107357
+ var name = $n(x5).Lio_kaitai_struct_format_ProcessCustom__f_name;
107358
+ var args = $n(x5).Lio_kaitai_struct_format_ProcessCustom__f_args;
107359
+ var this$1 = $n($as_sc_IterableOnceOps($n(name).init__O()));
107360
+ var namespace = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, "", ".", "");
107361
+ $m_sc_StringOps$();
107362
+ var this$4 = $n(namespace);
107363
+ if ((!(this$4 === ""))) {
107364
+ var $$x1 = "."
107365
+ } else {
107366
+ var $$x1 = ""
107367
+ };
107368
+ var name$1 = $as_T($n(name).last__O());
107369
+ var procClass = ((namespace + $$x1) + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$1));
107370
+ var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
107371
+ var $$x2 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107372
+ var this$6 = $n($as_sc_IterableOnceOps($n(args).map__F1__O(new $c_sjsr_AnonFunction1(((e$2) => {
107373
+ var e = $as_Lio_kaitai_struct_exprlang_Ast$expr(e$2);
107374
+ return $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e)
107375
+ })))));
107376
+ $n($$x2).puts__T__V((((((((procClass + " ") + procName$2) + " = new ") + procClass) + "(") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$6, "", ", ", "")) + ");"));
107377
+ var expr$2 = (((procName$2 + ".decode(") + minArgs) + ")")
107378
+ }
107379
+ };
107380
+ this.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(varDest, expr$2, rep, false)
107381
+ });
107382
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
107383
+ var id = new $c_Lio_kaitai_struct_format_IoStorageIdentifier(varName);
107384
+ var ioName = $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id);
107385
+ var args = $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
107386
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("const " + ioName) + " = try self._allocator().create(_imp_kaitai_struct.KaitaiStream);"));
107387
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((ioName + ".* = _imp_kaitai_struct.KaitaiStream.fromBytes(") + args) + ");"));
107388
+ return ioName
107389
+ });
107390
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.useIO__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(ioEx) {
107391
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("const io = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, ioEx)) + ";"));
107392
+ return "io"
107393
+ });
107394
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.pushPos__T__V = (function(io) {
107395
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("const _pos = " + io) + ".pos();"))
107396
+ });
107397
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
107398
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("try " + io) + ".seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ");"))
107399
+ });
107400
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.popPos__T__V = (function(io) {
107401
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("try " + io) + ".seek(_pos);"))
107402
+ });
107403
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.alignToByte__T__V = (function(io) {
107404
+ /*<skip>*/
107405
+ });
107406
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condIfHeader__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
107407
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expr)) + ") {"));
107408
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107409
+ });
107410
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatInitAttr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType) {
107411
+ if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
107412
+ return (void 0)
107413
+ };
107414
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V(((($m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + " = try self._allocator().create(_imp_std.ArrayList(") + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)) + "));"));
107415
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V(($m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + ".* = .empty;"))
107416
+ });
107417
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
107418
+ if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
107419
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("const " + $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + " = ") + expr) + ";"))
107420
+ } else {
107421
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
107422
+ }
107423
+ });
107424
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
107425
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("{");
107426
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107427
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("var i: usize = 0;");
107428
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("while (!try " + io) + ".isEof()) : (i += 1) {"));
107429
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107430
+ });
107431
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.handleAssignmentRepeatEos__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
107432
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("try " + $m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)) + ".append(self._allocator(), ") + expr) + ");"))
107433
+ });
107434
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatEosFooter__V = (function() {
107435
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107436
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}");
107437
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107438
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107439
+ });
107440
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
107441
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("for (0.." + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ") |i| {"));
107442
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107443
+ this.blockScopeHeader__V();
107444
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("const _maybe_unused = i;");
107445
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_ = _maybe_unused;");
107446
+ this.universalFooter__V()
107447
+ });
107448
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.handleAssignmentRepeatExpr__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
107449
+ this.handleAssignmentRepeatEos__Lio_kaitai_struct_format_Identifier__T__V(id, expr)
107450
+ });
107451
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatUntilHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
107452
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("{");
107453
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107454
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("var i: usize = 0;");
107455
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("while (true) : (i += 1) {");
107456
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107457
+ });
107458
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.handleAssignmentRepeatUntil__Lio_kaitai_struct_format_Identifier__T__Z__V = (function(id, expr, isRaw) {
107459
+ var tmpName = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator).doLocalName__T__T((isRaw ? $m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR2 : $m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR));
107460
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("const " + tmpName) + " = ") + expr) + ";"));
107461
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("try " + $m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)) + ".append(self._allocator(), ") + tmpName) + ");"))
107462
+ });
107463
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condRepeatUntilFooter__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
107464
+ $n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f__currentIteratorType = new $c_s_Some(dataType);
107465
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, untilExpr)) + ") {"));
107466
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107467
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("break;");
107468
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107469
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}");
107470
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107471
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}");
107472
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107473
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107474
+ });
107475
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
107476
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V(((($m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + " = ") + expr) + ";"))
107477
+ });
107478
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
107479
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("const " + id) + " = ") + expr) + ";"))
107480
+ });
107481
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.blockScopeHeader__V = (function() {
107482
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("{");
107483
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107484
+ });
107485
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.blockScopeFooter__V = (function() {
107486
+ this.universalFooter__V()
107487
+ });
107488
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.parseExpr__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__T__s_Option__T = (function(dataType, assignType, io, defEndian) {
107489
+ if ($is_Lio_kaitai_struct_datatype_DataType$ReadableType(dataType)) {
107490
+ var x2 = $as_Lio_kaitai_struct_datatype_DataType$ReadableType(dataType);
107491
+ var expr = (((io + ".read") + $m_Lio_kaitai_struct_Utils$().capitalize__T__T($n(x2).apiCall__s_Option__T(defEndian))) + "()")
107492
+ } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesLimitType)) {
107493
+ var x3 = $as_Lio_kaitai_struct_datatype_DataType$BytesLimitType(dataType);
107494
+ var e = $n(x3).Lio_kaitai_struct_datatype_DataType$BytesLimitType__f_size;
107495
+ var expr = (((io + ".readBytes(self._allocator(), ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e)) + ")")
107496
+ } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesEosType)) {
107497
+ var expr = (io + ".readBytesFull(self._allocator())")
107498
+ } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesTerminatedType)) {
107499
+ var x5 = $as_Lio_kaitai_struct_datatype_DataType$BytesTerminatedType(dataType);
107500
+ var terminator = $n(x5).Lio_kaitai_struct_datatype_DataType$BytesTerminatedType__f_terminator;
107501
+ var include = $n(x5).Lio_kaitai_struct_datatype_DataType$BytesTerminatedType__f_include;
107502
+ var consume = $n(x5).Lio_kaitai_struct_datatype_DataType$BytesTerminatedType__f_consume;
107503
+ var eosError = $n(x5).Lio_kaitai_struct_datatype_DataType$BytesTerminatedType__f_eosError;
107504
+ if (($n(terminator).length__I() === 1)) {
107505
+ var term = (255 & $uB($n(terminator).head__O()));
107506
+ var expr = (((((((((io + ".readBytesTerm(self._allocator(), ") + term) + ", ") + include) + ", ") + consume) + ", ") + eosError) + ")")
107507
+ } else {
107508
+ var expr = (((((((((io + ".readBytesTermMulti(self._allocator(), ") + $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator).doByteArrayLiteral__sci_Seq__T(terminator)) + ", ") + include) + ", ") + consume) + ", ") + eosError) + ")")
107509
+ }
107510
+ } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType1)) {
107511
+ var x7 = $as_Lio_kaitai_struct_datatype_DataType$BitsType1(dataType);
107512
+ var bitEndian = $n(x7).Lio_kaitai_struct_datatype_DataType$BitsType1__f_bitEndian;
107513
+ var expr = (((io + ".readBitsInt") + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T($n(bitEndian).toSuffix__T())) + "(1) != 0")
107514
+ } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType)) {
107515
+ var x8 = $as_Lio_kaitai_struct_datatype_DataType$BitsType(dataType);
107516
+ var width = $n(x8).Lio_kaitai_struct_datatype_DataType$BitsType__f_width;
107517
+ var bitEndian$2 = $n(x8).Lio_kaitai_struct_datatype_DataType$BitsType__f_bitEndian;
107518
+ var expr = (((((io + ".readBitsInt") + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T($n(bitEndian$2).toSuffix__T())) + "(") + width) + ")")
107519
+ } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
107520
+ var x10 = $as_Lio_kaitai_struct_datatype_DataType$UserType(dataType);
107521
+ if ($n(x10).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) {
107522
+ var x1$3___1 = "null";
107523
+ var x1$3___2 = "null"
107524
+ } else {
107525
+ var rc8 = false;
107526
+ var x2$2 = null;
107527
+ var x1$2 = $n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_forcedParent;
107528
+ matchEnd9: {
107529
+ var parent;
107530
+ if ((x1$2 instanceof $c_s_Some)) {
107531
+ rc8 = true;
107532
+ x2$2 = $as_s_Some(x1$2);
107533
+ var p3 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2$2).s_Some__f_value);
107534
+ var x = $m_Lio_kaitai_struct_datatype_DataType$().Lio_kaitai_struct_datatype_DataType$__f_USER_TYPE_NO_PARENT;
107535
+ if (((x === null) ? (p3 === null) : $n(x).equals__O__Z(p3))) {
107536
+ var parent = "null";
107537
+ break matchEnd9
107538
+ }
107539
+ };
107540
+ if (rc8) {
107541
+ var fp = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2$2).s_Some__f_value);
107542
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator);
107543
+ var parent = this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(fp, 0);
107544
+ break matchEnd9
107545
+ };
107546
+ var x$3 = $m_s_None$();
107547
+ if ((x$3 === x1$2)) {
107548
+ var parent = "self";
107549
+ break matchEnd9
107550
+ };
107551
+ throw new $c_s_MatchError(x1$2)
107552
+ };
107553
+ var x1$3___1 = parent;
107554
+ var x1$3___2 = "self._root"
107555
+ };
107556
+ var parent$2 = $as_T(x1$3___1);
107557
+ var root = $as_T(x1$3___2);
107558
+ var x1$4 = $n($n($as_Lio_kaitai_struct_format_ClassSpec($n($n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_classSpec).get__O())).Lio_kaitai_struct_format_ClassSpec__f_meta).Lio_kaitai_struct_format_MetaSpec__f_endian;
107559
+ matchEnd6: {
107560
+ var addEndian;
107561
+ if ((x1$4 instanceof $c_s_Some)) {
107562
+ var x2$3 = $as_s_Some(x1$4);
107563
+ var p3$2 = $as_Lio_kaitai_struct_datatype_Endianness($n(x2$3).s_Some__f_value);
107564
+ var x$5 = $m_Lio_kaitai_struct_datatype_InheritedEndian$();
107565
+ if ((x$5 === p3$2)) {
107566
+ var addEndian = ", self._is_le";
107567
+ break matchEnd6
107568
+ }
107569
+ };
107570
+ var addEndian = ""
107571
+ };
107572
+ var addParams = $m_Lio_kaitai_struct_Utils$().join__sc_IterableOnce__T__T__T__T($as_sc_IterableOnce($n($n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_args).map__F1__O(new $c_sjsr_AnonFunction1(((a$2) => {
107573
+ var a = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$2);
107574
+ var this$3 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator);
107575
+ return this$3.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 0)
107576
+ })))), ", ", ", ", "");
107577
+ var expr = ((((((((($m_Lio_kaitai_struct_languages_ZigCompiler$().types2class__sci_List__Z__T($n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_name, $n(x10).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) + ".create(self._arena, ") + io) + ", ") + parent$2) + ", ") + root) + addEndian) + addParams) + ")")
107578
+ } else {
107579
+ var expr;
107580
+ throw new $c_s_MatchError(dataType)
107581
+ };
107582
+ return ("try " + expr)
107583
+ });
107584
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
107585
+ matchEnd4: {
107586
+ var expr1;
107587
+ if ((padRight instanceof $c_s_Some)) {
107588
+ var x2 = $as_s_Some(padRight);
107589
+ var padByte = $uI($n(x2).s_Some__f_value);
107590
+ var this$1 = $n(terminator);
107591
+ if (this$1.isEmpty__Z()) {
107592
+ var $$x1 = $m_s_None$()
107593
+ } else {
107594
+ var arg1 = this$1.get__O();
107595
+ var term = $as_sci_Seq(arg1);
107596
+ var $$x1 = new $c_s_Some((padByte !== (255 & $uB($n(term).last__O()))))
107597
+ };
107598
+ var this$2 = $n($$x1);
107599
+ if ($uZ((this$2.isEmpty__Z() || this$2.get__O()))) {
107600
+ var expr1 = (((("_imp_kaitai_struct.KaitaiStream.bytesStripRight(" + expr0) + ", ") + padByte) + ")");
107601
+ break matchEnd4
107602
+ }
107603
+ };
107604
+ var expr1 = expr0
107605
+ };
107606
+ if ((terminator instanceof $c_s_Some)) {
107607
+ var x2$2 = $as_s_Some(terminator);
107608
+ var term$3 = $as_sci_Seq($n(x2$2).s_Some__f_value);
107609
+ if (($n(term$3).length__I() === 1)) {
107610
+ var t = (255 & $uB($n(term$3).head__O()));
107611
+ var expr2 = (((((("_imp_kaitai_struct.KaitaiStream.bytesTerminate(" + expr1) + ", ") + t) + ", ") + include) + ")")
107612
+ } else {
107613
+ var expr2 = (((((("_imp_kaitai_struct.KaitaiStream.bytesTerminateMulti(" + expr1) + ", ") + $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator).doByteArrayLiteral__sci_Seq__T(term$3)) + ", ") + include) + ")")
107614
+ }
107615
+ } else {
107616
+ var x = $m_s_None$();
107617
+ if ((!(x === terminator))) {
107618
+ throw new $c_s_MatchError(terminator)
107619
+ };
107620
+ var expr2 = expr1
107621
+ };
107622
+ return expr2
107623
+ });
107624
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
107625
+ var expr = ((!((assignType === null) ? (dataType === null) : $n(assignType).equals__O__Z(dataType))) ? (((("@as(" + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)) + ", ") + id) + ")") : id);
107626
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((expr + "._read();"))
107627
+ });
107628
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
107629
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("try {");
107630
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107631
+ var this$1 = $n(tryBlock);
107632
+ this$1.apply__O();
107633
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107634
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("} finally {");
107635
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107636
+ var this$2 = $n(finallyBlock);
107637
+ this$2.apply__O();
107638
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107639
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107640
+ });
107641
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCasesRender__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__sci_Map__F1__F1__V = (function(id, on, cases, normalCaseProc, elseCaseProc) {
107642
+ this.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V(id, on);
107643
+ var first = new $c_sr_BooleanRef(true);
107644
+ $n(cases).foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$1$2) => {
107645
+ var x0$1 = $as_T2(x0$1$2);
107646
+ if ((x0$1 !== null)) {
107647
+ var condition = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x0$1)._1__O());
107648
+ var result = $n(x0$1)._2__O();
107649
+ var x = $m_Lio_kaitai_struct_datatype_DataType$SwitchType$().Lio_kaitai_struct_datatype_DataType$SwitchType$__f_ELSE_CONST;
107650
+ if ((!((x === null) ? (condition === null) : $n(x).equals__O__Z(condition)))) {
107651
+ if (first.sr_BooleanRef__f_elem) {
107652
+ this.switchCaseStart__Lio_kaitai_struct_exprlang_Ast$expr__V(condition);
107653
+ first.sr_BooleanRef__f_elem = false
107654
+ } else {
107655
+ this.switchCaseStart__Lio_kaitai_struct_exprlang_Ast$expr__V(condition)
107656
+ };
107657
+ $n(normalCaseProc).apply__O__O(result);
107658
+ this.switchCaseEnd__V()
107659
+ }
107660
+ } else {
107661
+ throw new $c_s_MatchError(x0$1)
107662
+ }
107663
+ })));
107664
+ this.switchElseStart__V();
107665
+ var this$3 = $n($n(cases).get__O__s_Option($m_Lio_kaitai_struct_datatype_DataType$SwitchType$().Lio_kaitai_struct_datatype_DataType$SwitchType$__f_ELSE_CONST));
107666
+ if ((!this$3.isEmpty__Z())) {
107667
+ var arg1 = this$3.get__O();
107668
+ $n(elseCaseProc).apply__O__O(arg1)
107669
+ };
107670
+ this.switchCaseEnd__V();
107671
+ this.universalFooter__V()
107672
+ });
107673
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchRequiresIfs__Lio_kaitai_struct_datatype_DataType__Z = (function(onType) {
107674
+ return (!((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) || (onType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)))
107675
+ });
107676
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
107677
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("switch (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ") {"));
107678
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107679
+ });
107680
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCaseFirstStart__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(condition) {
107681
+ this.switchCaseStart__Lio_kaitai_struct_exprlang_Ast$expr__V(condition)
107682
+ });
107683
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCaseStart__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(condition) {
107684
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V(($f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, condition) + " => {"));
107685
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107686
+ });
107687
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCaseEnd__V = (function() {
107688
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107689
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("},")
107690
+ });
107691
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchElseStart__V = (function() {
107692
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("else => {");
107693
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107694
+ });
107695
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchEnd__V = (function() {
107696
+ this.universalFooter__V()
107697
+ });
107698
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
107699
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("{");
107700
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107701
+ var $$x1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107702
+ var e = this.Lio_kaitai_struct_languages_ZigCompiler__f_NAME_SWITCH_ON;
107703
+ $n($$x1).puts__T__V((((("const " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e)) + " = ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ";"))
107704
+ });
107705
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchCmpExpr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(condition) {
107706
+ var e = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare(this.Lio_kaitai_struct_languages_ZigCompiler__f_NAME_SWITCH_ON, $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$(), condition);
107707
+ return $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e)
107708
+ });
107709
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchIfCaseFirstStart__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(condition) {
107710
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("if (" + this.switchCmpExpr__Lio_kaitai_struct_exprlang_Ast$expr__T(condition)) + ") {"));
107711
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107712
+ });
107713
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchIfCaseStart__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(condition) {
107714
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("else if (" + this.switchCmpExpr__Lio_kaitai_struct_exprlang_Ast$expr__T(condition)) + ") {"));
107715
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107716
+ });
107717
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchIfCaseEnd__V = (function() {
107718
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107719
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107720
+ });
107721
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchIfElseStart__V = (function() {
107722
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("else {");
107723
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107724
+ });
107725
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.switchIfEnd__V = (function() {
107726
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107727
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107728
+ });
107729
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
107730
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V(((($m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + ": ?") + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " = null,"))
107731
+ });
107732
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
107733
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((((("pub fn " + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "(self: *") + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(className)) + ") !") + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType, isNullable)) + " {"));
107734
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107735
+ });
107736
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
107737
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("if (self." + $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + ") |_v|"));
107738
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107739
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("return _v;");
107740
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V()
107741
+ });
107742
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceTempVarDeclaration__Lio_kaitai_struct_datatype_DataType__Z__V = (function(dataType, isNullable) {
107743
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("var _v: " + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)) + " = undefined;"))
107744
+ });
107745
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
107746
+ if (isNullable) {
107747
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("if (_n) {");
107748
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107749
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((((("self." + $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " = @as(") + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + ", null);"));
107750
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("return null;");
107751
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107752
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("} else {");
107753
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V()
107754
+ };
107755
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("self." + $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " = _v;"));
107756
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("return _v;");
107757
+ if (isNullable) {
107758
+ this.universalFooter__V()
107759
+ }
107760
+ });
107761
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condIfSetNull__Lio_kaitai_struct_format_Identifier__V = (function(instName) {
107762
+ if ((!(instName instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier))) {
107763
+ return (void 0)
107764
+ };
107765
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("var _n = true;")
107766
+ });
107767
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.condIfSetNonNull__Lio_kaitai_struct_format_Identifier__V = (function(instName) {
107768
+ if ((!(instName instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier))) {
107769
+ return (void 0)
107770
+ };
107771
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_n = false;")
107772
+ });
107773
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.enumDeclaration__T__T__sci_Seq__V = (function(curClass, enumName, enumColl) {
107774
+ var enumClass = $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(enumName);
107775
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V((("pub const " + enumClass) + " = enum(i32) {"));
107776
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107777
+ $n(enumColl).foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$1$2) => {
107778
+ var x0$1 = $as_T2(x0$1$2);
107779
+ if ((x0$1 !== null)) {
107780
+ var this$2 = $n(x0$1);
107781
+ var t = $uJ(this$2._1__O());
107782
+ var lo = t.RTLong__f_lo;
107783
+ var hi = t.RTLong__f_hi;
107784
+ var label = $as_T($n(x0$1)._2__O());
107785
+ var $$x1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107786
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator);
107787
+ var this$3 = $m_s_math_BigInt$();
107788
+ var n = this$3.apply__J__s_math_BigInt(new $c_RTLong(lo, hi));
107789
+ $n($$x1).puts__T__V((((label + " = ") + $n(n).toString__T()) + ","))
107790
+ } else {
107791
+ throw new $c_s_MatchError(x0$1)
107792
+ }
107793
+ })));
107794
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("_,");
107795
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107796
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("};")
107797
+ });
107798
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.classToString__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(toStringExpr) {
107799
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107800
+ $n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
107801
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("@Override");
107802
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("public String toString() {");
107803
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).inc__V();
107804
+ var $$x1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out);
107805
+ var this$2 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator);
107806
+ $n($$x1).puts__T__V((("return " + this$2.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(toStringExpr, 0)) + ";"));
107807
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).dec__V();
107808
+ $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_out).puts__T__V("}")
107809
+ });
107810
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
107811
+ if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
107812
+ var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
107813
+ var name = $n(x2).Lio_kaitai_struct_format_InstanceIdentifier__f_name;
107814
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)
107815
+ } else {
107816
+ return $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
107817
+ }
107818
+ });
107819
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
107820
+ return $m_Lio_kaitai_struct_languages_ZigCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)
107821
+ });
107822
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
107823
+ return ("_t_" + $m_Lio_kaitai_struct_languages_ZigCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
107824
+ });
107825
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
107826
+ return $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__T(attrType, this.Lio_kaitai_struct_languages_ZigCompiler__f_importList, $n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)
107827
+ });
107828
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T = (function(attrType, isNullable) {
107829
+ return $m_Lio_kaitai_struct_languages_ZigCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_format_ClassSpec__Z__T(attrType, this.Lio_kaitai_struct_languages_ZigCompiler__f_importList, $n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass, isNullable)
107830
+ });
107831
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
107832
+ var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
107833
+ if ((x === err)) {
107834
+ return "error.EndOfStream"
107835
+ } else {
107836
+ var x$3 = $m_Lio_kaitai_struct_datatype_ConversionError$();
107837
+ if ((x$3 === err)) {
107838
+ return "NumberFormatException"
107839
+ } else {
107840
+ return ("error." + $n(err).name__T())
107841
+ }
107842
+ }
107843
+ });
107844
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__Z__Lio_kaitai_struct_exprlang_Ast$expr__s_Option__V = (function(attr, checkExpr, err, useIo, actual, expected) {
107845
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator);
107846
+ $p_Lio_kaitai_struct_languages_ZigCompiler__attrValidate__Lio_kaitai_struct_format_AttrLikeSpec__T__Lio_kaitai_struct_datatype_KSError__Z__Lio_kaitai_struct_exprlang_Ast$expr__s_Option__V(this, attr, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, useIo, actual, expected)
107847
+ });
107848
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__Z__V = (function(attr, et, valueExpr, err, useIo) {
107849
+ var this$1 = $n(this.Lio_kaitai_struct_languages_ZigCompiler__f_translator);
107850
+ $p_Lio_kaitai_struct_languages_ZigCompiler__attrValidate__Lio_kaitai_struct_format_AttrLikeSpec__T__Lio_kaitai_struct_datatype_KSError__Z__Lio_kaitai_struct_exprlang_Ast$expr__s_Option__V(this, attr, (this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0) + " == null"), err, useIo, valueExpr, $m_s_None$())
107851
+ });
107852
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.attrValidateExpr$default$6__s_Option = (function() {
107853
+ return $m_s_None$()
107854
+ });
107855
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.translator__Lio_kaitai_struct_translators_AbstractTranslator = (function() {
107856
+ return this.Lio_kaitai_struct_languages_ZigCompiler__f_translator
107857
+ });
107858
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.translator__Lio_kaitai_struct_translators_BaseTranslator = (function() {
107859
+ return this.Lio_kaitai_struct_languages_ZigCompiler__f_translator
107860
+ });
107861
+ var $d_Lio_kaitai_struct_languages_ZigCompiler = new $TypeData().initClass({
107862
+ Lio_kaitai_struct_languages_ZigCompiler: 0
107863
+ }, false, "io.kaitai.struct.languages.ZigCompiler", {
107864
+ Lio_kaitai_struct_languages_ZigCompiler: 1,
107865
+ Lio_kaitai_struct_languages_components_LanguageCompiler: 1,
107866
+ O: 1,
107867
+ Lio_kaitai_struct_languages_components_SwitchOps: 1,
107868
+ Lio_kaitai_struct_languages_components_ValidateOps: 1,
107869
+ Lio_kaitai_struct_languages_components_ExceptionNames: 1,
107870
+ Lio_kaitai_struct_languages_components_ExtraAttrs: 1,
107871
+ Lio_kaitai_struct_languages_components_SingleOutputFile: 1,
107872
+ Lio_kaitai_struct_languages_components_UpperCamelCaseClasses: 1,
107873
+ Lio_kaitai_struct_languages_components_ObjectOrientedLanguage: 1,
107874
+ Lio_kaitai_struct_languages_components_EveryReadIsExpression: 1,
107875
+ Lio_kaitai_struct_languages_components_CommonReads: 1,
107876
+ Lio_kaitai_struct_languages_components_UniversalFooter: 1,
107877
+ Lio_kaitai_struct_languages_components_UniversalDoc: 1,
107878
+ Lio_kaitai_struct_languages_components_AllocateIOLocalVar: 1,
107879
+ Lio_kaitai_struct_languages_components_SwitchIfOps: 1,
107880
+ Lio_kaitai_struct_languages_components_NoNeedForFullClassPath: 1
107881
+ });
107882
+ $c_Lio_kaitai_struct_languages_ZigCompiler.prototype.$classData = $d_Lio_kaitai_struct_languages_ZigCompiler;
106046
107883
  function $ct_sc_IndexedSeqView$DropRight__sc_IndexedSeqOps__I__($thiz, underlying, n) {
106047
107884
  $ct_sc_SeqView$DropRight__sc_SeqOps__I__($thiz, underlying, n);
106048
107885
  return $thiz
@@ -107615,6 +109452,9 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse2$default$7__s_Op
107615
109452
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, bt, io, rep, defEndian) {
107616
109453
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstream__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, bt, io, rep, defEndian)
107617
109454
  });
109455
+ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
109456
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
109457
+ });
107618
109458
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V = (function(attr, id, defEndian) {
107619
109459
  $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(this, attr, id, defEndian)
107620
109460
  });
@@ -108800,7 +110640,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__T__Lio_kai
108800
110640
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
108801
110641
  $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (" + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " != null)"));
108802
110642
  $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
108803
- this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
110643
+ this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, false);
108804
110644
  $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V()
108805
110645
  });
108806
110646
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceCheckWriteFlagAndWrite__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
@@ -108822,7 +110662,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHasValueIfHeader__
108822
110662
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHasValueIfFooter__V = (function() {
108823
110663
  this.universalFooter__V()
108824
110664
  });
108825
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
110665
+ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
108826
110666
  $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
108827
110667
  });
108828
110668
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
@@ -109288,6 +111128,9 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.createSubstream__Lio_kai
109288
111128
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
109289
111129
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
109290
111130
  });
111131
+ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V = (function(id, expr, rep, isRaw) {
111132
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, id, expr, rep, isRaw)
111133
+ });
109291
111134
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
109292
111135
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
109293
111136
  });
@@ -110257,7 +112100,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHasValueIfHeader
110257
112100
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHasValueIfFooter__V = (function() {
110258
112101
  this.universalFooter__V()
110259
112102
  });
110260
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
112103
+ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(instName, attrType, isNullable) {
110261
112104
  $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("return getattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', None)"))
110262
112105
  });
110263
112106
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceInvalidate__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
@@ -110847,6 +112690,9 @@ $c_sci_Map$Map1.prototype.updated__O__O__sci_Map = (function(key, value) {
110847
112690
  $c_sci_Map$Map1.prototype.foreach__F1__V = (function(f) {
110848
112691
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map1__f_key1, this.sci_Map$Map1__f_value1))
110849
112692
  });
112693
+ $c_sci_Map$Map1.prototype.exists__F1__Z = (function(p) {
112694
+ return $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map1__f_key1, this.sci_Map$Map1__f_value1)))
112695
+ });
110850
112696
  $c_sci_Map$Map1.prototype.forall__F1__Z = (function(p) {
110851
112697
  return $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map1__f_key1, this.sci_Map$Map1__f_value1)))
110852
112698
  });
@@ -110972,6 +112818,9 @@ $c_sci_Map$Map2.prototype.foreach__F1__V = (function(f) {
110972
112818
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$key1, this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$value1));
110973
112819
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$key2, this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$value2))
110974
112820
  });
112821
+ $c_sci_Map$Map2.prototype.exists__F1__Z = (function(p) {
112822
+ return ($uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$key1, this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$value1))) || $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$key2, this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$value2))))
112823
+ });
110975
112824
  $c_sci_Map$Map2.prototype.forall__F1__Z = (function(p) {
110976
112825
  return ($uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$key1, this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$value1))) && $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$key2, this.sci_Map$Map2__f_scala$collection$immutable$Map$Map2$$value2))))
110977
112826
  });
@@ -111140,6 +112989,9 @@ $c_sci_Map$Map3.prototype.foreach__F1__V = (function(f) {
111140
112989
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key2, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value2));
111141
112990
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key3, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value3))
111142
112991
  });
112992
+ $c_sci_Map$Map3.prototype.exists__F1__Z = (function(p) {
112993
+ return (($uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key1, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value1))) || $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key2, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value2)))) || $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key3, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value3))))
112994
+ });
111143
112995
  $c_sci_Map$Map3.prototype.forall__F1__Z = (function(p) {
111144
112996
  return (($uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key1, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value1))) && $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key2, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value2)))) && $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$key3, this.sci_Map$Map3__f_scala$collection$immutable$Map$Map3$$value3))))
111145
112997
  });
@@ -111349,6 +113201,9 @@ $c_sci_Map$Map4.prototype.foreach__F1__V = (function(f) {
111349
113201
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key3, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value3));
111350
113202
  $n(f).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key4, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value4))
111351
113203
  });
113204
+ $c_sci_Map$Map4.prototype.exists__F1__Z = (function(p) {
113205
+ return ((($uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key1, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value1))) || $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key2, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value2)))) || $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key3, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value3)))) || $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key4, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value4))))
113206
+ });
111352
113207
  $c_sci_Map$Map4.prototype.forall__F1__Z = (function(p) {
111353
113208
  return ((($uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key1, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value1))) && $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key2, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value2)))) && $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key3, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value3)))) && $uZ($n(p).apply__O__O($ct_T2__O__O__(new $c_T2(), this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$key4, this.sci_Map$Map4__f_scala$collection$immutable$Map$Map4$$value4))))
111354
113209
  });