kaitai-struct-compiler 0.11.0-SNAPSHOT20240303.235100.7be4a2b → 0.11.0-SNAPSHOT20240310.231805.6aef6fa

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.
@@ -2316,7 +2316,8 @@ $c_Lio_kaitai_struct_Main$.prototype.importAndPrecompile__Lio_kaitai_struct_form
2316
2316
  return $m_Lio_kaitai_struct_Main$().precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable(specs, config)
2317
2317
  })), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
2318
2318
  });
2319
- $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(specs, config) {
2319
+ $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(specs, conf) {
2320
+ new $c_Lio_kaitai_struct_precompile_MarkupClassNames(specs).run__sc_Iterable();
2320
2321
  var this$1 = $n(specs);
2321
2322
  var b = $m_scm_Iterable$().newBuilder__scm_Builder();
2322
2323
  var it = this$1.iterator__sc_Iterator();
@@ -2327,31 +2328,58 @@ $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassS
2327
2328
  if ((x0$1 === null)) {
2328
2329
  throw new $c_s_MatchError(x0$1)
2329
2330
  };
2330
- var classSpec = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
2331
- var xs = $m_Lio_kaitai_struct_Main$().precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_RuntimeConfig__sc_Iterable(specs, classSpec, config);
2331
+ var topClass = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
2332
+ var config = $p_Lio_kaitai_struct_Main$__updateConfigFromMeta__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig($m_Lio_kaitai_struct_Main$(), conf, $n(topClass).Lio_kaitai_struct_format_ClassSpec__f_meta);
2333
+ var xs = new $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, topClass, $n(config).Lio_kaitai_struct_RuntimeConfig__f_opaqueTypes).run__sc_Iterable();
2332
2334
  this$2.addAll__sc_IterableOnce__scm_Growable(xs)
2333
2335
  };
2334
- return $as_sc_Iterable($n(b).result__O())
2335
- });
2336
- $c_Lio_kaitai_struct_Main$.prototype.precompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_RuntimeConfig__sc_Iterable = (function(classSpecs, topClass, conf) {
2337
- var config = $p_Lio_kaitai_struct_Main$__updateConfigFromMeta__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig(this, conf, $n(topClass).Lio_kaitai_struct_format_ClassSpec__f_meta);
2338
- new $c_Lio_kaitai_struct_precompile_MarkupClassNames(classSpecs).run__sc_Iterable();
2339
- var resolveTypeProblems = new $c_Lio_kaitai_struct_precompile_ResolveTypes(classSpecs, $n(config).Lio_kaitai_struct_RuntimeConfig__f_opaqueTypes).run__sc_Iterable();
2340
- var this$1 = $n(resolveTypeProblems);
2341
- if ((!this$1.isEmpty__Z())) {
2336
+ var resolveTypeProblems = $as_scm_Iterable($n(b).result__O());
2337
+ var this$3 = $n(resolveTypeProblems);
2338
+ if ((!this$3.isEmpty__Z())) {
2342
2339
  return resolveTypeProblems
2343
2340
  };
2344
- new $c_Lio_kaitai_struct_precompile_ParentTypes(classSpecs).run__V();
2345
- new $c_Lio_kaitai_struct_precompile_SpecsValueTypeDerive(classSpecs).run__V();
2346
- new $c_Lio_kaitai_struct_precompile_CalculateSeqSizes(classSpecs).run__V();
2347
- var typeValidatorProblems = new $c_Lio_kaitai_struct_precompile_TypeValidator(classSpecs, topClass).run__sc_Iterable();
2348
- var styleWarnings = new $c_Lio_kaitai_struct_precompile_StyleCheckIds(classSpecs, topClass).run__sc_Iterable();
2349
- var encodingProblems = new $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames(classSpecs).run__sc_Iterable();
2350
- $n(topClass).Lio_kaitai_struct_format_ClassSpec__f_parentClass = $m_Lio_kaitai_struct_format_GenericStructClassSpec$();
2351
- var this$2 = $n(resolveTypeProblems);
2352
- var this$3 = $n($as_sc_IterableOps(this$2.concat__sc_IterableOnce__O(typeValidatorProblems)));
2353
- var this$4 = $n($as_sc_IterableOps(this$3.concat__sc_IterableOnce__O(styleWarnings)));
2354
- return $as_sc_Iterable(this$4.concat__sc_IterableOnce__O(encodingProblems))
2341
+ new $c_Lio_kaitai_struct_precompile_ParentTypes(specs).run__V();
2342
+ new $c_Lio_kaitai_struct_precompile_SpecsValueTypeDerive(specs).run__V();
2343
+ new $c_Lio_kaitai_struct_precompile_CalculateSeqSizes(specs).run__V();
2344
+ var typeValidatorProblems = new $c_Lio_kaitai_struct_precompile_TypeValidator(specs).run__sc_Iterable();
2345
+ var styleWarnings = new $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs).run__sc_Iterable();
2346
+ var encodingProblems = new $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames(specs).run__sc_Iterable();
2347
+ var this$4 = $n(specs);
2348
+ var len = $n(this$4.scm_HashMap__f_scala$collection$mutable$HashMap$$table).u.length;
2349
+ var i = 0;
2350
+ while ((i < len)) {
2351
+ var n = $n(this$4.scm_HashMap__f_scala$collection$mutable$HashMap$$table).get(i);
2352
+ if ((n !== null)) {
2353
+ var this$5 = $n(n);
2354
+ var _$this = this$5;
2355
+ while (true) {
2356
+ var _1 = $n(_$this).scm_HashMap$Node__f__key;
2357
+ var _2 = $n(_$this).scm_HashMap$Node__f__value;
2358
+ $as_T(_1);
2359
+ var typeSpec = $as_Lio_kaitai_struct_format_ClassSpec(_2);
2360
+ try {
2361
+ $n(typeSpec).Lio_kaitai_struct_format_ClassSpec__f_parentClass = $m_Lio_kaitai_struct_format_GenericStructClassSpec$()
2362
+ } catch (e) {
2363
+ if ((e instanceof $c_Lio_kaitai_struct_problems_CompilationProblemException)) {
2364
+ var cpe = $as_Lio_kaitai_struct_problems_CompilationProblemException(e);
2365
+ throw $n($n(cpe).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblemException(typeSpec))
2366
+ } else {
2367
+ throw e
2368
+ }
2369
+ };
2370
+ if (($n(_$this).scm_HashMap$Node__f__next !== null)) {
2371
+ _$this = $n(_$this).scm_HashMap$Node__f__next;
2372
+ continue
2373
+ };
2374
+ break
2375
+ }
2376
+ };
2377
+ i = ((1 + i) | 0)
2378
+ };
2379
+ var this$6 = $n(resolveTypeProblems);
2380
+ var this$7 = $n($as_sc_IterableOps(this$6.concat__sc_IterableOnce__O(typeValidatorProblems)));
2381
+ var this$8 = $n($as_sc_IterableOps(this$7.concat__sc_IterableOnce__O(styleWarnings)));
2382
+ return $as_sc_Iterable(this$8.concat__sc_IterableOnce__O(encodingProblems))
2355
2383
  });
2356
2384
  $c_Lio_kaitai_struct_Main$.prototype.compile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_languages_components_LanguageCompilerStatic__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_CompileLog$SpecSuccess = (function(specs, spec, lang, conf) {
2357
2385
  var config = $p_Lio_kaitai_struct_Main$__updateConfigFromMeta__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_RuntimeConfig(this, conf, $n(spec).Lio_kaitai_struct_format_ClassSpec__f_meta);
@@ -2898,16 +2926,24 @@ $c_Lio_kaitai_struct_Utils$.prototype.capitalize__T__T = (function(s) {
2898
2926
  } else {
2899
2927
  var this$2 = $n(s);
2900
2928
  var c = $charAt(this$2, 0);
2901
- var $$x1 = $m_jl_Character$().toUpperCase__C__C(c);
2902
- var this$5 = $n(s);
2903
- if ((this$5.length < 1)) {
2904
- $charAt(this$5, 1)
2929
+ var this$5 = $m_jl_Character$().toUpperCase__C__C(c);
2930
+ var $$x1 = $as_T(String.fromCharCode(this$5));
2931
+ var this$7 = $n(s);
2932
+ if ((this$7.length < 1)) {
2933
+ $charAt(this$7, 1)
2905
2934
  };
2906
- return (("" + $bC($$x1)) + $as_T(this$5.substring(1)))
2935
+ return (("" + $$x1) + $as_T(this$7.substring(1)))
2907
2936
  }
2908
2937
  });
2909
2938
  $c_Lio_kaitai_struct_Utils$.prototype.join__sc_IterableOnce__T__T__T__T = (function(coll, start, sep, end) {
2910
- return ($m_sc_IterableOnceExtensionMethods$().isEmpty$extension__sc_IterableOnce__Z(coll) ? "" : $m_sc_IterableOnceExtensionMethods$().mkString$extension__sc_IterableOnce__T__T__T__T(coll, start, sep, end))
2939
+ var it = $n(coll).iterator__sc_Iterator();
2940
+ var this$1 = $n(it);
2941
+ if ((!this$1.hasNext__Z())) {
2942
+ return ""
2943
+ } else {
2944
+ var this$2 = $n(it);
2945
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, start, sep, end)
2946
+ }
2911
2947
  });
2912
2948
  $c_Lio_kaitai_struct_Utils$.prototype.hexEscapeByteArray__sci_Seq__T = (function(arr) {
2913
2949
  var this$6 = $n($as_sc_IterableOnceOps($n(arr).map__F1__O(new $c_sjsr_AnonFunction1(((x$2) => {
@@ -2974,8 +3010,8 @@ function $m_Lio_kaitai_struct_Utils$() {
2974
3010
  function $c_Lio_kaitai_struct_Version$() {
2975
3011
  this.Lio_kaitai_struct_Version$__f_version = null;
2976
3012
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
2977
- this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240303.235100.7be4a2b";
2978
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-03T23:51:00+00:00"
3013
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240310.231805.6aef6fa";
3014
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-10T23:18:05+00:00"
2979
3015
  }
2980
3016
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
2981
3017
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -17117,8 +17153,11 @@ $c_Lio_kaitai_struct_format_JavaScriptKSYParser$.prototype.yamlJavascriptToScala
17117
17153
  var this$8 = new $c_sjs_js_WrappedDictionary(src);
17118
17154
  var this$7 = $m_s_$less$colon$less$();
17119
17155
  var this$9 = $n($m_sci_Map$().from__sc_IterableOnce__sci_Map(this$8));
17156
+ var this$10 = new $c_sc_MapView$Id(this$9);
17120
17157
  var f$1 = new $c_sjsr_AnonFunction1(((src$3$2) => $m_Lio_kaitai_struct_format_JavaScriptKSYParser$().yamlJavascriptToScala__O__O(src$3$2)));
17121
- return new $c_sc_MapView$MapValues(this$9, f$1)
17158
+ var this$12 = new $c_sc_MapView$MapValues(this$10, f$1);
17159
+ var this$11 = $m_s_$less$colon$less$();
17160
+ return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$12)
17122
17161
  }
17123
17162
  });
17124
17163
  var $d_Lio_kaitai_struct_format_JavaScriptKSYParser$ = new $TypeData().initClass({
@@ -18766,14 +18805,13 @@ function $p_Lio_kaitai_struct_precompile_LoadImports__loadImport__T__sci_List__s
18766
18805
  if ((name !== specName)) {
18767
18806
  $n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_importOps)
18768
18807
  };
18769
- if ((!$n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs).contains__O__Z(specName))) {
18808
+ $n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs);
18809
+ var isNew = (!$n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs).contains__O__Z(specName));
18810
+ if (isNew) {
18770
18811
  var this$5 = $n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs);
18771
- $p_scm_HashMap__put0__O__O__Z__s_Some(this$5, specName, spec, false);
18772
- return $thiz.processClass__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_precompile_LoadImports$ImportPath__s_concurrent_Future(spec, $m_Lio_kaitai_struct_precompile_LoadImports$ImportPath$().updateWorkDir__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath(workDir, impPath))
18773
- } else {
18774
- $n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_importOps);
18775
- return $m_s_concurrent_Future$().apply__F0__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction0((() => $m_sci_Nil$())), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
18776
- }
18812
+ $p_scm_HashMap__put0__O__O__Z__s_Some(this$5, specName, spec, false)
18813
+ };
18814
+ return (isNew ? $thiz.processClass__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_precompile_LoadImports$ImportPath__s_concurrent_Future(spec, $m_Lio_kaitai_struct_precompile_LoadImports$ImportPath$().updateWorkDir__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath(workDir, impPath)) : ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_importOps), $m_s_concurrent_Future$().apply__F0__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction0((() => $m_sci_Nil$())), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())))
18777
18815
  } else {
18778
18816
  var x = $m_s_None$();
18779
18817
  if ((x === x0$1)) {
@@ -19620,95 +19658,6 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
19620
19658
  } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
19621
19659
  var x5 = $as_Lio_kaitai_struct_datatype_DataType$UserType(valType);
19622
19660
  return $thiz.userTypeField__Lio_kaitai_struct_datatype_DataType$UserType__Lio_kaitai_struct_exprlang_Ast$expr__T__O(x5, value, $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name)
19623
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType)) {
19624
- var x1$3 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19625
- switch (x1$3) {
19626
- case "first": {
19627
- return $thiz.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19628
- break
19629
- }
19630
- case "last": {
19631
- return $thiz.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19632
- break
19633
- }
19634
- case "length":
19635
- case "size": {
19636
- return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19637
- break
19638
- }
19639
- case "min": {
19640
- return $thiz.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19641
- break
19642
- }
19643
- case "max": {
19644
- return $thiz.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19645
- break
19646
- }
19647
- default: {
19648
- throw new $c_s_MatchError(x1$3)
19649
- }
19650
- }
19651
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)) {
19652
- var x1$4 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19653
- switch (x1$4) {
19654
- case "length": {
19655
- return $thiz.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19656
- break
19657
- }
19658
- case "reverse": {
19659
- return $thiz.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19660
- break
19661
- }
19662
- case "to_i": {
19663
- var this$1 = $m_s_math_BigInt$();
19664
- return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(value, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(10)));
19665
- break
19666
- }
19667
- default: {
19668
- throw new $c_s_MatchError(x1$4)
19669
- }
19670
- }
19671
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
19672
- var x1$5 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19673
- if ((x1$5 === "to_s")) {
19674
- return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19675
- } else {
19676
- throw new $c_s_MatchError(x1$5)
19677
- }
19678
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatType)) {
19679
- var x1$6 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19680
- if ((x1$6 === "to_i")) {
19681
- return $thiz.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19682
- } else {
19683
- throw new $c_s_MatchError(x1$6)
19684
- }
19685
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType)) {
19686
- var x1$7 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19687
- switch (x1$7) {
19688
- case "first": {
19689
- return $thiz.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19690
- break
19691
- }
19692
- case "last": {
19693
- return $thiz.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19694
- break
19695
- }
19696
- case "size": {
19697
- return $thiz.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19698
- break
19699
- }
19700
- case "min": {
19701
- return $thiz.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19702
- break
19703
- }
19704
- case "max": {
19705
- return $thiz.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19706
- break
19707
- }
19708
- default: {
19709
- throw new $c_s_MatchError(x1$7)
19710
- }
19711
- }
19712
19661
  } else {
19713
19662
  var x$3 = $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$();
19714
19663
  if ((x$3 === valType)) {
@@ -19718,8 +19667,8 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
19718
19667
  var $$x1 = (x$5 === valType)
19719
19668
  };
19720
19669
  if ($$x1) {
19721
- var x1$8 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19722
- switch (x1$8) {
19670
+ var x1$3 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19671
+ switch (x1$3) {
19723
19672
  case "size": {
19724
19673
  return $thiz.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
19725
19674
  break
@@ -19733,26 +19682,26 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
19733
19682
  break
19734
19683
  }
19735
19684
  default: {
19736
- throw new $c_s_MatchError(x1$8)
19685
+ throw new $c_s_MatchError(x1$3)
19737
19686
  }
19738
19687
  }
19739
19688
  } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
19740
- var x13 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(valType);
19741
- var x1$9 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19742
- if ((x1$9 === "to_i")) {
19743
- return $thiz.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O(value, x13)
19689
+ var x8 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(valType);
19690
+ var x1$4 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19691
+ if ((x1$4 === "to_i")) {
19692
+ return $thiz.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O(value, x8)
19744
19693
  } else {
19745
19694
  throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("called invalid attribute '" + $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name) + "' on expression of type ") + valType))
19746
19695
  }
19747
- } else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType)) {
19748
- var x1$10 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19749
- if ((x1$10 === "to_i")) {
19750
- return $thiz.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19696
+ } else {
19697
+ var x1$5 = $m_Lio_kaitai_struct_translators_MethodArgType$().byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(valType);
19698
+ if ((x1$5 instanceof $c_s_Some)) {
19699
+ var x2 = $as_s_Some(x1$5);
19700
+ var argType = $as_Lio_kaitai_struct_translators_MethodArgType($n(x2).s_Some__f_value);
19701
+ return $p_Lio_kaitai_struct_translators_CommonMethods__invokeMethod__Lio_kaitai_struct_translators_MethodArgType__T__Lio_kaitai_struct_exprlang_Ast$expr__sci_Seq__O($thiz, argType, $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, value, $as_sci_Seq($n($m_s_package$().s_package$__f_Seq).apply__sci_Seq__sc_SeqOps($m_sci_Nil$())))
19751
19702
  } else {
19752
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("called invalid attribute '" + $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name) + "' on expression of type ") + valType))
19703
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("internal compiler error: tried to call attribute '" + $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name) + "' on expression of type ") + valType))
19753
19704
  }
19754
- } else {
19755
- throw new $c_s_MatchError(valType)
19756
19705
  }
19757
19706
  }
19758
19707
  }
@@ -19766,39 +19715,291 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kait
19766
19715
  if ((obj !== null)) {
19767
19716
  if ((methodName !== null)) {
19768
19717
  var objType = $n($as_Lio_kaitai_struct_translators_TypeDetector($thiz)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(obj);
19769
- var _2 = $n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
19770
- if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) && (_2 === "substring"))) {
19771
- return $thiz.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(obj, $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0)), $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(1)))
19772
- } else if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) && (_2 === "to_i"))) {
19773
- return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(obj, $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0)))
19774
- } else if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType) && (_2 === "to_s"))) {
19775
- if ((args !== null)) {
19776
- $n($m_s_package$().s_package$__f_Seq);
19777
- if (((new $c_sc_SeqFactory$UnapplySeqWrapper(args), true) && ($n(args).lengthCompare__I__I(1) === 0))) {
19778
- var p3$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0));
19779
- if ((p3$2 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str)) {
19780
- var x4$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Str(p3$2);
19781
- var encoding = $n(x4$2).Lio_kaitai_struct_exprlang_Ast$expr$Str__f_s;
19782
- return $thiz.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O(obj, encoding)
19783
- }
19784
- }
19785
- };
19786
- if ((args !== null)) {
19787
- $n($m_s_package$().s_package$__f_Seq);
19788
- if (((new $c_sc_SeqFactory$UnapplySeqWrapper(args), true) && ($n(args).lengthCompare__I__I(1) === 0))) {
19789
- var x = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0));
19790
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: argument #0: expected string literal, got " + x))
19791
- }
19792
- };
19793
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: expected 1 argument, got " + $n(args).length__I()))
19718
+ var x1$2 = $m_Lio_kaitai_struct_translators_MethodArgType$().byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(objType);
19719
+ if ((x1$2 instanceof $c_s_Some)) {
19720
+ var x2$2 = $as_s_Some(x1$2);
19721
+ var argType = $as_Lio_kaitai_struct_translators_MethodArgType($n(x2$2).s_Some__f_value);
19722
+ return $p_Lio_kaitai_struct_translators_CommonMethods__invokeMethod__Lio_kaitai_struct_translators_MethodArgType__T__Lio_kaitai_struct_exprlang_Ast$expr__sci_Seq__O($thiz, argType, $n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, obj, args)
19794
19723
  } else {
19795
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError((((("don't know how to call method '" + methodName) + "' of object type '") + objType) + "'"))
19724
+ var x = $m_s_None$();
19725
+ if ((x === x1$2)) {
19726
+ throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundError($n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, objType)
19727
+ } else {
19728
+ throw new $c_s_MatchError(x1$2)
19729
+ }
19796
19730
  }
19797
19731
  }
19798
19732
  }
19799
19733
  };
19800
19734
  throw new $c_s_MatchError(func)
19801
19735
  }
19736
+ function $p_Lio_kaitai_struct_translators_CommonMethods__invokeMethod__Lio_kaitai_struct_translators_MethodArgType__T__Lio_kaitai_struct_exprlang_Ast$expr__sci_Seq__O($thiz, argType, methodName, obj, args) {
19737
+ var nonLocalReturnKey1 = $ct_O__(new $c_O());
19738
+ try {
19739
+ var x1 = $n($thiz.METHODS_BY_TYPE__sci_Map()).get__O__s_Option(argType);
19740
+ if ((x1 instanceof $c_s_Some)) {
19741
+ var x2 = $as_s_Some(x1);
19742
+ var methodList = $as_sci_List($n(x2).s_Some__f_value);
19743
+ var this$2 = $n(methodList);
19744
+ var f = ((x$2$2) => {
19745
+ var x$2 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(x$2$2);
19746
+ return ($n(x$2).name__T() === methodName)
19747
+ });
19748
+ var l = this$2;
19749
+ block: {
19750
+ var result;
19751
+ while (true) {
19752
+ if ($n(l).isEmpty__Z()) {
19753
+ var result = $m_sci_Nil$();
19754
+ break
19755
+ } else {
19756
+ var h = $n(l).head__O();
19757
+ var t = $as_sci_List($n(l).tail__O());
19758
+ if (($uZ(f(h)) === false)) {
19759
+ l = t;
19760
+ continue
19761
+ };
19762
+ var start = l;
19763
+ var remaining = t;
19764
+ while (true) {
19765
+ if ($n(remaining).isEmpty__Z()) {
19766
+ var result = start;
19767
+ break block
19768
+ } else {
19769
+ var x = $n(remaining).head__O();
19770
+ if (($uZ(f(x)) !== false)) {
19771
+ remaining = $as_sci_List($n(remaining).tail__O());
19772
+ continue
19773
+ };
19774
+ var firstMiss = remaining;
19775
+ var newHead = new $c_sci_$colon$colon($n(start).head__O(), $m_sci_Nil$());
19776
+ var toProcess = $as_sci_List($n(start).tail__O());
19777
+ var currentLast = newHead;
19778
+ while ((toProcess !== firstMiss)) {
19779
+ var newElem = new $c_sci_$colon$colon($n(toProcess).head__O(), $m_sci_Nil$());
19780
+ $n(currentLast).sci_$colon$colon__f_next = newElem;
19781
+ currentLast = newElem;
19782
+ toProcess = $as_sci_List($n(toProcess).tail__O())
19783
+ };
19784
+ var next = $as_sci_List($n(firstMiss).tail__O());
19785
+ var nextToCopy = next;
19786
+ while ((!$n(next).isEmpty__Z())) {
19787
+ var head = $n(next).head__O();
19788
+ if (($uZ(f(head)) !== false)) {
19789
+ next = $as_sci_List($n(next).tail__O())
19790
+ } else {
19791
+ while ((nextToCopy !== next)) {
19792
+ var newElem$2 = new $c_sci_$colon$colon($n(nextToCopy).head__O(), $m_sci_Nil$());
19793
+ $n(currentLast).sci_$colon$colon__f_next = newElem$2;
19794
+ currentLast = newElem$2;
19795
+ nextToCopy = $as_sci_List($n(nextToCopy).tail__O())
19796
+ };
19797
+ nextToCopy = $as_sci_List($n(next).tail__O());
19798
+ next = $as_sci_List($n(next).tail__O())
19799
+ }
19800
+ };
19801
+ if ((!$n(nextToCopy).isEmpty__Z())) {
19802
+ $n(currentLast).sci_$colon$colon__f_next = nextToCopy
19803
+ };
19804
+ var result = newHead;
19805
+ break block
19806
+ }
19807
+ }
19808
+ }
19809
+ }
19810
+ };
19811
+ if ($n(result).isEmpty__Z()) {
19812
+ throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg(methodName, argType)
19813
+ } else {
19814
+ var this$3 = $n(result);
19815
+ var f$1 = ((methodSig$2) => {
19816
+ var methodSig = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(methodSig$2);
19817
+ if ($n(methodSig).accepts__sci_Seq__Z(args)) {
19818
+ if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0)) {
19819
+ var x2$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(methodSig);
19820
+ var $$x1 = $n($n(x2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method).apply__O__O(obj)
19821
+ } else if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1)) {
19822
+ var x3 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(methodSig);
19823
+ var $$x1 = $n($n(x3).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method).apply__O__O__O(obj, $n(args).apply__I__O(0))
19824
+ } else if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2)) {
19825
+ var x4 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(methodSig);
19826
+ var $$x1 = $n($n(x4).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method).apply__O__O__O__O(obj, $n(args).apply__I__O(0), $n(args).apply__I__O(1))
19827
+ } else {
19828
+ var $$x1;
19829
+ throw new $c_s_MatchError(methodSig)
19830
+ };
19831
+ throw $ct_sr_NonLocalReturnControl__O__O__(new $c_sr_NonLocalReturnControl(), nonLocalReturnKey1, $$x1)
19832
+ } else {
19833
+ return $n(methodSig).expectedArgs__T()
19834
+ }
19835
+ });
19836
+ if ((this$3 === $m_sci_Nil$())) {
19837
+ var expectedArgProblems = $m_sci_Nil$()
19838
+ } else {
19839
+ var arg1 = this$3.head__O();
19840
+ var h$1 = new $c_sci_$colon$colon(f$1(arg1), $m_sci_Nil$());
19841
+ var t$1 = h$1;
19842
+ var rest = $as_sci_List(this$3.tail__O());
19843
+ while ((rest !== $m_sci_Nil$())) {
19844
+ var arg1$1 = $n(rest).head__O();
19845
+ var nx = new $c_sci_$colon$colon(f$1(arg1$1), $m_sci_Nil$());
19846
+ $n(t$1).sci_$colon$colon__f_next = nx;
19847
+ t$1 = nx;
19848
+ rest = $as_sci_List($n(rest).tail__O())
19849
+ };
19850
+ var expectedArgProblems = h$1
19851
+ };
19852
+ var this$4 = $n(args);
19853
+ throw new $c_Lio_kaitai_struct_precompile_WrongMethodCall(argType, methodName, expectedArgProblems, (("(" + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$4, "", ", ", "")) + ")"))
19854
+ }
19855
+ } else {
19856
+ var x$1 = $m_s_None$();
19857
+ if ((x$1 === x1)) {
19858
+ throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg(methodName, argType)
19859
+ } else {
19860
+ throw new $c_s_MatchError(x1)
19861
+ }
19862
+ }
19863
+ } catch (e) {
19864
+ if ((e instanceof $c_sr_NonLocalReturnControl)) {
19865
+ var ex = $as_sr_NonLocalReturnControl(e);
19866
+ if (($n(ex).sr_NonLocalReturnControl__f_key === nonLocalReturnKey1)) {
19867
+ return $n(ex).value__O()
19868
+ } else {
19869
+ throw $n(ex)
19870
+ }
19871
+ } else {
19872
+ throw e
19873
+ }
19874
+ }
19875
+ }
19876
+ function $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V($thiz) {
19877
+ var this$47 = $n($m_s_Predef$().s_Predef$__f_Map);
19878
+ var self = $m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$();
19879
+ $n($m_s_package$().s_package$__f_List);
19880
+ var array = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "first", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$2) => {
19881
+ var b = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$2);
19882
+ return $thiz.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(b)
19883
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "last", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$3$2) => {
19884
+ var b$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$3$2);
19885
+ return $thiz.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O(b$3)
19886
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "length", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((b$4$2) => {
19887
+ var b$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$4$2);
19888
+ return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(b$4)
19889
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "size", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((b$5$2) => {
19890
+ var b$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$5$2);
19891
+ return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(b$5)
19892
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "min", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$6$2) => {
19893
+ var b$6 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$6$2);
19894
+ return $thiz.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O(b$6)
19895
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "max", new $c_Lio_kaitai_struct_datatype_DataType$Int1Type(false), new $c_sjsr_AnonFunction1(((b$7$2) => {
19896
+ var b$7 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$7$2);
19897
+ return $thiz.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O(b$7)
19898
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1($thiz, "to_s", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$(), new $c_sjsr_AnonFunction2(((x0$1$2, x1$1$2) => {
19899
+ var x0$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x0$1$2);
19900
+ var x1$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1$1$2);
19901
+ var x1 = new $c_T2(x0$1, x1$1);
19902
+ var obj = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1.T2__f__1);
19903
+ var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1.T2__f__2);
19904
+ if ((arg0 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str)) {
19905
+ var x2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Str(arg0);
19906
+ var encoding = $n(x2).Lio_kaitai_struct_exprlang_Ast$expr$Str__f_s;
19907
+ return $thiz.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O(obj, encoding)
19908
+ } else {
19909
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: argument #0: expected string literal, got " + arg0))
19910
+ }
19911
+ })))];
19912
+ var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
19913
+ var y = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
19914
+ var $$x5 = new $c_T2(self, y);
19915
+ var self$1 = $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$();
19916
+ $n($m_s_package$().s_package$__f_List);
19917
+ var array$1 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_s", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_sjsr_AnonFunction1(((value$2) => {
19918
+ var value = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$2);
19919
+ return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
19920
+ })))];
19921
+ var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
19922
+ var y$1 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
19923
+ var $$x4 = new $c_T2(self$1, y$1);
19924
+ var self$2 = $m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$();
19925
+ $n($m_s_package$().s_package$__f_List);
19926
+ var array$2 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((value$3$2) => {
19927
+ var value$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$3$2);
19928
+ return $thiz.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value$3)
19929
+ })))];
19930
+ var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2);
19931
+ var y$2 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$2);
19932
+ var $$x3 = new $c_T2(self$2, y$2);
19933
+ var self$3 = $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$();
19934
+ $n($m_s_package$().s_package$__f_List);
19935
+ var array$3 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "length", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((s$2) => {
19936
+ var s = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$2);
19937
+ return $thiz.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O(s)
19938
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "reverse", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_sjsr_AnonFunction1(((s$3$2) => {
19939
+ var s$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$3$2);
19940
+ return $thiz.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O(s$3)
19941
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((x$1$2) => {
19942
+ var x$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x$1$2);
19943
+ var this$26 = $m_s_math_BigInt$();
19944
+ return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(x$1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$26.apply__I__s_math_BigInt(10)))
19945
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$(), new $c_sjsr_AnonFunction2(((s$4$2, base$2) => {
19946
+ var s$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$4$2);
19947
+ var base = $as_Lio_kaitai_struct_exprlang_Ast$expr(base$2);
19948
+ return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(s$4, base)
19949
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2($thiz, "substring", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_T2($m_Lio_kaitai_struct_translators_MethodArgType$IntArg$(), $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$()), new $c_sjsr_AnonFunction3(((s$5$2, from$2, to$2) => {
19950
+ var s$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$5$2);
19951
+ var from = $as_Lio_kaitai_struct_exprlang_Ast$expr(from$2);
19952
+ var to = $as_Lio_kaitai_struct_exprlang_Ast$expr(to$2);
19953
+ return $thiz.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(s$5, from, to)
19954
+ })))];
19955
+ var elems$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3);
19956
+ var y$3 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$3);
19957
+ var $$x2 = new $c_T2(self$3, y$3);
19958
+ var self$4 = $m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$();
19959
+ $n($m_s_package$().s_package$__f_List);
19960
+ var array$4 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "to_i", $m_Lio_kaitai_struct_datatype_DataType$CalcBooleanType$(), new $c_sjsr_AnonFunction1(((value$4$2) => {
19961
+ var value$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$4$2);
19962
+ return $thiz.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value$4)
19963
+ })))];
19964
+ var elems$4 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$4);
19965
+ var y$4 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$4);
19966
+ var $$x1 = new $c_T2(self$4, y$4);
19967
+ var self$5 = $m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$();
19968
+ $n($m_s_package$().s_package$__f_List);
19969
+ var array$5 = [new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "first", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$2) => {
19970
+ var a = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$2);
19971
+ return $thiz.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(a)
19972
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "last", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$3$2) => {
19973
+ var a$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$3$2);
19974
+ return $thiz.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O(a$3)
19975
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "size", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$4$2) => {
19976
+ var a$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$4$2);
19977
+ return $thiz.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O(a$4)
19978
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "min", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$5$2) => {
19979
+ var a$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$5$2);
19980
+ return $thiz.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O(a$5)
19981
+ }))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "max", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$6$2) => {
19982
+ var a$6 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$6$2);
19983
+ return $thiz.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O(a$6)
19984
+ })))];
19985
+ var elems$5 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$5);
19986
+ var y$5 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$5);
19987
+ var array$6 = [$$x5, $$x4, $$x3, $$x2, $$x1, new $c_T2(self$5, y$5)];
19988
+ var elems$6 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$6);
19989
+ $thiz.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V(this$47.from__sc_IterableOnce__sci_Map(elems$6))
19990
+ }
19991
+ function $is_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) {
19992
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig)))
19993
+ }
19994
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) {
19995
+ return (($is_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig"))
19996
+ }
19997
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) {
19998
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig)))
19999
+ }
20000
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) {
20001
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig;", depth))
20002
+ }
19802
20003
  /** @constructor */
19803
20004
  function $c_Lio_kaitai_struct_translators_CommonSizeOf$() {
19804
20005
  /*<skip>*/
@@ -19864,6 +20065,64 @@ function $m_Lio_kaitai_struct_translators_CommonSizeOf$() {
19864
20065
  };
19865
20066
  return $n_Lio_kaitai_struct_translators_CommonSizeOf$
19866
20067
  }
20068
+ function $is_Lio_kaitai_struct_translators_MethodArgType(obj) {
20069
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_MethodArgType)))
20070
+ }
20071
+ function $as_Lio_kaitai_struct_translators_MethodArgType(obj) {
20072
+ return (($is_Lio_kaitai_struct_translators_MethodArgType(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.MethodArgType"))
20073
+ }
20074
+ function $isArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) {
20075
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_MethodArgType)))
20076
+ }
20077
+ function $asArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) {
20078
+ return (($isArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.MethodArgType;", depth))
20079
+ }
20080
+ /** @constructor */
20081
+ function $c_Lio_kaitai_struct_translators_MethodArgType$() {
20082
+ /*<skip>*/
20083
+ }
20084
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype = new $h_O();
20085
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$;
20086
+ /** @constructor */
20087
+ function $h_Lio_kaitai_struct_translators_MethodArgType$() {
20088
+ /*<skip>*/
20089
+ }
20090
+ $h_Lio_kaitai_struct_translators_MethodArgType$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$.prototype;
20091
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.byDataType__Lio_kaitai_struct_datatype_DataType__s_Option = (function(dataType) {
20092
+ return ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$IntArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$StrArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$()) : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType) ? new $c_s_Some($m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$()) : $m_s_None$()))))))
20093
+ });
20094
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z = (function(actualType, expectedType) {
20095
+ var this$1 = $n(this.byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(actualType));
20096
+ if (this$1.isEmpty__Z()) {
20097
+ var $$x1 = $m_s_None$()
20098
+ } else {
20099
+ var arg1 = this$1.get__O();
20100
+ var t = $as_Lio_kaitai_struct_translators_MethodArgType(arg1);
20101
+ if ((t === null)) {
20102
+ var $$x2 = (expectedType === null)
20103
+ } else {
20104
+ var this$2 = $n(t);
20105
+ var $$x2 = (this$2 === expectedType)
20106
+ };
20107
+ var $$x1 = new $c_s_Some($$x2)
20108
+ };
20109
+ var this$3 = $n($$x1);
20110
+ return $uZ((this$3.isEmpty__Z() ? false : this$3.get__O()))
20111
+ });
20112
+ var $d_Lio_kaitai_struct_translators_MethodArgType$ = new $TypeData().initClass({
20113
+ Lio_kaitai_struct_translators_MethodArgType$: 0
20114
+ }, false, "io.kaitai.struct.translators.MethodArgType$", {
20115
+ Lio_kaitai_struct_translators_MethodArgType$: 1,
20116
+ O: 1
20117
+ });
20118
+ $c_Lio_kaitai_struct_translators_MethodArgType$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$;
20119
+ var $n_Lio_kaitai_struct_translators_MethodArgType$;
20120
+ function $m_Lio_kaitai_struct_translators_MethodArgType$() {
20121
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$)) {
20122
+ $n_Lio_kaitai_struct_translators_MethodArgType$ = new $c_Lio_kaitai_struct_translators_MethodArgType$()
20123
+ };
20124
+ return $n_Lio_kaitai_struct_translators_MethodArgType$
20125
+ }
19867
20126
  function $is_Lio_kaitai_struct_translators_TranslatorResult(obj) {
19868
20127
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_TranslatorResult)))
19869
20128
  }
@@ -27798,50 +28057,6 @@ function $isArrayOf_sc_IterableOnce(obj, depth) {
27798
28057
  function $asArrayOf_sc_IterableOnce(obj, depth) {
27799
28058
  return (($isArrayOf_sc_IterableOnce(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.IterableOnce;", depth))
27800
28059
  }
27801
- /** @constructor */
27802
- function $c_sc_IterableOnceExtensionMethods$() {
27803
- /*<skip>*/
27804
- }
27805
- $c_sc_IterableOnceExtensionMethods$.prototype = new $h_O();
27806
- $c_sc_IterableOnceExtensionMethods$.prototype.constructor = $c_sc_IterableOnceExtensionMethods$;
27807
- /** @constructor */
27808
- function $h_sc_IterableOnceExtensionMethods$() {
27809
- /*<skip>*/
27810
- }
27811
- $h_sc_IterableOnceExtensionMethods$.prototype = $c_sc_IterableOnceExtensionMethods$.prototype;
27812
- $c_sc_IterableOnceExtensionMethods$.prototype.isEmpty$extension__sc_IterableOnce__Z = (function(this$) {
27813
- if ($is_sc_Iterable(this$)) {
27814
- var x2 = $as_sc_Iterable(this$);
27815
- return $n(x2).isEmpty__Z()
27816
- } else {
27817
- var this$1 = $n($n(this$).iterator__sc_Iterator());
27818
- return (!this$1.hasNext__Z())
27819
- }
27820
- });
27821
- $c_sc_IterableOnceExtensionMethods$.prototype.mkString$extension__sc_IterableOnce__T__T__T__T = (function(this$, start, sep, end) {
27822
- if ($is_sc_Iterable(this$)) {
27823
- var x2 = $as_sc_Iterable(this$);
27824
- var this$1 = $n(x2);
27825
- return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, start, sep, end)
27826
- } else {
27827
- var this$2 = $n($n(this$).iterator__sc_Iterator());
27828
- return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, start, sep, end)
27829
- }
27830
- });
27831
- var $d_sc_IterableOnceExtensionMethods$ = new $TypeData().initClass({
27832
- sc_IterableOnceExtensionMethods$: 0
27833
- }, false, "scala.collection.IterableOnceExtensionMethods$", {
27834
- sc_IterableOnceExtensionMethods$: 1,
27835
- O: 1
27836
- });
27837
- $c_sc_IterableOnceExtensionMethods$.prototype.$classData = $d_sc_IterableOnceExtensionMethods$;
27838
- var $n_sc_IterableOnceExtensionMethods$;
27839
- function $m_sc_IterableOnceExtensionMethods$() {
27840
- if ((!$n_sc_IterableOnceExtensionMethods$)) {
27841
- $n_sc_IterableOnceExtensionMethods$ = new $c_sc_IterableOnceExtensionMethods$()
27842
- };
27843
- return $n_sc_IterableOnceExtensionMethods$
27844
- }
27845
28060
  function $f_sc_IterableOnceOps__foreach__F1__V($thiz, f) {
27846
28061
  var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
27847
28062
  while ($n(it).hasNext__Z()) {
@@ -37826,10 +38041,12 @@ function $p_Lio_kaitai_struct_precompile_ResolveTypes__realResolveEnumSpec__Lio_
37826
38041
  }
37827
38042
  }
37828
38043
  /** @constructor */
37829
- function $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, opaqueTypes) {
38044
+ function $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, topClass, opaqueTypes) {
37830
38045
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs = null;
38046
+ this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass = null;
37831
38047
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes = false;
37832
38048
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs = specs;
38049
+ this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass = topClass;
37833
38050
  this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes = opaqueTypes
37834
38051
  }
37835
38052
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype = new $h_O();
@@ -37840,10 +38057,13 @@ function $h_Lio_kaitai_struct_precompile_ResolveTypes() {
37840
38057
  }
37841
38058
  $h_Lio_kaitai_struct_precompile_ResolveTypes.prototype = $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype;
37842
38059
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.run__sc_Iterable = (function() {
37843
- return $n(this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((curClass$2) => {
38060
+ return $as_sc_Iterable($n($n(this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((curClass$2) => {
37844
38061
  var curClass = $as_Lio_kaitai_struct_format_ClassSpec(curClass$2);
37845
38062
  return this.resolveUserTypes__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(curClass)
37846
- })))
38063
+ })))).map__F1__O(new $c_sjsr_AnonFunction1(((problem$2) => {
38064
+ var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(problem$2);
38065
+ return $n(problem).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblem(this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass)
38066
+ }))))
37847
38067
  });
37848
38068
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.resolveUserTypes__Lio_kaitai_struct_format_ClassSpec__sc_Iterable = (function(curClass) {
37849
38069
  var this$1 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_seq);
@@ -37972,7 +38192,7 @@ $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.resolveUserType__Lio_kait
37972
38192
  var res = $p_Lio_kaitai_struct_precompile_ResolveTypes__realResolveUserType__Lio_kaitai_struct_format_ClassSpec__sci_List__sci_List__s_Option(this, curClass, typeName, path);
37973
38193
  var x = $m_s_None$();
37974
38194
  if ((x === res)) {
37975
- return (this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes ? ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_typeResolve), new $c_T2(new $c_s_Some($m_Lio_kaitai_struct_format_ClassSpec$().opaquePlaceholder__sci_List__Lio_kaitai_struct_format_ClassSpec(typeName)), $m_s_None$())) : new $c_T2($m_s_None$(), new $c_s_Some(new $c_Lio_kaitai_struct_problems_TypeNotFoundErr(typeName, curClass, path, $m_s_None$()))))
38195
+ return (this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes ? ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_typeResolve), new $c_T2(new $c_s_Some($m_Lio_kaitai_struct_format_ClassSpec$().opaquePlaceholder__sci_List__Lio_kaitai_struct_format_ClassSpec(typeName)), $m_s_None$())) : ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_typeResolve), new $c_T2($m_s_None$(), new $c_s_Some(new $c_Lio_kaitai_struct_problems_TypeNotFoundErr(typeName, curClass, path, $m_s_None$())))))
37976
38196
  } else if ((res instanceof $c_s_Some)) {
37977
38197
  var x3 = $as_s_Some(res);
37978
38198
  $as_Lio_kaitai_struct_format_ClassSpec($n(x3).s_Some__f_value);
@@ -38007,11 +38227,11 @@ var $d_Lio_kaitai_struct_precompile_ResolveTypes = new $TypeData().initClass({
38007
38227
  });
38008
38228
  $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.$classData = $d_Lio_kaitai_struct_precompile_ResolveTypes;
38009
38229
  /** @constructor */
38010
- function $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs, topClass) {
38230
+ function $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs) {
38011
38231
  this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs = null;
38012
38232
  this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = null;
38013
38233
  this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs = specs;
38014
- this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, topClass)
38234
+ this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, $n(specs).Lio_kaitai_struct_format_ClassSpecs__f_firstSpec)
38015
38235
  }
38016
38236
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype = new $h_O();
38017
38237
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.constructor = $c_Lio_kaitai_struct_precompile_StyleCheckIds;
@@ -38021,10 +38241,29 @@ function $h_Lio_kaitai_struct_precompile_StyleCheckIds() {
38021
38241
  }
38022
38242
  $h_Lio_kaitai_struct_precompile_StyleCheckIds.prototype = $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype;
38023
38243
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.run__sc_Iterable = (function() {
38024
- return $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((spec$2) => {
38025
- var spec = $as_Lio_kaitai_struct_format_ClassSpec(spec$2);
38026
- return this.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(spec)
38027
- })))
38244
+ var this$1 = $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs);
38245
+ var b = $m_scm_Iterable$().newBuilder__scm_Builder();
38246
+ var it = this$1.iterator__sc_Iterator();
38247
+ while ($n(it).hasNext__Z()) {
38248
+ var this$3 = $n(b);
38249
+ var arg1 = $n(it).next__O();
38250
+ var x0$1 = $as_T2(arg1);
38251
+ if ((x0$1 === null)) {
38252
+ throw new $c_s_MatchError(x0$1)
38253
+ };
38254
+ $as_T($n(x0$1).T2__f__1);
38255
+ var typeSpec = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
38256
+ $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_topClass = typeSpec;
38257
+ var xs = $as_sc_IterableOnce($n($n(typeSpec).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((spec$2) => {
38258
+ var spec = $as_Lio_kaitai_struct_format_ClassSpec(spec$2);
38259
+ return this.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(spec)
38260
+ })))).map__F1__O(new $c_sjsr_AnonFunction1(((typeSpec) => ((problem$2) => {
38261
+ var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(problem$2);
38262
+ return $n(problem).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblem(typeSpec)
38263
+ }))(typeSpec))));
38264
+ this$3.addAll__sc_IterableOnce__scm_Growable(xs)
38265
+ };
38266
+ return $as_sc_Iterable($n(b).result__O())
38028
38267
  });
38029
38268
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable = (function(spec) {
38030
38269
  $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass = spec;
@@ -38227,12 +38466,12 @@ var $d_Lio_kaitai_struct_precompile_StyleCheckIds = new $TypeData().initClass({
38227
38466
  });
38228
38467
  $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.$classData = $d_Lio_kaitai_struct_precompile_StyleCheckIds;
38229
38468
  /** @constructor */
38230
- function $c_Lio_kaitai_struct_precompile_TypeValidator(specs, topClass) {
38469
+ function $c_Lio_kaitai_struct_precompile_TypeValidator(specs) {
38231
38470
  this.Lio_kaitai_struct_precompile_TypeValidator__f_specs = null;
38232
38471
  this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = null;
38233
38472
  this.Lio_kaitai_struct_precompile_TypeValidator__f_detector = null;
38234
38473
  this.Lio_kaitai_struct_precompile_TypeValidator__f_specs = specs;
38235
- this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, topClass);
38474
+ this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, $n(specs).Lio_kaitai_struct_format_ClassSpecs__f_firstSpec);
38236
38475
  this.Lio_kaitai_struct_precompile_TypeValidator__f_detector = new $c_Lio_kaitai_struct_translators_ExpressionValidator(this.Lio_kaitai_struct_precompile_TypeValidator__f_provider)
38237
38476
  }
38238
38477
  $c_Lio_kaitai_struct_precompile_TypeValidator.prototype = new $h_O();
@@ -51044,8 +51283,10 @@ $c_Lio_kaitai_struct_problems_ProblemCoords.prototype.$classData = $d_Lio_kaitai
51044
51283
  function $c_Lio_kaitai_struct_translators_ExpressionValidator(provider) {
51045
51284
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
51046
51285
  this.Lio_kaitai_struct_translators_ExpressionValidator__f_provider = null;
51286
+ this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE = null;
51047
51287
  this.Lio_kaitai_struct_translators_ExpressionValidator__f_provider = provider;
51048
- $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider)
51288
+ $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
51289
+ $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V(this)
51049
51290
  }
51050
51291
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype = new $h_Lio_kaitai_struct_translators_TypeDetector();
51051
51292
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.constructor = $c_Lio_kaitai_struct_translators_ExpressionValidator;
@@ -51069,6 +51310,12 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesMin__Lio_kai
51069
51310
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
51070
51311
  this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(b)
51071
51312
  });
51313
+ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
51314
+ return this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE
51315
+ });
51316
+ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
51317
+ this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE = x$1
51318
+ });
51072
51319
  $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(v) {
51073
51320
  if (((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum) || ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$FloatNum) || ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str) || (v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool))))) {
51074
51321
  return (void 0)
@@ -51176,8 +51423,18 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
51176
51423
  var idx = $n(x25).Lio_kaitai_struct_exprlang_Ast$expr$Subscript__f_idx;
51177
51424
  if ((container !== null)) {
51178
51425
  if ((idx !== null)) {
51179
- this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(container);
51180
- this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(idx);
51426
+ var x1$2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(container);
51427
+ if (((x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType) || (x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType))) {
51428
+ this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(container);
51429
+ var x1$3 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(idx);
51430
+ if ((x1$3 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
51431
+ this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(idx)
51432
+ } else {
51433
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("subscript operation on arrays require index to be integer, but found " + x1$3))
51434
+ }
51435
+ } else {
51436
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("subscript operation is not supported on object type " + x1$2))
51437
+ };
51181
51438
  return (void 0)
51182
51439
  }
51183
51440
  }
@@ -64345,6 +64602,687 @@ function $m_Lio_kaitai_struct_problems_ProblemSeverity$Warning$() {
64345
64602
  return $n_Lio_kaitai_struct_problems_ProblemSeverity$Warning$
64346
64603
  }
64347
64604
  /** @constructor */
64605
+ function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(outer, name, returnType, method) {
64606
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name = null;
64607
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType = null;
64608
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method = null;
64609
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer = null;
64610
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name = name;
64611
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType = returnType;
64612
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method = method;
64613
+ if ((outer === null)) {
64614
+ $n(null)
64615
+ } else {
64616
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer = outer
64617
+ }
64618
+ }
64619
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype = new $h_O();
64620
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0;
64621
+ /** @constructor */
64622
+ function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig0() {
64623
+ /*<skip>*/
64624
+ }
64625
+ $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype;
64626
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.name__T = (function() {
64627
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name
64628
+ });
64629
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.expectedArgs__T = (function() {
64630
+ return "()"
64631
+ });
64632
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.accepts__sci_Seq__Z = (function(argsValues) {
64633
+ return $n(argsValues).isEmpty__Z()
64634
+ });
64635
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productPrefix__T = (function() {
64636
+ return "MethodSig0"
64637
+ });
64638
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productArity__I = (function() {
64639
+ return 3
64640
+ });
64641
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productElement__I__O = (function(x$1) {
64642
+ switch (x$1) {
64643
+ case 0: {
64644
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name;
64645
+ break
64646
+ }
64647
+ case 1: {
64648
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
64649
+ break
64650
+ }
64651
+ case 2: {
64652
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
64653
+ break
64654
+ }
64655
+ default: {
64656
+ return $m_sr_Statics$().ioobe__I__O(x$1)
64657
+ }
64658
+ }
64659
+ });
64660
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productIterator__sc_Iterator = (function() {
64661
+ return new $c_sr_ScalaRunTime$$anon$1(this)
64662
+ });
64663
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.hashCode__I = (function() {
64664
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
64665
+ return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
64666
+ });
64667
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.toString__T = (function() {
64668
+ return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
64669
+ });
64670
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.equals__O__Z = (function(x$1) {
64671
+ if ((this === x$1)) {
64672
+ return true
64673
+ } else if (((x$1 instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0) && ($n($as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(x$1)).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer === this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer))) {
64674
+ var MethodSig0$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(x$1);
64675
+ if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name === $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name)) {
64676
+ var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
64677
+ var x$2 = $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
64678
+ var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
64679
+ } else {
64680
+ var $$x1 = false
64681
+ };
64682
+ if ($$x1) {
64683
+ var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
64684
+ var x$4 = $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
64685
+ if (((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))) {
64686
+ $n(MethodSig0$1);
64687
+ return true
64688
+ } else {
64689
+ return false
64690
+ }
64691
+ } else {
64692
+ return false
64693
+ }
64694
+ } else {
64695
+ return false
64696
+ }
64697
+ });
64698
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj) {
64699
+ return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig0"))
64700
+ }
64701
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) {
64702
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig0)))
64703
+ }
64704
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) {
64705
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig0;", depth))
64706
+ }
64707
+ var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig0 = new $TypeData().initClass({
64708
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig0: 0
64709
+ }, false, "io.kaitai.struct.translators.CommonMethods$MethodSig0", {
64710
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig0: 1,
64711
+ O: 1,
64712
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
64713
+ s_Product: 1,
64714
+ s_Equals: 1,
64715
+ Ljava_io_Serializable: 1
64716
+ });
64717
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig0;
64718
+ /** @constructor */
64719
+ function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(outer, name, returnType, argTypes, method) {
64720
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name = null;
64721
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType = null;
64722
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes = null;
64723
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method = null;
64724
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer = null;
64725
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name = name;
64726
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType = returnType;
64727
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes = argTypes;
64728
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method = method;
64729
+ if ((outer === null)) {
64730
+ $n(null)
64731
+ } else {
64732
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer = outer
64733
+ }
64734
+ }
64735
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype = new $h_O();
64736
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1;
64737
+ /** @constructor */
64738
+ function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig1() {
64739
+ /*<skip>*/
64740
+ }
64741
+ $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype;
64742
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.name__T = (function() {
64743
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name
64744
+ });
64745
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.expectedArgs__T = (function() {
64746
+ return (("(" + this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes) + ")")
64747
+ });
64748
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.accepts__sci_Seq__Z = (function(argsValues) {
64749
+ if ((argsValues !== null)) {
64750
+ $n($m_s_package$().s_package$__f_Seq);
64751
+ if (((new $c_sc_SeqFactory$UnapplySeqWrapper(argsValues), true) && ($n(argsValues).lengthCompare__I__I(1) === 0))) {
64752
+ var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(0));
64753
+ return $m_Lio_kaitai_struct_translators_MethodArgType$().isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z($n($as_Lio_kaitai_struct_translators_TypeDetector(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(arg0), this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes)
64754
+ }
64755
+ };
64756
+ return false
64757
+ });
64758
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productPrefix__T = (function() {
64759
+ return "MethodSig1"
64760
+ });
64761
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productArity__I = (function() {
64762
+ return 4
64763
+ });
64764
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productElement__I__O = (function(x$1) {
64765
+ switch (x$1) {
64766
+ case 0: {
64767
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name;
64768
+ break
64769
+ }
64770
+ case 1: {
64771
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
64772
+ break
64773
+ }
64774
+ case 2: {
64775
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
64776
+ break
64777
+ }
64778
+ case 3: {
64779
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
64780
+ break
64781
+ }
64782
+ default: {
64783
+ return $m_sr_Statics$().ioobe__I__O(x$1)
64784
+ }
64785
+ }
64786
+ });
64787
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productIterator__sc_Iterator = (function() {
64788
+ return new $c_sr_ScalaRunTime$$anon$1(this)
64789
+ });
64790
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.hashCode__I = (function() {
64791
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
64792
+ return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
64793
+ });
64794
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.toString__T = (function() {
64795
+ return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
64796
+ });
64797
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.equals__O__Z = (function(x$1) {
64798
+ if ((this === x$1)) {
64799
+ return true
64800
+ } else if (((x$1 instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1) && ($n($as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(x$1)).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer === this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer))) {
64801
+ var MethodSig1$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(x$1);
64802
+ if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name === $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name)) {
64803
+ var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
64804
+ var x$2 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
64805
+ var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
64806
+ } else {
64807
+ var $$x1 = false
64808
+ };
64809
+ if ($$x1) {
64810
+ var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
64811
+ var x$4 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
64812
+ if ((x$3 === null)) {
64813
+ var $$x2 = (x$4 === null)
64814
+ } else {
64815
+ var this$1 = $n(x$3);
64816
+ var $$x2 = (this$1 === x$4)
64817
+ };
64818
+ if ($$x2) {
64819
+ var x$5 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
64820
+ var x$6 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
64821
+ if ((x$5 === null)) {
64822
+ var $$x3 = (x$6 === null)
64823
+ } else {
64824
+ var this$2 = $n(x$5);
64825
+ var $$x3 = (this$2 === x$6)
64826
+ };
64827
+ if ($$x3) {
64828
+ $n(MethodSig1$1);
64829
+ return true
64830
+ } else {
64831
+ return false
64832
+ }
64833
+ } else {
64834
+ return false
64835
+ }
64836
+ } else {
64837
+ return false
64838
+ }
64839
+ } else {
64840
+ return false
64841
+ }
64842
+ });
64843
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj) {
64844
+ return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig1"))
64845
+ }
64846
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) {
64847
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig1)))
64848
+ }
64849
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) {
64850
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig1;", depth))
64851
+ }
64852
+ var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig1 = new $TypeData().initClass({
64853
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig1: 0
64854
+ }, false, "io.kaitai.struct.translators.CommonMethods$MethodSig1", {
64855
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig1: 1,
64856
+ O: 1,
64857
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
64858
+ s_Product: 1,
64859
+ s_Equals: 1,
64860
+ Ljava_io_Serializable: 1
64861
+ });
64862
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig1;
64863
+ /** @constructor */
64864
+ function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(outer, name, returnType, argTypes, method) {
64865
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name = null;
64866
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType = null;
64867
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes = null;
64868
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method = null;
64869
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer = null;
64870
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name = name;
64871
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType = returnType;
64872
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes = argTypes;
64873
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method = method;
64874
+ if ((outer === null)) {
64875
+ $n(null)
64876
+ } else {
64877
+ this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer = outer
64878
+ }
64879
+ }
64880
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype = new $h_O();
64881
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2;
64882
+ /** @constructor */
64883
+ function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig2() {
64884
+ /*<skip>*/
64885
+ }
64886
+ $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype;
64887
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.name__T = (function() {
64888
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name
64889
+ });
64890
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.expectedArgs__T = (function() {
64891
+ return (((("(" + $n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__1) + ", ") + $n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__2) + ")")
64892
+ });
64893
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.accepts__sci_Seq__Z = (function(argsValues) {
64894
+ if ((argsValues !== null)) {
64895
+ $n($m_s_package$().s_package$__f_Seq);
64896
+ if (((new $c_sc_SeqFactory$UnapplySeqWrapper(argsValues), true) && ($n(argsValues).lengthCompare__I__I(2) === 0))) {
64897
+ var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(0));
64898
+ var arg1 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(1));
64899
+ return ($m_Lio_kaitai_struct_translators_MethodArgType$().isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z($n($as_Lio_kaitai_struct_translators_TypeDetector(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(arg0), $as_Lio_kaitai_struct_translators_MethodArgType($n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__1)) && $m_Lio_kaitai_struct_translators_MethodArgType$().isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z($n($as_Lio_kaitai_struct_translators_TypeDetector(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(arg1), $as_Lio_kaitai_struct_translators_MethodArgType($n(this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes).T2__f__2)))
64900
+ }
64901
+ };
64902
+ return false
64903
+ });
64904
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productPrefix__T = (function() {
64905
+ return "MethodSig2"
64906
+ });
64907
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productArity__I = (function() {
64908
+ return 4
64909
+ });
64910
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productElement__I__O = (function(x$1) {
64911
+ switch (x$1) {
64912
+ case 0: {
64913
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name;
64914
+ break
64915
+ }
64916
+ case 1: {
64917
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
64918
+ break
64919
+ }
64920
+ case 2: {
64921
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
64922
+ break
64923
+ }
64924
+ case 3: {
64925
+ return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
64926
+ break
64927
+ }
64928
+ default: {
64929
+ return $m_sr_Statics$().ioobe__I__O(x$1)
64930
+ }
64931
+ }
64932
+ });
64933
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productIterator__sc_Iterator = (function() {
64934
+ return new $c_sr_ScalaRunTime$$anon$1(this)
64935
+ });
64936
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.hashCode__I = (function() {
64937
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
64938
+ return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
64939
+ });
64940
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.toString__T = (function() {
64941
+ return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
64942
+ });
64943
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.equals__O__Z = (function(x$1) {
64944
+ if ((this === x$1)) {
64945
+ return true
64946
+ } else if (((x$1 instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2) && ($n($as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(x$1)).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer === this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer))) {
64947
+ var MethodSig2$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(x$1);
64948
+ if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name === $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name)) {
64949
+ var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
64950
+ var x$2 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
64951
+ var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
64952
+ } else {
64953
+ var $$x1 = false
64954
+ };
64955
+ if ($$x1) {
64956
+ var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
64957
+ var x$4 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
64958
+ if (((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))) {
64959
+ var x$5 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
64960
+ var x$6 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
64961
+ if ((x$5 === null)) {
64962
+ var $$x2 = (x$6 === null)
64963
+ } else {
64964
+ var this$1 = $n(x$5);
64965
+ var $$x2 = (this$1 === x$6)
64966
+ };
64967
+ if ($$x2) {
64968
+ $n(MethodSig2$1);
64969
+ return true
64970
+ } else {
64971
+ return false
64972
+ }
64973
+ } else {
64974
+ return false
64975
+ }
64976
+ } else {
64977
+ return false
64978
+ }
64979
+ } else {
64980
+ return false
64981
+ }
64982
+ });
64983
+ function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj) {
64984
+ return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig2"))
64985
+ }
64986
+ function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) {
64987
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig2)))
64988
+ }
64989
+ function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) {
64990
+ return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig2;", depth))
64991
+ }
64992
+ var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig2 = new $TypeData().initClass({
64993
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig2: 0
64994
+ }, false, "io.kaitai.struct.translators.CommonMethods$MethodSig2", {
64995
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig2: 1,
64996
+ O: 1,
64997
+ Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
64998
+ s_Product: 1,
64999
+ s_Equals: 1,
65000
+ Ljava_io_Serializable: 1
65001
+ });
65002
+ $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig2;
65003
+ /** @constructor */
65004
+ function $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
65005
+ /*<skip>*/
65006
+ }
65007
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype = new $h_O();
65008
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
65009
+ /** @constructor */
65010
+ function $h_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
65011
+ /*<skip>*/
65012
+ }
65013
+ $h_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype;
65014
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.toString__T = (function() {
65015
+ return "array"
65016
+ });
65017
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productPrefix__T = (function() {
65018
+ return "ArrayArg"
65019
+ });
65020
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productArity__I = (function() {
65021
+ return 0
65022
+ });
65023
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productElement__I__O = (function(x$1) {
65024
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65025
+ });
65026
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productIterator__sc_Iterator = (function() {
65027
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65028
+ });
65029
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.hashCode__I = (function() {
65030
+ return (-1228265123)
65031
+ });
65032
+ var $d_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$ = new $TypeData().initClass({
65033
+ Lio_kaitai_struct_translators_MethodArgType$ArrayArg$: 0
65034
+ }, false, "io.kaitai.struct.translators.MethodArgType$ArrayArg$", {
65035
+ Lio_kaitai_struct_translators_MethodArgType$ArrayArg$: 1,
65036
+ O: 1,
65037
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65038
+ s_Product: 1,
65039
+ s_Equals: 1,
65040
+ Ljava_io_Serializable: 1
65041
+ });
65042
+ $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
65043
+ var $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
65044
+ function $m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
65045
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$)) {
65046
+ $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$()
65047
+ };
65048
+ return $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$
65049
+ }
65050
+ /** @constructor */
65051
+ function $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
65052
+ /*<skip>*/
65053
+ }
65054
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype = new $h_O();
65055
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
65056
+ /** @constructor */
65057
+ function $h_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
65058
+ /*<skip>*/
65059
+ }
65060
+ $h_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype;
65061
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.toString__T = (function() {
65062
+ return "boolean"
65063
+ });
65064
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productPrefix__T = (function() {
65065
+ return "BooleanArg"
65066
+ });
65067
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productArity__I = (function() {
65068
+ return 0
65069
+ });
65070
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productElement__I__O = (function(x$1) {
65071
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65072
+ });
65073
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productIterator__sc_Iterator = (function() {
65074
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65075
+ });
65076
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.hashCode__I = (function() {
65077
+ return 1380065582
65078
+ });
65079
+ var $d_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$ = new $TypeData().initClass({
65080
+ Lio_kaitai_struct_translators_MethodArgType$BooleanArg$: 0
65081
+ }, false, "io.kaitai.struct.translators.MethodArgType$BooleanArg$", {
65082
+ Lio_kaitai_struct_translators_MethodArgType$BooleanArg$: 1,
65083
+ O: 1,
65084
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65085
+ s_Product: 1,
65086
+ s_Equals: 1,
65087
+ Ljava_io_Serializable: 1
65088
+ });
65089
+ $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
65090
+ var $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
65091
+ function $m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
65092
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$)) {
65093
+ $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$()
65094
+ };
65095
+ return $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$
65096
+ }
65097
+ /** @constructor */
65098
+ function $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
65099
+ /*<skip>*/
65100
+ }
65101
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype = new $h_O();
65102
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
65103
+ /** @constructor */
65104
+ function $h_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
65105
+ /*<skip>*/
65106
+ }
65107
+ $h_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype;
65108
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.toString__T = (function() {
65109
+ return "byte array"
65110
+ });
65111
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productPrefix__T = (function() {
65112
+ return "BytesArg"
65113
+ });
65114
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productArity__I = (function() {
65115
+ return 0
65116
+ });
65117
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productElement__I__O = (function(x$1) {
65118
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65119
+ });
65120
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productIterator__sc_Iterator = (function() {
65121
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65122
+ });
65123
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.hashCode__I = (function() {
65124
+ return (-1802089973)
65125
+ });
65126
+ var $d_Lio_kaitai_struct_translators_MethodArgType$BytesArg$ = new $TypeData().initClass({
65127
+ Lio_kaitai_struct_translators_MethodArgType$BytesArg$: 0
65128
+ }, false, "io.kaitai.struct.translators.MethodArgType$BytesArg$", {
65129
+ Lio_kaitai_struct_translators_MethodArgType$BytesArg$: 1,
65130
+ O: 1,
65131
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65132
+ s_Product: 1,
65133
+ s_Equals: 1,
65134
+ Ljava_io_Serializable: 1
65135
+ });
65136
+ $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
65137
+ var $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
65138
+ function $m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
65139
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$)) {
65140
+ $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$()
65141
+ };
65142
+ return $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$
65143
+ }
65144
+ /** @constructor */
65145
+ function $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
65146
+ /*<skip>*/
65147
+ }
65148
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype = new $h_O();
65149
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
65150
+ /** @constructor */
65151
+ function $h_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
65152
+ /*<skip>*/
65153
+ }
65154
+ $h_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype;
65155
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.toString__T = (function() {
65156
+ return "float"
65157
+ });
65158
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productPrefix__T = (function() {
65159
+ return "FloatArg"
65160
+ });
65161
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productArity__I = (function() {
65162
+ return 0
65163
+ });
65164
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productElement__I__O = (function(x$1) {
65165
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65166
+ });
65167
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productIterator__sc_Iterator = (function() {
65168
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65169
+ });
65170
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.hashCode__I = (function() {
65171
+ return 2074728058
65172
+ });
65173
+ var $d_Lio_kaitai_struct_translators_MethodArgType$FloatArg$ = new $TypeData().initClass({
65174
+ Lio_kaitai_struct_translators_MethodArgType$FloatArg$: 0
65175
+ }, false, "io.kaitai.struct.translators.MethodArgType$FloatArg$", {
65176
+ Lio_kaitai_struct_translators_MethodArgType$FloatArg$: 1,
65177
+ O: 1,
65178
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65179
+ s_Product: 1,
65180
+ s_Equals: 1,
65181
+ Ljava_io_Serializable: 1
65182
+ });
65183
+ $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
65184
+ var $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
65185
+ function $m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
65186
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$)) {
65187
+ $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$()
65188
+ };
65189
+ return $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$
65190
+ }
65191
+ /** @constructor */
65192
+ function $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
65193
+ /*<skip>*/
65194
+ }
65195
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype = new $h_O();
65196
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
65197
+ /** @constructor */
65198
+ function $h_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
65199
+ /*<skip>*/
65200
+ }
65201
+ $h_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype;
65202
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.toString__T = (function() {
65203
+ return "integer"
65204
+ });
65205
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productPrefix__T = (function() {
65206
+ return "IntArg"
65207
+ });
65208
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productArity__I = (function() {
65209
+ return 0
65210
+ });
65211
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productElement__I__O = (function(x$1) {
65212
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65213
+ });
65214
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productIterator__sc_Iterator = (function() {
65215
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65216
+ });
65217
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.hashCode__I = (function() {
65218
+ return (-2099930105)
65219
+ });
65220
+ var $d_Lio_kaitai_struct_translators_MethodArgType$IntArg$ = new $TypeData().initClass({
65221
+ Lio_kaitai_struct_translators_MethodArgType$IntArg$: 0
65222
+ }, false, "io.kaitai.struct.translators.MethodArgType$IntArg$", {
65223
+ Lio_kaitai_struct_translators_MethodArgType$IntArg$: 1,
65224
+ O: 1,
65225
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65226
+ s_Product: 1,
65227
+ s_Equals: 1,
65228
+ Ljava_io_Serializable: 1
65229
+ });
65230
+ $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
65231
+ var $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
65232
+ function $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
65233
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$IntArg$)) {
65234
+ $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$()
65235
+ };
65236
+ return $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$
65237
+ }
65238
+ /** @constructor */
65239
+ function $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
65240
+ /*<skip>*/
65241
+ }
65242
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype = new $h_O();
65243
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
65244
+ /** @constructor */
65245
+ function $h_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
65246
+ /*<skip>*/
65247
+ }
65248
+ $h_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype;
65249
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.toString__T = (function() {
65250
+ return "string"
65251
+ });
65252
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productPrefix__T = (function() {
65253
+ return "StrArg"
65254
+ });
65255
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productArity__I = (function() {
65256
+ return 0
65257
+ });
65258
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productElement__I__O = (function(x$1) {
65259
+ return $m_sr_Statics$().ioobe__I__O(x$1)
65260
+ });
65261
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productIterator__sc_Iterator = (function() {
65262
+ return new $c_sr_ScalaRunTime$$anon$1(this)
65263
+ });
65264
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.hashCode__I = (function() {
65265
+ return (-1808157051)
65266
+ });
65267
+ var $d_Lio_kaitai_struct_translators_MethodArgType$StrArg$ = new $TypeData().initClass({
65268
+ Lio_kaitai_struct_translators_MethodArgType$StrArg$: 0
65269
+ }, false, "io.kaitai.struct.translators.MethodArgType$StrArg$", {
65270
+ Lio_kaitai_struct_translators_MethodArgType$StrArg$: 1,
65271
+ O: 1,
65272
+ Lio_kaitai_struct_translators_MethodArgType: 1,
65273
+ s_Product: 1,
65274
+ s_Equals: 1,
65275
+ Ljava_io_Serializable: 1
65276
+ });
65277
+ $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
65278
+ var $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
65279
+ function $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
65280
+ if ((!$n_Lio_kaitai_struct_translators_MethodArgType$StrArg$)) {
65281
+ $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$()
65282
+ };
65283
+ return $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$
65284
+ }
65285
+ /** @constructor */
64348
65286
  function $c_Lio_kaitai_struct_translators_ResultLocalVar(n) {
64349
65287
  this.Lio_kaitai_struct_translators_ResultLocalVar__f_n = 0;
64350
65288
  this.Lio_kaitai_struct_translators_ResultLocalVar__f_n = n
@@ -73057,6 +73995,26 @@ var $d_Lio_kaitai_struct_precompile_TypeUndecidedError = new $TypeData().initCla
73057
73995
  Ljava_io_Serializable: 1
73058
73996
  });
73059
73997
  $c_Lio_kaitai_struct_precompile_TypeUndecidedError.prototype.$classData = $d_Lio_kaitai_struct_precompile_TypeUndecidedError;
73998
+ class $c_Lio_kaitai_struct_precompile_WrongMethodCall extends $c_Lio_kaitai_struct_precompile_ExpressionError {
73999
+ constructor(dataType, methodName, expectedSigs, actualSig) {
74000
+ super();
74001
+ var this$1 = $n(expectedSigs);
74002
+ var msg = ((((((("wrong arguments to method call `" + methodName) + "` on ") + dataType) + ": expected ") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, "", " or ", "")) + ", got ") + actualSig);
74003
+ $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
74004
+ };
74005
+ }
74006
+ var $d_Lio_kaitai_struct_precompile_WrongMethodCall = new $TypeData().initClass({
74007
+ Lio_kaitai_struct_precompile_WrongMethodCall: 0
74008
+ }, false, "io.kaitai.struct.precompile.WrongMethodCall", {
74009
+ Lio_kaitai_struct_precompile_WrongMethodCall: 1,
74010
+ Lio_kaitai_struct_precompile_ExpressionError: 1,
74011
+ jl_RuntimeException: 1,
74012
+ jl_Exception: 1,
74013
+ jl_Throwable: 1,
74014
+ O: 1,
74015
+ Ljava_io_Serializable: 1
74016
+ });
74017
+ $c_Lio_kaitai_struct_precompile_WrongMethodCall.prototype.$classData = $d_Lio_kaitai_struct_precompile_WrongMethodCall;
73060
74018
  /** @constructor */
73061
74019
  function $c_Lio_kaitai_struct_problems_EnumNotFoundErr(name, curClass, path, fileName) {
73062
74020
  this.Lio_kaitai_struct_problems_EnumNotFoundErr__f_name = null;
@@ -76263,6 +77221,18 @@ var $d_scm_HashSet$$anon$3 = new $TypeData().initClass({
76263
77221
  sc_IterableOnceOps: 1
76264
77222
  });
76265
77223
  $c_scm_HashSet$$anon$3.prototype.$classData = $d_scm_HashSet$$anon$3;
77224
+ function $is_scm_Iterable(obj) {
77225
+ return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scm_Iterable)))
77226
+ }
77227
+ function $as_scm_Iterable(obj) {
77228
+ return (($is_scm_Iterable(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.Iterable"))
77229
+ }
77230
+ function $isArrayOf_scm_Iterable(obj, depth) {
77231
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_Iterable)))
77232
+ }
77233
+ function $asArrayOf_scm_Iterable(obj, depth) {
77234
+ return (($isArrayOf_scm_Iterable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.Iterable;", depth))
77235
+ }
76266
77236
  /** @constructor */
76267
77237
  function $c_s_math_Ordering$$anon$5(ord$2, f$3) {
76268
77238
  this.s_math_Ordering$$anon$5__f_ord$2 = null;
@@ -77885,9 +78855,9 @@ var $d_Lio_kaitai_struct_format_ValueInstanceSpec = new $TypeData().initClass({
77885
78855
  });
77886
78856
  $c_Lio_kaitai_struct_format_ValueInstanceSpec.prototype.$classData = $d_Lio_kaitai_struct_format_ValueInstanceSpec;
77887
78857
  class $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError extends $c_Lio_kaitai_struct_precompile_NotFoundError {
77888
- constructor(label, enum$1, enumDefPath) {
78858
+ constructor(label, enumName, enumDefPath) {
77889
78859
  super();
77890
- var msg = (((((((("unable to find enum member '" + enum$1) + "::") + label) + "' (enum '") + enum$1) + "' defined at /") + enumDefPath) + ")");
78860
+ var msg = (((((((("unable to find enum member '" + enumName) + "::") + label) + "' (enum '") + enumName) + "' defined at /") + enumDefPath) + ")");
77891
78861
  $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
77892
78862
  };
77893
78863
  }
@@ -78033,6 +79003,26 @@ var $d_Lio_kaitai_struct_precompile_MethodNotFoundError = new $TypeData().initCl
78033
79003
  Ljava_io_Serializable: 1
78034
79004
  });
78035
79005
  $c_Lio_kaitai_struct_precompile_MethodNotFoundError.prototype.$classData = $d_Lio_kaitai_struct_precompile_MethodNotFoundError;
79006
+ class $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg extends $c_Lio_kaitai_struct_precompile_NotFoundError {
79007
+ constructor(name, argType) {
79008
+ super();
79009
+ var msg = (((("don't know how to call method '" + name) + "' of object type '") + argType) + "'");
79010
+ $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
79011
+ };
79012
+ }
79013
+ var $d_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg = new $TypeData().initClass({
79014
+ Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg: 0
79015
+ }, false, "io.kaitai.struct.precompile.MethodNotFoundErrorWithArg", {
79016
+ Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg: 1,
79017
+ Lio_kaitai_struct_precompile_NotFoundError: 1,
79018
+ Lio_kaitai_struct_precompile_ExpressionError: 1,
79019
+ jl_RuntimeException: 1,
79020
+ jl_Exception: 1,
79021
+ jl_Throwable: 1,
79022
+ O: 1,
79023
+ Ljava_io_Serializable: 1
79024
+ });
79025
+ $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg.prototype.$classData = $d_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg;
78036
79026
  class $c_Lio_kaitai_struct_precompile_TypeNotFoundError extends $c_Lio_kaitai_struct_precompile_NotFoundError {
78037
79027
  constructor(name, curClass) {
78038
79028
  super();
@@ -81401,12 +82391,14 @@ function $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_tra
81401
82391
  $thiz.Lio_kaitai_struct_translators_BaseTranslator__f_provider = provider;
81402
82392
  $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__($thiz, provider);
81403
82393
  $f_Lio_kaitai_struct_translators_CommonLiterals__$init$__V($thiz);
82394
+ $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V($thiz);
81404
82395
  return $thiz
81405
82396
  }
81406
82397
  /** @constructor */
81407
82398
  function $c_Lio_kaitai_struct_translators_BaseTranslator() {
81408
82399
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
81409
82400
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
82401
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
81410
82402
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null
81411
82403
  }
81412
82404
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype = new $h_Lio_kaitai_struct_translators_TypeDetector();
@@ -81470,6 +82462,12 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strLiteralGenericCC__C
81470
82462
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strLiteralUnicode__C__T = (function(code) {
81471
82463
  return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralUnicode__C__T(this, code)
81472
82464
  });
82465
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
82466
+ return this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE
82467
+ });
82468
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
82469
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = x$1
82470
+ });
81473
82471
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
81474
82472
  return this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap
81475
82473
  });
@@ -81847,12 +82845,14 @@ function $c_Lio_kaitai_struct_translators_GoTranslator(out, provider, importList
81847
82845
  this.Lio_kaitai_struct_translators_GoTranslator__f_IMPORT_CHARMAP = null;
81848
82846
  this.Lio_kaitai_struct_translators_GoTranslator__f_ENCODINGS = null;
81849
82847
  this.Lio_kaitai_struct_translators_GoTranslator__f_localVarNum = 0;
82848
+ this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE = null;
81850
82849
  this.Lio_kaitai_struct_translators_GoTranslator__f_asciiCharQuoteMap = null;
81851
82850
  this.Lio_kaitai_struct_translators_GoTranslator__f_out = out;
81852
82851
  this.Lio_kaitai_struct_translators_GoTranslator__f_provider = provider;
81853
82852
  this.Lio_kaitai_struct_translators_GoTranslator__f_importList = importList;
81854
82853
  $ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
81855
82854
  $f_Lio_kaitai_struct_translators_CommonLiterals__$init$__V(this);
82855
+ $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V(this);
81856
82856
  this.Lio_kaitai_struct_translators_GoTranslator__f_returnRes = $m_s_None$();
81857
82857
  this.Lio_kaitai_struct_translators_GoTranslator__f_IMPORT_CHARMAP = "golang.org/x/text/encoding/charmap";
81858
82858
  var this$22 = $n($m_s_Predef$().s_Predef$__f_Map);
@@ -81915,6 +82915,12 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralGenericCC__C__
81915
82915
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralUnicode__C__T = (function(code) {
81916
82916
  return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralUnicode__C__T(this, code)
81917
82917
  });
82918
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
82919
+ return this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE
82920
+ });
82921
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
82922
+ this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE = x$1
82923
+ });
81918
82924
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
81919
82925
  return this.Lio_kaitai_struct_translators_GoTranslator__f_asciiCharQuoteMap
81920
82926
  });
@@ -84161,6 +85167,7 @@ $c_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes.prototype.$classData =
84161
85167
  function $c_Lio_kaitai_struct_translators_CSharpTranslator(provider, importList) {
84162
85168
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84163
85169
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85170
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84164
85171
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84165
85172
  this.Lio_kaitai_struct_translators_CSharpTranslator__f_importList = null;
84166
85173
  this.Lio_kaitai_struct_translators_CSharpTranslator__f_asciiCharQuoteMap = null;
@@ -84409,6 +85416,7 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.$classData = $d_Lio_
84409
85416
  function $c_Lio_kaitai_struct_translators_JavaScriptTranslator(provider) {
84410
85417
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84411
85418
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85419
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84412
85420
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84413
85421
  $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider)
84414
85422
  }
@@ -84622,6 +85630,7 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.$classData = $d_
84622
85630
  function $c_Lio_kaitai_struct_translators_JavaTranslator(provider, importList) {
84623
85631
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84624
85632
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85633
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84625
85634
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84626
85635
  this.Lio_kaitai_struct_translators_JavaTranslator__f_importList = null;
84627
85636
  this.Lio_kaitai_struct_translators_JavaTranslator__f_importList = importList;
@@ -84962,6 +85971,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.$classData = $d_Lio_ka
84962
85971
  function $c_Lio_kaitai_struct_translators_NimTranslator(provider, importList) {
84963
85972
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
84964
85973
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
85974
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
84965
85975
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
84966
85976
  this.Lio_kaitai_struct_translators_NimTranslator__f_importList = null;
84967
85977
  this.Lio_kaitai_struct_translators_NimTranslator__f_importList = importList;
@@ -85279,6 +86289,7 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.$classData = $d_Lio_kai
85279
86289
  function $c_Lio_kaitai_struct_translators_PerlTranslator(provider, importList) {
85280
86290
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
85281
86291
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86292
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
85282
86293
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
85283
86294
  this.Lio_kaitai_struct_translators_PerlTranslator__f_importList = null;
85284
86295
  this.Lio_kaitai_struct_translators_PerlTranslator__f_asciiCharQuoteMap = null;
@@ -85624,6 +86635,7 @@ function $ct_Lio_kaitai_struct_translators_PythonTranslator__Lio_kaitai_struct_t
85624
86635
  function $c_Lio_kaitai_struct_translators_PythonTranslator() {
85625
86636
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
85626
86637
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86638
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
85627
86639
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
85628
86640
  this.Lio_kaitai_struct_translators_PythonTranslator__f_importList = null;
85629
86641
  this.Lio_kaitai_struct_translators_PythonTranslator__f_asciiCharQuoteMap = null
@@ -85882,6 +86894,7 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.$classData = $d_Lio_
85882
86894
  function $c_Lio_kaitai_struct_translators_RubyTranslator(provider) {
85883
86895
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
85884
86896
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
86897
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
85885
86898
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
85886
86899
  this.Lio_kaitai_struct_translators_RubyTranslator__f_asciiCharQuoteMap = null;
85887
86900
  $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
@@ -86129,6 +87142,7 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.$classData = $d_Lio_ka
86129
87142
  function $c_Lio_kaitai_struct_translators_RustTranslator(provider, config) {
86130
87143
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
86131
87144
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
87145
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
86132
87146
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
86133
87147
  this.Lio_kaitai_struct_translators_RustTranslator__f_asciiCharQuoteMap = null;
86134
87148
  $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
@@ -86938,6 +87952,7 @@ function $m_s_reflect_ManifestFactory$UnitManifest$() {
86938
87952
  function $c_Lio_kaitai_struct_translators_ConstructTranslator(provider, importList) {
86939
87953
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
86940
87954
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
87955
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
86941
87956
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
86942
87957
  this.Lio_kaitai_struct_translators_PythonTranslator__f_importList = null;
86943
87958
  this.Lio_kaitai_struct_translators_PythonTranslator__f_asciiCharQuoteMap = null;
@@ -86997,6 +88012,7 @@ $c_Lio_kaitai_struct_translators_ConstructTranslator.prototype.$classData = $d_L
86997
88012
  function $c_Lio_kaitai_struct_translators_CppTranslator(provider, importListSrc, importListHdr, config) {
86998
88013
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
86999
88014
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
88015
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
87000
88016
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
87001
88017
  this.Lio_kaitai_struct_translators_CppTranslator__f_importListSrc = null;
87002
88018
  this.Lio_kaitai_struct_translators_CppTranslator__f_importListHdr = null;
@@ -87417,6 +88433,7 @@ function $p_Lio_kaitai_struct_translators_LuaTranslator__decEscapeByteArray__sci
87417
88433
  function $c_Lio_kaitai_struct_translators_LuaTranslator(provider, importList) {
87418
88434
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
87419
88435
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
88436
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
87420
88437
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
87421
88438
  this.Lio_kaitai_struct_translators_LuaTranslator__f_importList = null;
87422
88439
  this.Lio_kaitai_struct_translators_LuaTranslator__f_asciiCharQuoteMap = null;
@@ -87736,6 +88753,7 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.$classData = $d_Lio_kai
87736
88753
  function $c_Lio_kaitai_struct_translators_PHPTranslator(provider, config) {
87737
88754
  this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
87738
88755
  this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
88756
+ this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
87739
88757
  this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
87740
88758
  this.Lio_kaitai_struct_translators_PHPTranslator__f_asciiCharQuoteMap = null;
87741
88759
  this.Lio_kaitai_struct_translators_PHPTranslator__f_namespaceRef = null;