kaitai-struct-compiler 0.11.0-SNAPSHOT20240302.135815.89cf9b7 → 0.11.0-SNAPSHOT20240308.193506.8aeb79a
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.
- package/kaitai-struct-compiler.js +1279 -294
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
|
2331
|
-
var
|
|
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
|
-
|
|
2335
|
-
|
|
2336
|
-
$
|
|
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(
|
|
2345
|
-
new $c_Lio_kaitai_struct_precompile_SpecsValueTypeDerive(
|
|
2346
|
-
new $c_Lio_kaitai_struct_precompile_CalculateSeqSizes(
|
|
2347
|
-
var typeValidatorProblems = new $c_Lio_kaitai_struct_precompile_TypeValidator(
|
|
2348
|
-
var styleWarnings = new $c_Lio_kaitai_struct_precompile_StyleCheckIds(
|
|
2349
|
-
var encodingProblems = new $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames(
|
|
2350
|
-
$
|
|
2351
|
-
var
|
|
2352
|
-
var
|
|
2353
|
-
|
|
2354
|
-
|
|
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);
|
|
@@ -2974,8 +3002,8 @@ function $m_Lio_kaitai_struct_Utils$() {
|
|
|
2974
3002
|
function $c_Lio_kaitai_struct_Version$() {
|
|
2975
3003
|
this.Lio_kaitai_struct_Version$__f_version = null;
|
|
2976
3004
|
this.Lio_kaitai_struct_Version$__f_gitTime = null;
|
|
2977
|
-
this.Lio_kaitai_struct_Version$__f_version = "0.11-
|
|
2978
|
-
this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-
|
|
3005
|
+
this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240308.193506.8aeb79a";
|
|
3006
|
+
this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-08T19:35:06+00:00"
|
|
2979
3007
|
}
|
|
2980
3008
|
$c_Lio_kaitai_struct_Version$.prototype = new $h_O();
|
|
2981
3009
|
$c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
|
|
@@ -18677,18 +18705,18 @@ function $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$() {
|
|
|
18677
18705
|
var aliases = $as_sci_Set($n(x0$1).T2__f__2);
|
|
18678
18706
|
return $as_sci_Set($n(aliases).map__F1__O(new $c_sjsr_AnonFunction1(((alias$2) => {
|
|
18679
18707
|
var alias = $as_T(alias$2);
|
|
18680
|
-
var this$
|
|
18681
|
-
return new $c_T2($as_T(this$
|
|
18708
|
+
var this$3 = $n(alias);
|
|
18709
|
+
return new $c_T2($as_T(this$3.toUpperCase()), canonical)
|
|
18682
18710
|
}))))
|
|
18683
18711
|
} else {
|
|
18684
18712
|
throw new $c_s_MatchError(x0$1)
|
|
18685
18713
|
}
|
|
18686
18714
|
}))));
|
|
18687
|
-
var this$
|
|
18688
|
-
this.Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$__f_aliasToCanonical = $as_sci_Map($n($$x1).$plus$plus__sc_IterableOnce__sc_IterableOps($as_sc_IterableOnce($n(this$
|
|
18715
|
+
var this$4 = $n($m_Lio_kaitai_struct_EncodingList$().Lio_kaitai_struct_EncodingList$__f_canonicalToAlias);
|
|
18716
|
+
this.Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$__f_aliasToCanonical = $as_sci_Map($n($$x1).$plus$plus__sc_IterableOnce__sc_IterableOps($as_sc_IterableOnce($n(this$4.keySet__sc_Set()).map__F1__O(new $c_sjsr_AnonFunction1(((x$2) => {
|
|
18689
18717
|
var x = $as_T(x$2);
|
|
18690
|
-
var this$
|
|
18691
|
-
var self = $as_T(this$
|
|
18718
|
+
var this$6 = $n(x);
|
|
18719
|
+
var self = $as_T(this$6.toUpperCase());
|
|
18692
18720
|
return new $c_T2(self, x)
|
|
18693
18721
|
}))))))
|
|
18694
18722
|
}
|
|
@@ -18704,8 +18732,8 @@ $c_Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$.prototype.canonicaliz
|
|
|
18704
18732
|
return new $c_T2(original, $m_s_None$())
|
|
18705
18733
|
} else {
|
|
18706
18734
|
var $$x1 = $n(this.Lio_kaitai_struct_precompile_CanonicalizeEncodingNames$__f_aliasToCanonical);
|
|
18707
|
-
var this$
|
|
18708
|
-
var x1 = $n($$x1).get__O__s_Option($as_T(this$
|
|
18735
|
+
var this$2 = $n(original);
|
|
18736
|
+
var x1 = $n($$x1).get__O__s_Option($as_T(this$2.toUpperCase()));
|
|
18709
18737
|
if ((x1 instanceof $c_s_Some)) {
|
|
18710
18738
|
var x2 = $as_s_Some(x1);
|
|
18711
18739
|
var canonical = $as_T($n(x2).s_Some__f_value);
|
|
@@ -19620,96 +19648,6 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
|
|
|
19620
19648
|
} else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
|
|
19621
19649
|
var x5 = $as_Lio_kaitai_struct_datatype_DataType$UserType(valType);
|
|
19622
19650
|
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
|
-
var this$2 = $m_s_math_BigInt$();
|
|
19675
|
-
return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(value, new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$2.apply__I__s_math_BigInt(10)))
|
|
19676
|
-
} else {
|
|
19677
|
-
throw new $c_s_MatchError(x1$5)
|
|
19678
|
-
}
|
|
19679
|
-
} else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatType)) {
|
|
19680
|
-
var x1$6 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
|
|
19681
|
-
if ((x1$6 === "to_i")) {
|
|
19682
|
-
return $thiz.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
|
|
19683
|
-
} else {
|
|
19684
|
-
throw new $c_s_MatchError(x1$6)
|
|
19685
|
-
}
|
|
19686
|
-
} else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType)) {
|
|
19687
|
-
var x1$7 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
|
|
19688
|
-
switch (x1$7) {
|
|
19689
|
-
case "first": {
|
|
19690
|
-
return $thiz.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
|
|
19691
|
-
break
|
|
19692
|
-
}
|
|
19693
|
-
case "last": {
|
|
19694
|
-
return $thiz.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
|
|
19695
|
-
break
|
|
19696
|
-
}
|
|
19697
|
-
case "size": {
|
|
19698
|
-
return $thiz.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
|
|
19699
|
-
break
|
|
19700
|
-
}
|
|
19701
|
-
case "min": {
|
|
19702
|
-
return $thiz.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
|
|
19703
|
-
break
|
|
19704
|
-
}
|
|
19705
|
-
case "max": {
|
|
19706
|
-
return $thiz.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
|
|
19707
|
-
break
|
|
19708
|
-
}
|
|
19709
|
-
default: {
|
|
19710
|
-
throw new $c_s_MatchError(x1$7)
|
|
19711
|
-
}
|
|
19712
|
-
}
|
|
19713
19651
|
} else {
|
|
19714
19652
|
var x$3 = $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$();
|
|
19715
19653
|
if ((x$3 === valType)) {
|
|
@@ -19719,8 +19657,8 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
|
|
|
19719
19657
|
var $$x1 = (x$5 === valType)
|
|
19720
19658
|
};
|
|
19721
19659
|
if ($$x1) {
|
|
19722
|
-
var x1$
|
|
19723
|
-
switch (x1$
|
|
19660
|
+
var x1$3 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
|
|
19661
|
+
switch (x1$3) {
|
|
19724
19662
|
case "size": {
|
|
19725
19663
|
return $thiz.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__O(value);
|
|
19726
19664
|
break
|
|
@@ -19734,26 +19672,26 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio
|
|
|
19734
19672
|
break
|
|
19735
19673
|
}
|
|
19736
19674
|
default: {
|
|
19737
|
-
throw new $c_s_MatchError(x1$
|
|
19675
|
+
throw new $c_s_MatchError(x1$3)
|
|
19738
19676
|
}
|
|
19739
19677
|
}
|
|
19740
19678
|
} else if ((valType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
|
|
19741
|
-
var
|
|
19742
|
-
var x1$
|
|
19743
|
-
if ((x1$
|
|
19744
|
-
return $thiz.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O(value,
|
|
19679
|
+
var x8 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(valType);
|
|
19680
|
+
var x1$4 = $n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name;
|
|
19681
|
+
if ((x1$4 === "to_i")) {
|
|
19682
|
+
return $thiz.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O(value, x8)
|
|
19745
19683
|
} else {
|
|
19746
19684
|
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))
|
|
19747
19685
|
}
|
|
19748
|
-
} else
|
|
19749
|
-
var x1$
|
|
19750
|
-
if ((x1$
|
|
19751
|
-
|
|
19686
|
+
} else {
|
|
19687
|
+
var x1$5 = $m_Lio_kaitai_struct_translators_MethodArgType$().byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(valType);
|
|
19688
|
+
if ((x1$5 instanceof $c_s_Some)) {
|
|
19689
|
+
var x2 = $as_s_Some(x1$5);
|
|
19690
|
+
var argType = $as_Lio_kaitai_struct_translators_MethodArgType($n(x2).s_Some__f_value);
|
|
19691
|
+
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$())))
|
|
19752
19692
|
} else {
|
|
19753
|
-
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("
|
|
19693
|
+
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))
|
|
19754
19694
|
}
|
|
19755
|
-
} else {
|
|
19756
|
-
throw new $c_s_MatchError(valType)
|
|
19757
19695
|
}
|
|
19758
19696
|
}
|
|
19759
19697
|
}
|
|
@@ -19767,39 +19705,291 @@ function $f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kait
|
|
|
19767
19705
|
if ((obj !== null)) {
|
|
19768
19706
|
if ((methodName !== null)) {
|
|
19769
19707
|
var objType = $n($as_Lio_kaitai_struct_translators_TypeDetector($thiz)).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(obj);
|
|
19770
|
-
var
|
|
19771
|
-
if ((
|
|
19772
|
-
|
|
19773
|
-
|
|
19774
|
-
return $
|
|
19775
|
-
} else if (((objType instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType) && (_2 === "to_s"))) {
|
|
19776
|
-
if ((args !== null)) {
|
|
19777
|
-
$n($m_s_package$().s_package$__f_Seq);
|
|
19778
|
-
if (((new $c_sc_SeqFactory$UnapplySeqWrapper(args), true) && ($n(args).lengthCompare__I__I(1) === 0))) {
|
|
19779
|
-
var p3$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0));
|
|
19780
|
-
if ((p3$2 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str)) {
|
|
19781
|
-
var x4$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Str(p3$2);
|
|
19782
|
-
var encoding = $n(x4$2).Lio_kaitai_struct_exprlang_Ast$expr$Str__f_s;
|
|
19783
|
-
return $thiz.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O(obj, encoding)
|
|
19784
|
-
}
|
|
19785
|
-
}
|
|
19786
|
-
};
|
|
19787
|
-
if ((args !== null)) {
|
|
19788
|
-
$n($m_s_package$().s_package$__f_Seq);
|
|
19789
|
-
if (((new $c_sc_SeqFactory$UnapplySeqWrapper(args), true) && ($n(args).lengthCompare__I__I(1) === 0))) {
|
|
19790
|
-
var x = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(args).apply__I__O(0));
|
|
19791
|
-
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: argument #0: expected string literal, got " + x))
|
|
19792
|
-
}
|
|
19793
|
-
};
|
|
19794
|
-
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: expected 1 argument, got " + $n(args).length__I()))
|
|
19708
|
+
var x1$2 = $m_Lio_kaitai_struct_translators_MethodArgType$().byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(objType);
|
|
19709
|
+
if ((x1$2 instanceof $c_s_Some)) {
|
|
19710
|
+
var x2$2 = $as_s_Some(x1$2);
|
|
19711
|
+
var argType = $as_Lio_kaitai_struct_translators_MethodArgType($n(x2$2).s_Some__f_value);
|
|
19712
|
+
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)
|
|
19795
19713
|
} else {
|
|
19796
|
-
|
|
19714
|
+
var x = $m_s_None$();
|
|
19715
|
+
if ((x === x1$2)) {
|
|
19716
|
+
throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundError($n(methodName).Lio_kaitai_struct_exprlang_Ast$identifier__f_name, objType)
|
|
19717
|
+
} else {
|
|
19718
|
+
throw new $c_s_MatchError(x1$2)
|
|
19719
|
+
}
|
|
19797
19720
|
}
|
|
19798
19721
|
}
|
|
19799
19722
|
}
|
|
19800
19723
|
};
|
|
19801
19724
|
throw new $c_s_MatchError(func)
|
|
19802
19725
|
}
|
|
19726
|
+
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) {
|
|
19727
|
+
var nonLocalReturnKey1 = $ct_O__(new $c_O());
|
|
19728
|
+
try {
|
|
19729
|
+
var x1 = $n($thiz.METHODS_BY_TYPE__sci_Map()).get__O__s_Option(argType);
|
|
19730
|
+
if ((x1 instanceof $c_s_Some)) {
|
|
19731
|
+
var x2 = $as_s_Some(x1);
|
|
19732
|
+
var methodList = $as_sci_List($n(x2).s_Some__f_value);
|
|
19733
|
+
var this$2 = $n(methodList);
|
|
19734
|
+
var f = ((x$2$2) => {
|
|
19735
|
+
var x$2 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(x$2$2);
|
|
19736
|
+
return ($n(x$2).name__T() === methodName)
|
|
19737
|
+
});
|
|
19738
|
+
var l = this$2;
|
|
19739
|
+
block: {
|
|
19740
|
+
var result;
|
|
19741
|
+
while (true) {
|
|
19742
|
+
if ($n(l).isEmpty__Z()) {
|
|
19743
|
+
var result = $m_sci_Nil$();
|
|
19744
|
+
break
|
|
19745
|
+
} else {
|
|
19746
|
+
var h = $n(l).head__O();
|
|
19747
|
+
var t = $as_sci_List($n(l).tail__O());
|
|
19748
|
+
if (($uZ(f(h)) === false)) {
|
|
19749
|
+
l = t;
|
|
19750
|
+
continue
|
|
19751
|
+
};
|
|
19752
|
+
var start = l;
|
|
19753
|
+
var remaining = t;
|
|
19754
|
+
while (true) {
|
|
19755
|
+
if ($n(remaining).isEmpty__Z()) {
|
|
19756
|
+
var result = start;
|
|
19757
|
+
break block
|
|
19758
|
+
} else {
|
|
19759
|
+
var x = $n(remaining).head__O();
|
|
19760
|
+
if (($uZ(f(x)) !== false)) {
|
|
19761
|
+
remaining = $as_sci_List($n(remaining).tail__O());
|
|
19762
|
+
continue
|
|
19763
|
+
};
|
|
19764
|
+
var firstMiss = remaining;
|
|
19765
|
+
var newHead = new $c_sci_$colon$colon($n(start).head__O(), $m_sci_Nil$());
|
|
19766
|
+
var toProcess = $as_sci_List($n(start).tail__O());
|
|
19767
|
+
var currentLast = newHead;
|
|
19768
|
+
while ((toProcess !== firstMiss)) {
|
|
19769
|
+
var newElem = new $c_sci_$colon$colon($n(toProcess).head__O(), $m_sci_Nil$());
|
|
19770
|
+
$n(currentLast).sci_$colon$colon__f_next = newElem;
|
|
19771
|
+
currentLast = newElem;
|
|
19772
|
+
toProcess = $as_sci_List($n(toProcess).tail__O())
|
|
19773
|
+
};
|
|
19774
|
+
var next = $as_sci_List($n(firstMiss).tail__O());
|
|
19775
|
+
var nextToCopy = next;
|
|
19776
|
+
while ((!$n(next).isEmpty__Z())) {
|
|
19777
|
+
var head = $n(next).head__O();
|
|
19778
|
+
if (($uZ(f(head)) !== false)) {
|
|
19779
|
+
next = $as_sci_List($n(next).tail__O())
|
|
19780
|
+
} else {
|
|
19781
|
+
while ((nextToCopy !== next)) {
|
|
19782
|
+
var newElem$2 = new $c_sci_$colon$colon($n(nextToCopy).head__O(), $m_sci_Nil$());
|
|
19783
|
+
$n(currentLast).sci_$colon$colon__f_next = newElem$2;
|
|
19784
|
+
currentLast = newElem$2;
|
|
19785
|
+
nextToCopy = $as_sci_List($n(nextToCopy).tail__O())
|
|
19786
|
+
};
|
|
19787
|
+
nextToCopy = $as_sci_List($n(next).tail__O());
|
|
19788
|
+
next = $as_sci_List($n(next).tail__O())
|
|
19789
|
+
}
|
|
19790
|
+
};
|
|
19791
|
+
if ((!$n(nextToCopy).isEmpty__Z())) {
|
|
19792
|
+
$n(currentLast).sci_$colon$colon__f_next = nextToCopy
|
|
19793
|
+
};
|
|
19794
|
+
var result = newHead;
|
|
19795
|
+
break block
|
|
19796
|
+
}
|
|
19797
|
+
}
|
|
19798
|
+
}
|
|
19799
|
+
}
|
|
19800
|
+
};
|
|
19801
|
+
if ($n(result).isEmpty__Z()) {
|
|
19802
|
+
throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg(methodName, argType)
|
|
19803
|
+
} else {
|
|
19804
|
+
var this$3 = $n(result);
|
|
19805
|
+
var f$1 = ((methodSig$2) => {
|
|
19806
|
+
var methodSig = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(methodSig$2);
|
|
19807
|
+
if ($n(methodSig).accepts__sci_Seq__Z(args)) {
|
|
19808
|
+
if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0)) {
|
|
19809
|
+
var x2$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(methodSig);
|
|
19810
|
+
var $$x1 = $n($n(x2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method).apply__O__O(obj)
|
|
19811
|
+
} else if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1)) {
|
|
19812
|
+
var x3 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(methodSig);
|
|
19813
|
+
var $$x1 = $n($n(x3).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method).apply__O__O__O(obj, $n(args).apply__I__O(0))
|
|
19814
|
+
} else if ((methodSig instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2)) {
|
|
19815
|
+
var x4 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(methodSig);
|
|
19816
|
+
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))
|
|
19817
|
+
} else {
|
|
19818
|
+
var $$x1;
|
|
19819
|
+
throw new $c_s_MatchError(methodSig)
|
|
19820
|
+
};
|
|
19821
|
+
throw $ct_sr_NonLocalReturnControl__O__O__(new $c_sr_NonLocalReturnControl(), nonLocalReturnKey1, $$x1)
|
|
19822
|
+
} else {
|
|
19823
|
+
return $n(methodSig).expectedArgs__T()
|
|
19824
|
+
}
|
|
19825
|
+
});
|
|
19826
|
+
if ((this$3 === $m_sci_Nil$())) {
|
|
19827
|
+
var expectedArgProblems = $m_sci_Nil$()
|
|
19828
|
+
} else {
|
|
19829
|
+
var arg1 = this$3.head__O();
|
|
19830
|
+
var h$1 = new $c_sci_$colon$colon(f$1(arg1), $m_sci_Nil$());
|
|
19831
|
+
var t$1 = h$1;
|
|
19832
|
+
var rest = $as_sci_List(this$3.tail__O());
|
|
19833
|
+
while ((rest !== $m_sci_Nil$())) {
|
|
19834
|
+
var arg1$1 = $n(rest).head__O();
|
|
19835
|
+
var nx = new $c_sci_$colon$colon(f$1(arg1$1), $m_sci_Nil$());
|
|
19836
|
+
$n(t$1).sci_$colon$colon__f_next = nx;
|
|
19837
|
+
t$1 = nx;
|
|
19838
|
+
rest = $as_sci_List($n(rest).tail__O())
|
|
19839
|
+
};
|
|
19840
|
+
var expectedArgProblems = h$1
|
|
19841
|
+
};
|
|
19842
|
+
var this$4 = $n(args);
|
|
19843
|
+
throw new $c_Lio_kaitai_struct_precompile_WrongMethodCall(argType, methodName, expectedArgProblems, (("(" + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$4, "", ", ", "")) + ")"))
|
|
19844
|
+
}
|
|
19845
|
+
} else {
|
|
19846
|
+
var x$1 = $m_s_None$();
|
|
19847
|
+
if ((x$1 === x1)) {
|
|
19848
|
+
throw new $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg(methodName, argType)
|
|
19849
|
+
} else {
|
|
19850
|
+
throw new $c_s_MatchError(x1)
|
|
19851
|
+
}
|
|
19852
|
+
}
|
|
19853
|
+
} catch (e) {
|
|
19854
|
+
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
19855
|
+
var ex = $as_sr_NonLocalReturnControl(e);
|
|
19856
|
+
if (($n(ex).sr_NonLocalReturnControl__f_key === nonLocalReturnKey1)) {
|
|
19857
|
+
return $n(ex).value__O()
|
|
19858
|
+
} else {
|
|
19859
|
+
throw $n(ex)
|
|
19860
|
+
}
|
|
19861
|
+
} else {
|
|
19862
|
+
throw e
|
|
19863
|
+
}
|
|
19864
|
+
}
|
|
19865
|
+
}
|
|
19866
|
+
function $f_Lio_kaitai_struct_translators_CommonMethods__$init$__V($thiz) {
|
|
19867
|
+
var this$47 = $n($m_s_Predef$().s_Predef$__f_Map);
|
|
19868
|
+
var self = $m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$();
|
|
19869
|
+
$n($m_s_package$().s_package$__f_List);
|
|
19870
|
+
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) => {
|
|
19871
|
+
var b = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$2);
|
|
19872
|
+
return $thiz.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(b)
|
|
19873
|
+
}))), 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) => {
|
|
19874
|
+
var b$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$3$2);
|
|
19875
|
+
return $thiz.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O(b$3)
|
|
19876
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "length", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((b$4$2) => {
|
|
19877
|
+
var b$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$4$2);
|
|
19878
|
+
return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(b$4)
|
|
19879
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "size", $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$(), new $c_sjsr_AnonFunction1(((b$5$2) => {
|
|
19880
|
+
var b$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$5$2);
|
|
19881
|
+
return $thiz.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O(b$5)
|
|
19882
|
+
}))), 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) => {
|
|
19883
|
+
var b$6 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$6$2);
|
|
19884
|
+
return $thiz.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O(b$6)
|
|
19885
|
+
}))), 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) => {
|
|
19886
|
+
var b$7 = $as_Lio_kaitai_struct_exprlang_Ast$expr(b$7$2);
|
|
19887
|
+
return $thiz.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O(b$7)
|
|
19888
|
+
}))), 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) => {
|
|
19889
|
+
var x0$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x0$1$2);
|
|
19890
|
+
var x1$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1$1$2);
|
|
19891
|
+
var x1 = new $c_T2(x0$1, x1$1);
|
|
19892
|
+
var obj = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1.T2__f__1);
|
|
19893
|
+
var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x1.T2__f__2);
|
|
19894
|
+
if ((arg0 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str)) {
|
|
19895
|
+
var x2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Str(arg0);
|
|
19896
|
+
var encoding = $n(x2).Lio_kaitai_struct_exprlang_Ast$expr$Str__f_s;
|
|
19897
|
+
return $thiz.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O(obj, encoding)
|
|
19898
|
+
} else {
|
|
19899
|
+
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("to_s: argument #0: expected string literal, got " + arg0))
|
|
19900
|
+
}
|
|
19901
|
+
})))];
|
|
19902
|
+
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
|
|
19903
|
+
var y = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
|
|
19904
|
+
var $$x5 = new $c_T2(self, y);
|
|
19905
|
+
var self$1 = $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$();
|
|
19906
|
+
$n($m_s_package$().s_package$__f_List);
|
|
19907
|
+
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) => {
|
|
19908
|
+
var value = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$2);
|
|
19909
|
+
return $thiz.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O(value)
|
|
19910
|
+
})))];
|
|
19911
|
+
var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
|
|
19912
|
+
var y$1 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
|
|
19913
|
+
var $$x4 = new $c_T2(self$1, y$1);
|
|
19914
|
+
var self$2 = $m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$();
|
|
19915
|
+
$n($m_s_package$().s_package$__f_List);
|
|
19916
|
+
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) => {
|
|
19917
|
+
var value$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$3$2);
|
|
19918
|
+
return $thiz.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value$3)
|
|
19919
|
+
})))];
|
|
19920
|
+
var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2);
|
|
19921
|
+
var y$2 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$2);
|
|
19922
|
+
var $$x3 = new $c_T2(self$2, y$2);
|
|
19923
|
+
var self$3 = $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$();
|
|
19924
|
+
$n($m_s_package$().s_package$__f_List);
|
|
19925
|
+
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) => {
|
|
19926
|
+
var s = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$2);
|
|
19927
|
+
return $thiz.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O(s)
|
|
19928
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "reverse", $m_Lio_kaitai_struct_datatype_DataType$CalcStrType$(), new $c_sjsr_AnonFunction1(((s$3$2) => {
|
|
19929
|
+
var s$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$3$2);
|
|
19930
|
+
return $thiz.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O(s$3)
|
|
19931
|
+
}))), 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) => {
|
|
19932
|
+
var x$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr(x$1$2);
|
|
19933
|
+
var this$26 = $m_s_math_BigInt$();
|
|
19934
|
+
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)))
|
|
19935
|
+
}))), 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) => {
|
|
19936
|
+
var s$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$4$2);
|
|
19937
|
+
var base = $as_Lio_kaitai_struct_exprlang_Ast$expr(base$2);
|
|
19938
|
+
return $thiz.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O(s$4, base)
|
|
19939
|
+
}))), 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) => {
|
|
19940
|
+
var s$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(s$5$2);
|
|
19941
|
+
var from = $as_Lio_kaitai_struct_exprlang_Ast$expr(from$2);
|
|
19942
|
+
var to = $as_Lio_kaitai_struct_exprlang_Ast$expr(to$2);
|
|
19943
|
+
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)
|
|
19944
|
+
})))];
|
|
19945
|
+
var elems$3 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$3);
|
|
19946
|
+
var y$3 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$3);
|
|
19947
|
+
var $$x2 = new $c_T2(self$3, y$3);
|
|
19948
|
+
var self$4 = $m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$();
|
|
19949
|
+
$n($m_s_package$().s_package$__f_List);
|
|
19950
|
+
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) => {
|
|
19951
|
+
var value$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(value$4$2);
|
|
19952
|
+
return $thiz.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O(value$4)
|
|
19953
|
+
})))];
|
|
19954
|
+
var elems$4 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$4);
|
|
19955
|
+
var y$4 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$4);
|
|
19956
|
+
var $$x1 = new $c_T2(self$4, y$4);
|
|
19957
|
+
var self$5 = $m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$();
|
|
19958
|
+
$n($m_s_package$().s_package$__f_List);
|
|
19959
|
+
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) => {
|
|
19960
|
+
var a = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$2);
|
|
19961
|
+
return $thiz.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__O(a)
|
|
19962
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "last", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$3$2) => {
|
|
19963
|
+
var a$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$3$2);
|
|
19964
|
+
return $thiz.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O(a$3)
|
|
19965
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "size", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$4$2) => {
|
|
19966
|
+
var a$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$4$2);
|
|
19967
|
+
return $thiz.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O(a$4)
|
|
19968
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "min", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$5$2) => {
|
|
19969
|
+
var a$5 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$5$2);
|
|
19970
|
+
return $thiz.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O(a$5)
|
|
19971
|
+
}))), new $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0($thiz, "max", $m_Lio_kaitai_struct_datatype_DataType$AnyType$(), new $c_sjsr_AnonFunction1(((a$6$2) => {
|
|
19972
|
+
var a$6 = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$6$2);
|
|
19973
|
+
return $thiz.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O(a$6)
|
|
19974
|
+
})))];
|
|
19975
|
+
var elems$5 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$5);
|
|
19976
|
+
var y$5 = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$5);
|
|
19977
|
+
var array$6 = [$$x5, $$x4, $$x3, $$x2, $$x1, new $c_T2(self$5, y$5)];
|
|
19978
|
+
var elems$6 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$6);
|
|
19979
|
+
$thiz.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V(this$47.from__sc_IterableOnce__sci_Map(elems$6))
|
|
19980
|
+
}
|
|
19981
|
+
function $is_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) {
|
|
19982
|
+
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig)))
|
|
19983
|
+
}
|
|
19984
|
+
function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) {
|
|
19985
|
+
return (($is_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig"))
|
|
19986
|
+
}
|
|
19987
|
+
function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) {
|
|
19988
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig)))
|
|
19989
|
+
}
|
|
19990
|
+
function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) {
|
|
19991
|
+
return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig;", depth))
|
|
19992
|
+
}
|
|
19803
19993
|
/** @constructor */
|
|
19804
19994
|
function $c_Lio_kaitai_struct_translators_CommonSizeOf$() {
|
|
19805
19995
|
/*<skip>*/
|
|
@@ -19865,6 +20055,64 @@ function $m_Lio_kaitai_struct_translators_CommonSizeOf$() {
|
|
|
19865
20055
|
};
|
|
19866
20056
|
return $n_Lio_kaitai_struct_translators_CommonSizeOf$
|
|
19867
20057
|
}
|
|
20058
|
+
function $is_Lio_kaitai_struct_translators_MethodArgType(obj) {
|
|
20059
|
+
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_MethodArgType)))
|
|
20060
|
+
}
|
|
20061
|
+
function $as_Lio_kaitai_struct_translators_MethodArgType(obj) {
|
|
20062
|
+
return (($is_Lio_kaitai_struct_translators_MethodArgType(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.MethodArgType"))
|
|
20063
|
+
}
|
|
20064
|
+
function $isArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) {
|
|
20065
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_MethodArgType)))
|
|
20066
|
+
}
|
|
20067
|
+
function $asArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) {
|
|
20068
|
+
return (($isArrayOf_Lio_kaitai_struct_translators_MethodArgType(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.MethodArgType;", depth))
|
|
20069
|
+
}
|
|
20070
|
+
/** @constructor */
|
|
20071
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$() {
|
|
20072
|
+
/*<skip>*/
|
|
20073
|
+
}
|
|
20074
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$.prototype = new $h_O();
|
|
20075
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$;
|
|
20076
|
+
/** @constructor */
|
|
20077
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$() {
|
|
20078
|
+
/*<skip>*/
|
|
20079
|
+
}
|
|
20080
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$.prototype;
|
|
20081
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$.prototype.byDataType__Lio_kaitai_struct_datatype_DataType__s_Option = (function(dataType) {
|
|
20082
|
+
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$()))))))
|
|
20083
|
+
});
|
|
20084
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$.prototype.isArgAcceptable__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_MethodArgType__Z = (function(actualType, expectedType) {
|
|
20085
|
+
var this$1 = $n(this.byDataType__Lio_kaitai_struct_datatype_DataType__s_Option(actualType));
|
|
20086
|
+
if (this$1.isEmpty__Z()) {
|
|
20087
|
+
var $$x1 = $m_s_None$()
|
|
20088
|
+
} else {
|
|
20089
|
+
var arg1 = this$1.get__O();
|
|
20090
|
+
var t = $as_Lio_kaitai_struct_translators_MethodArgType(arg1);
|
|
20091
|
+
if ((t === null)) {
|
|
20092
|
+
var $$x2 = (expectedType === null)
|
|
20093
|
+
} else {
|
|
20094
|
+
var this$2 = $n(t);
|
|
20095
|
+
var $$x2 = (this$2 === expectedType)
|
|
20096
|
+
};
|
|
20097
|
+
var $$x1 = new $c_s_Some($$x2)
|
|
20098
|
+
};
|
|
20099
|
+
var this$3 = $n($$x1);
|
|
20100
|
+
return $uZ((this$3.isEmpty__Z() ? false : this$3.get__O()))
|
|
20101
|
+
});
|
|
20102
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$ = new $TypeData().initClass({
|
|
20103
|
+
Lio_kaitai_struct_translators_MethodArgType$: 0
|
|
20104
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$", {
|
|
20105
|
+
Lio_kaitai_struct_translators_MethodArgType$: 1,
|
|
20106
|
+
O: 1
|
|
20107
|
+
});
|
|
20108
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$;
|
|
20109
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$;
|
|
20110
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$() {
|
|
20111
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$)) {
|
|
20112
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$ = new $c_Lio_kaitai_struct_translators_MethodArgType$()
|
|
20113
|
+
};
|
|
20114
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$
|
|
20115
|
+
}
|
|
19868
20116
|
function $is_Lio_kaitai_struct_translators_TranslatorResult(obj) {
|
|
19869
20117
|
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_translators_TranslatorResult)))
|
|
19870
20118
|
}
|
|
@@ -37827,10 +38075,12 @@ function $p_Lio_kaitai_struct_precompile_ResolveTypes__realResolveEnumSpec__Lio_
|
|
|
37827
38075
|
}
|
|
37828
38076
|
}
|
|
37829
38077
|
/** @constructor */
|
|
37830
|
-
function $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, opaqueTypes) {
|
|
38078
|
+
function $c_Lio_kaitai_struct_precompile_ResolveTypes(specs, topClass, opaqueTypes) {
|
|
37831
38079
|
this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs = null;
|
|
38080
|
+
this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass = null;
|
|
37832
38081
|
this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes = false;
|
|
37833
38082
|
this.Lio_kaitai_struct_precompile_ResolveTypes__f_specs = specs;
|
|
38083
|
+
this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass = topClass;
|
|
37834
38084
|
this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes = opaqueTypes
|
|
37835
38085
|
}
|
|
37836
38086
|
$c_Lio_kaitai_struct_precompile_ResolveTypes.prototype = new $h_O();
|
|
@@ -37841,10 +38091,13 @@ function $h_Lio_kaitai_struct_precompile_ResolveTypes() {
|
|
|
37841
38091
|
}
|
|
37842
38092
|
$h_Lio_kaitai_struct_precompile_ResolveTypes.prototype = $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype;
|
|
37843
38093
|
$c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.run__sc_Iterable = (function() {
|
|
37844
|
-
return $n(this.
|
|
38094
|
+
return $as_sc_Iterable($n($n(this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((curClass$2) => {
|
|
37845
38095
|
var curClass = $as_Lio_kaitai_struct_format_ClassSpec(curClass$2);
|
|
37846
38096
|
return this.resolveUserTypes__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(curClass)
|
|
37847
|
-
})))
|
|
38097
|
+
})))).map__F1__O(new $c_sjsr_AnonFunction1(((problem$2) => {
|
|
38098
|
+
var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(problem$2);
|
|
38099
|
+
return $n(problem).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblem(this.Lio_kaitai_struct_precompile_ResolveTypes__f_topClass)
|
|
38100
|
+
}))))
|
|
37848
38101
|
});
|
|
37849
38102
|
$c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.resolveUserTypes__Lio_kaitai_struct_format_ClassSpec__sc_Iterable = (function(curClass) {
|
|
37850
38103
|
var this$1 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_seq);
|
|
@@ -38008,11 +38261,11 @@ var $d_Lio_kaitai_struct_precompile_ResolveTypes = new $TypeData().initClass({
|
|
|
38008
38261
|
});
|
|
38009
38262
|
$c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.$classData = $d_Lio_kaitai_struct_precompile_ResolveTypes;
|
|
38010
38263
|
/** @constructor */
|
|
38011
|
-
function $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs
|
|
38264
|
+
function $c_Lio_kaitai_struct_precompile_StyleCheckIds(specs) {
|
|
38012
38265
|
this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs = null;
|
|
38013
38266
|
this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = null;
|
|
38014
38267
|
this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs = specs;
|
|
38015
|
-
this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs,
|
|
38268
|
+
this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, $n(specs).Lio_kaitai_struct_format_ClassSpecs__f_firstSpec)
|
|
38016
38269
|
}
|
|
38017
38270
|
$c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype = new $h_O();
|
|
38018
38271
|
$c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.constructor = $c_Lio_kaitai_struct_precompile_StyleCheckIds;
|
|
@@ -38022,10 +38275,29 @@ function $h_Lio_kaitai_struct_precompile_StyleCheckIds() {
|
|
|
38022
38275
|
}
|
|
38023
38276
|
$h_Lio_kaitai_struct_precompile_StyleCheckIds.prototype = $c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype;
|
|
38024
38277
|
$c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.run__sc_Iterable = (function() {
|
|
38025
|
-
|
|
38026
|
-
|
|
38027
|
-
|
|
38028
|
-
|
|
38278
|
+
var this$1 = $n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_specs);
|
|
38279
|
+
var b = $m_scm_Iterable$().newBuilder__scm_Builder();
|
|
38280
|
+
var it = this$1.iterator__sc_Iterator();
|
|
38281
|
+
while ($n(it).hasNext__Z()) {
|
|
38282
|
+
var this$3 = $n(b);
|
|
38283
|
+
var arg1 = $n(it).next__O();
|
|
38284
|
+
var x0$1 = $as_T2(arg1);
|
|
38285
|
+
if ((x0$1 === null)) {
|
|
38286
|
+
throw new $c_s_MatchError(x0$1)
|
|
38287
|
+
};
|
|
38288
|
+
$as_T($n(x0$1).T2__f__1);
|
|
38289
|
+
var typeSpec = $as_Lio_kaitai_struct_format_ClassSpec($n(x0$1).T2__f__2);
|
|
38290
|
+
$n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_topClass = typeSpec;
|
|
38291
|
+
var xs = $as_sc_IterableOnce($n($n(typeSpec).mapRec__F1__sc_Iterable(new $c_sjsr_AnonFunction1(((spec$2) => {
|
|
38292
|
+
var spec = $as_Lio_kaitai_struct_format_ClassSpec(spec$2);
|
|
38293
|
+
return this.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable(spec)
|
|
38294
|
+
})))).map__F1__O(new $c_sjsr_AnonFunction1(((typeSpec) => ((problem$2) => {
|
|
38295
|
+
var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(problem$2);
|
|
38296
|
+
return $n(problem).localizedInType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_problems_CompilationProblem(typeSpec)
|
|
38297
|
+
}))(typeSpec))));
|
|
38298
|
+
this$3.addAll__sc_IterableOnce__scm_Growable(xs)
|
|
38299
|
+
};
|
|
38300
|
+
return $as_sc_Iterable($n(b).result__O())
|
|
38029
38301
|
});
|
|
38030
38302
|
$c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.processType__Lio_kaitai_struct_format_ClassSpec__sc_Iterable = (function(spec) {
|
|
38031
38303
|
$n(this.Lio_kaitai_struct_precompile_StyleCheckIds__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass = spec;
|
|
@@ -38228,12 +38500,12 @@ var $d_Lio_kaitai_struct_precompile_StyleCheckIds = new $TypeData().initClass({
|
|
|
38228
38500
|
});
|
|
38229
38501
|
$c_Lio_kaitai_struct_precompile_StyleCheckIds.prototype.$classData = $d_Lio_kaitai_struct_precompile_StyleCheckIds;
|
|
38230
38502
|
/** @constructor */
|
|
38231
|
-
function $c_Lio_kaitai_struct_precompile_TypeValidator(specs
|
|
38503
|
+
function $c_Lio_kaitai_struct_precompile_TypeValidator(specs) {
|
|
38232
38504
|
this.Lio_kaitai_struct_precompile_TypeValidator__f_specs = null;
|
|
38233
38505
|
this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = null;
|
|
38234
38506
|
this.Lio_kaitai_struct_precompile_TypeValidator__f_detector = null;
|
|
38235
38507
|
this.Lio_kaitai_struct_precompile_TypeValidator__f_specs = specs;
|
|
38236
|
-
this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs,
|
|
38508
|
+
this.Lio_kaitai_struct_precompile_TypeValidator__f_provider = new $c_Lio_kaitai_struct_ClassTypeProvider(specs, $n(specs).Lio_kaitai_struct_format_ClassSpecs__f_firstSpec);
|
|
38237
38509
|
this.Lio_kaitai_struct_precompile_TypeValidator__f_detector = new $c_Lio_kaitai_struct_translators_ExpressionValidator(this.Lio_kaitai_struct_precompile_TypeValidator__f_provider)
|
|
38238
38510
|
}
|
|
38239
38511
|
$c_Lio_kaitai_struct_precompile_TypeValidator.prototype = new $h_O();
|
|
@@ -51045,8 +51317,10 @@ $c_Lio_kaitai_struct_problems_ProblemCoords.prototype.$classData = $d_Lio_kaitai
|
|
|
51045
51317
|
function $c_Lio_kaitai_struct_translators_ExpressionValidator(provider) {
|
|
51046
51318
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
51047
51319
|
this.Lio_kaitai_struct_translators_ExpressionValidator__f_provider = null;
|
|
51320
|
+
this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE = null;
|
|
51048
51321
|
this.Lio_kaitai_struct_translators_ExpressionValidator__f_provider = provider;
|
|
51049
|
-
$ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider)
|
|
51322
|
+
$ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
|
|
51323
|
+
$f_Lio_kaitai_struct_translators_CommonMethods__$init$__V(this)
|
|
51050
51324
|
}
|
|
51051
51325
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype = new $h_Lio_kaitai_struct_translators_TypeDetector();
|
|
51052
51326
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.constructor = $c_Lio_kaitai_struct_translators_ExpressionValidator;
|
|
@@ -51070,6 +51344,12 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesMin__Lio_kai
|
|
|
51070
51344
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
51071
51345
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(b)
|
|
51072
51346
|
});
|
|
51347
|
+
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
|
|
51348
|
+
return this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE
|
|
51349
|
+
});
|
|
51350
|
+
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
|
|
51351
|
+
this.Lio_kaitai_struct_translators_ExpressionValidator__f_METHODS_BY_TYPE = x$1
|
|
51352
|
+
});
|
|
51073
51353
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(v) {
|
|
51074
51354
|
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))))) {
|
|
51075
51355
|
return (void 0)
|
|
@@ -51177,8 +51457,18 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
|
|
|
51177
51457
|
var idx = $n(x25).Lio_kaitai_struct_exprlang_Ast$expr$Subscript__f_idx;
|
|
51178
51458
|
if ((container !== null)) {
|
|
51179
51459
|
if ((idx !== null)) {
|
|
51180
|
-
this.
|
|
51181
|
-
|
|
51460
|
+
var x1$2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(container);
|
|
51461
|
+
if (((x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$ArrayType) || (x1$2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BytesType))) {
|
|
51462
|
+
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(container);
|
|
51463
|
+
var x1$3 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(idx);
|
|
51464
|
+
if ((x1$3 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
|
|
51465
|
+
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(idx)
|
|
51466
|
+
} else {
|
|
51467
|
+
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("subscript operation on arrays require index to be integer, but found " + x1$3))
|
|
51468
|
+
}
|
|
51469
|
+
} else {
|
|
51470
|
+
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(("subscript operation is not supported on object type " + x1$2))
|
|
51471
|
+
};
|
|
51182
51472
|
return (void 0)
|
|
51183
51473
|
}
|
|
51184
51474
|
}
|
|
@@ -51242,10 +51532,6 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.strSubstring__Lio
|
|
|
51242
51532
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(from);
|
|
51243
51533
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(to)
|
|
51244
51534
|
});
|
|
51245
|
-
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(value, num) {
|
|
51246
|
-
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value);
|
|
51247
|
-
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(num)
|
|
51248
|
-
});
|
|
51249
51535
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.byteSizeOfValue__T__Lio_kaitai_struct_datatype_DataType__O = (function(attrName, valType) {
|
|
51250
51536
|
$m_Lio_kaitai_struct_translators_CommonSizeOf$().getBitsSizeOfType__T__Lio_kaitai_struct_datatype_DataType__I(attrName, valType)
|
|
51251
51537
|
});
|
|
@@ -51282,8 +51568,8 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.kaitaiStreamSize_
|
|
|
51282
51568
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
51283
51569
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value)
|
|
51284
51570
|
});
|
|
51285
|
-
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
51286
|
-
this.
|
|
51571
|
+
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
51572
|
+
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value)
|
|
51287
51573
|
});
|
|
51288
51574
|
$c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__T__O = (function(value, encoding) {
|
|
51289
51575
|
this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(value)
|
|
@@ -64350,6 +64636,687 @@ function $m_Lio_kaitai_struct_problems_ProblemSeverity$Warning$() {
|
|
|
64350
64636
|
return $n_Lio_kaitai_struct_problems_ProblemSeverity$Warning$
|
|
64351
64637
|
}
|
|
64352
64638
|
/** @constructor */
|
|
64639
|
+
function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(outer, name, returnType, method) {
|
|
64640
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name = null;
|
|
64641
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType = null;
|
|
64642
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method = null;
|
|
64643
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer = null;
|
|
64644
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name = name;
|
|
64645
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType = returnType;
|
|
64646
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method = method;
|
|
64647
|
+
if ((outer === null)) {
|
|
64648
|
+
$n(null)
|
|
64649
|
+
} else {
|
|
64650
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_$outer = outer
|
|
64651
|
+
}
|
|
64652
|
+
}
|
|
64653
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype = new $h_O();
|
|
64654
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0;
|
|
64655
|
+
/** @constructor */
|
|
64656
|
+
function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig0() {
|
|
64657
|
+
/*<skip>*/
|
|
64658
|
+
}
|
|
64659
|
+
$h_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype;
|
|
64660
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.name__T = (function() {
|
|
64661
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name
|
|
64662
|
+
});
|
|
64663
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.expectedArgs__T = (function() {
|
|
64664
|
+
return "()"
|
|
64665
|
+
});
|
|
64666
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.accepts__sci_Seq__Z = (function(argsValues) {
|
|
64667
|
+
return $n(argsValues).isEmpty__Z()
|
|
64668
|
+
});
|
|
64669
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productPrefix__T = (function() {
|
|
64670
|
+
return "MethodSig0"
|
|
64671
|
+
});
|
|
64672
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productArity__I = (function() {
|
|
64673
|
+
return 3
|
|
64674
|
+
});
|
|
64675
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productElement__I__O = (function(x$1) {
|
|
64676
|
+
switch (x$1) {
|
|
64677
|
+
case 0: {
|
|
64678
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name;
|
|
64679
|
+
break
|
|
64680
|
+
}
|
|
64681
|
+
case 1: {
|
|
64682
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
|
|
64683
|
+
break
|
|
64684
|
+
}
|
|
64685
|
+
case 2: {
|
|
64686
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
|
|
64687
|
+
break
|
|
64688
|
+
}
|
|
64689
|
+
default: {
|
|
64690
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
64691
|
+
}
|
|
64692
|
+
}
|
|
64693
|
+
});
|
|
64694
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.productIterator__sc_Iterator = (function() {
|
|
64695
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
64696
|
+
});
|
|
64697
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.hashCode__I = (function() {
|
|
64698
|
+
var this$2 = $m_s_util_hashing_MurmurHash3$();
|
|
64699
|
+
return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
|
|
64700
|
+
});
|
|
64701
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.toString__T = (function() {
|
|
64702
|
+
return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
|
|
64703
|
+
});
|
|
64704
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.equals__O__Z = (function(x$1) {
|
|
64705
|
+
if ((this === x$1)) {
|
|
64706
|
+
return true
|
|
64707
|
+
} 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))) {
|
|
64708
|
+
var MethodSig0$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(x$1);
|
|
64709
|
+
if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name === $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_name)) {
|
|
64710
|
+
var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
|
|
64711
|
+
var x$2 = $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_returnType;
|
|
64712
|
+
var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
|
|
64713
|
+
} else {
|
|
64714
|
+
var $$x1 = false
|
|
64715
|
+
};
|
|
64716
|
+
if ($$x1) {
|
|
64717
|
+
var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
|
|
64718
|
+
var x$4 = $n(MethodSig0$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig0__f_method;
|
|
64719
|
+
if (((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))) {
|
|
64720
|
+
$n(MethodSig0$1);
|
|
64721
|
+
return true
|
|
64722
|
+
} else {
|
|
64723
|
+
return false
|
|
64724
|
+
}
|
|
64725
|
+
} else {
|
|
64726
|
+
return false
|
|
64727
|
+
}
|
|
64728
|
+
} else {
|
|
64729
|
+
return false
|
|
64730
|
+
}
|
|
64731
|
+
});
|
|
64732
|
+
function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj) {
|
|
64733
|
+
return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig0"))
|
|
64734
|
+
}
|
|
64735
|
+
function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) {
|
|
64736
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig0)))
|
|
64737
|
+
}
|
|
64738
|
+
function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) {
|
|
64739
|
+
return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig0(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig0;", depth))
|
|
64740
|
+
}
|
|
64741
|
+
var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig0 = new $TypeData().initClass({
|
|
64742
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig0: 0
|
|
64743
|
+
}, false, "io.kaitai.struct.translators.CommonMethods$MethodSig0", {
|
|
64744
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig0: 1,
|
|
64745
|
+
O: 1,
|
|
64746
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
|
|
64747
|
+
s_Product: 1,
|
|
64748
|
+
s_Equals: 1,
|
|
64749
|
+
Ljava_io_Serializable: 1
|
|
64750
|
+
});
|
|
64751
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig0.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig0;
|
|
64752
|
+
/** @constructor */
|
|
64753
|
+
function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(outer, name, returnType, argTypes, method) {
|
|
64754
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name = null;
|
|
64755
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType = null;
|
|
64756
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes = null;
|
|
64757
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method = null;
|
|
64758
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer = null;
|
|
64759
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name = name;
|
|
64760
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType = returnType;
|
|
64761
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes = argTypes;
|
|
64762
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method = method;
|
|
64763
|
+
if ((outer === null)) {
|
|
64764
|
+
$n(null)
|
|
64765
|
+
} else {
|
|
64766
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_$outer = outer
|
|
64767
|
+
}
|
|
64768
|
+
}
|
|
64769
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype = new $h_O();
|
|
64770
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1;
|
|
64771
|
+
/** @constructor */
|
|
64772
|
+
function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig1() {
|
|
64773
|
+
/*<skip>*/
|
|
64774
|
+
}
|
|
64775
|
+
$h_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype;
|
|
64776
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.name__T = (function() {
|
|
64777
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name
|
|
64778
|
+
});
|
|
64779
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.expectedArgs__T = (function() {
|
|
64780
|
+
return (("(" + this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes) + ")")
|
|
64781
|
+
});
|
|
64782
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.accepts__sci_Seq__Z = (function(argsValues) {
|
|
64783
|
+
if ((argsValues !== null)) {
|
|
64784
|
+
$n($m_s_package$().s_package$__f_Seq);
|
|
64785
|
+
if (((new $c_sc_SeqFactory$UnapplySeqWrapper(argsValues), true) && ($n(argsValues).lengthCompare__I__I(1) === 0))) {
|
|
64786
|
+
var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(0));
|
|
64787
|
+
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)
|
|
64788
|
+
}
|
|
64789
|
+
};
|
|
64790
|
+
return false
|
|
64791
|
+
});
|
|
64792
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productPrefix__T = (function() {
|
|
64793
|
+
return "MethodSig1"
|
|
64794
|
+
});
|
|
64795
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productArity__I = (function() {
|
|
64796
|
+
return 4
|
|
64797
|
+
});
|
|
64798
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productElement__I__O = (function(x$1) {
|
|
64799
|
+
switch (x$1) {
|
|
64800
|
+
case 0: {
|
|
64801
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name;
|
|
64802
|
+
break
|
|
64803
|
+
}
|
|
64804
|
+
case 1: {
|
|
64805
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
|
|
64806
|
+
break
|
|
64807
|
+
}
|
|
64808
|
+
case 2: {
|
|
64809
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
|
|
64810
|
+
break
|
|
64811
|
+
}
|
|
64812
|
+
case 3: {
|
|
64813
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
|
|
64814
|
+
break
|
|
64815
|
+
}
|
|
64816
|
+
default: {
|
|
64817
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
64818
|
+
}
|
|
64819
|
+
}
|
|
64820
|
+
});
|
|
64821
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.productIterator__sc_Iterator = (function() {
|
|
64822
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
64823
|
+
});
|
|
64824
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.hashCode__I = (function() {
|
|
64825
|
+
var this$2 = $m_s_util_hashing_MurmurHash3$();
|
|
64826
|
+
return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
|
|
64827
|
+
});
|
|
64828
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.toString__T = (function() {
|
|
64829
|
+
return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
|
|
64830
|
+
});
|
|
64831
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.equals__O__Z = (function(x$1) {
|
|
64832
|
+
if ((this === x$1)) {
|
|
64833
|
+
return true
|
|
64834
|
+
} 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))) {
|
|
64835
|
+
var MethodSig1$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(x$1);
|
|
64836
|
+
if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name === $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_name)) {
|
|
64837
|
+
var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
|
|
64838
|
+
var x$2 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_returnType;
|
|
64839
|
+
var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
|
|
64840
|
+
} else {
|
|
64841
|
+
var $$x1 = false
|
|
64842
|
+
};
|
|
64843
|
+
if ($$x1) {
|
|
64844
|
+
var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
|
|
64845
|
+
var x$4 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_argTypes;
|
|
64846
|
+
if ((x$3 === null)) {
|
|
64847
|
+
var $$x2 = (x$4 === null)
|
|
64848
|
+
} else {
|
|
64849
|
+
var this$1 = $n(x$3);
|
|
64850
|
+
var $$x2 = (this$1 === x$4)
|
|
64851
|
+
};
|
|
64852
|
+
if ($$x2) {
|
|
64853
|
+
var x$5 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
|
|
64854
|
+
var x$6 = $n(MethodSig1$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig1__f_method;
|
|
64855
|
+
if ((x$5 === null)) {
|
|
64856
|
+
var $$x3 = (x$6 === null)
|
|
64857
|
+
} else {
|
|
64858
|
+
var this$2 = $n(x$5);
|
|
64859
|
+
var $$x3 = (this$2 === x$6)
|
|
64860
|
+
};
|
|
64861
|
+
if ($$x3) {
|
|
64862
|
+
$n(MethodSig1$1);
|
|
64863
|
+
return true
|
|
64864
|
+
} else {
|
|
64865
|
+
return false
|
|
64866
|
+
}
|
|
64867
|
+
} else {
|
|
64868
|
+
return false
|
|
64869
|
+
}
|
|
64870
|
+
} else {
|
|
64871
|
+
return false
|
|
64872
|
+
}
|
|
64873
|
+
} else {
|
|
64874
|
+
return false
|
|
64875
|
+
}
|
|
64876
|
+
});
|
|
64877
|
+
function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj) {
|
|
64878
|
+
return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig1"))
|
|
64879
|
+
}
|
|
64880
|
+
function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) {
|
|
64881
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig1)))
|
|
64882
|
+
}
|
|
64883
|
+
function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) {
|
|
64884
|
+
return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig1(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig1;", depth))
|
|
64885
|
+
}
|
|
64886
|
+
var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig1 = new $TypeData().initClass({
|
|
64887
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig1: 0
|
|
64888
|
+
}, false, "io.kaitai.struct.translators.CommonMethods$MethodSig1", {
|
|
64889
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig1: 1,
|
|
64890
|
+
O: 1,
|
|
64891
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
|
|
64892
|
+
s_Product: 1,
|
|
64893
|
+
s_Equals: 1,
|
|
64894
|
+
Ljava_io_Serializable: 1
|
|
64895
|
+
});
|
|
64896
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig1.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig1;
|
|
64897
|
+
/** @constructor */
|
|
64898
|
+
function $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(outer, name, returnType, argTypes, method) {
|
|
64899
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name = null;
|
|
64900
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType = null;
|
|
64901
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes = null;
|
|
64902
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method = null;
|
|
64903
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer = null;
|
|
64904
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name = name;
|
|
64905
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType = returnType;
|
|
64906
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes = argTypes;
|
|
64907
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method = method;
|
|
64908
|
+
if ((outer === null)) {
|
|
64909
|
+
$n(null)
|
|
64910
|
+
} else {
|
|
64911
|
+
this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_$outer = outer
|
|
64912
|
+
}
|
|
64913
|
+
}
|
|
64914
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype = new $h_O();
|
|
64915
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.constructor = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2;
|
|
64916
|
+
/** @constructor */
|
|
64917
|
+
function $h_Lio_kaitai_struct_translators_CommonMethods$MethodSig2() {
|
|
64918
|
+
/*<skip>*/
|
|
64919
|
+
}
|
|
64920
|
+
$h_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype = $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype;
|
|
64921
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.name__T = (function() {
|
|
64922
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name
|
|
64923
|
+
});
|
|
64924
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.expectedArgs__T = (function() {
|
|
64925
|
+
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) + ")")
|
|
64926
|
+
});
|
|
64927
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.accepts__sci_Seq__Z = (function(argsValues) {
|
|
64928
|
+
if ((argsValues !== null)) {
|
|
64929
|
+
$n($m_s_package$().s_package$__f_Seq);
|
|
64930
|
+
if (((new $c_sc_SeqFactory$UnapplySeqWrapper(argsValues), true) && ($n(argsValues).lengthCompare__I__I(2) === 0))) {
|
|
64931
|
+
var arg0 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(0));
|
|
64932
|
+
var arg1 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(argsValues).apply__I__O(1));
|
|
64933
|
+
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)))
|
|
64934
|
+
}
|
|
64935
|
+
};
|
|
64936
|
+
return false
|
|
64937
|
+
});
|
|
64938
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productPrefix__T = (function() {
|
|
64939
|
+
return "MethodSig2"
|
|
64940
|
+
});
|
|
64941
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productArity__I = (function() {
|
|
64942
|
+
return 4
|
|
64943
|
+
});
|
|
64944
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productElement__I__O = (function(x$1) {
|
|
64945
|
+
switch (x$1) {
|
|
64946
|
+
case 0: {
|
|
64947
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name;
|
|
64948
|
+
break
|
|
64949
|
+
}
|
|
64950
|
+
case 1: {
|
|
64951
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
|
|
64952
|
+
break
|
|
64953
|
+
}
|
|
64954
|
+
case 2: {
|
|
64955
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
|
|
64956
|
+
break
|
|
64957
|
+
}
|
|
64958
|
+
case 3: {
|
|
64959
|
+
return this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
|
|
64960
|
+
break
|
|
64961
|
+
}
|
|
64962
|
+
default: {
|
|
64963
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
64964
|
+
}
|
|
64965
|
+
}
|
|
64966
|
+
});
|
|
64967
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.productIterator__sc_Iterator = (function() {
|
|
64968
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
64969
|
+
});
|
|
64970
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.hashCode__I = (function() {
|
|
64971
|
+
var this$2 = $m_s_util_hashing_MurmurHash3$();
|
|
64972
|
+
return this$2.productHash__s_Product__I__Z__I(this, (-889275714), false)
|
|
64973
|
+
});
|
|
64974
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.toString__T = (function() {
|
|
64975
|
+
return $m_sr_ScalaRunTime$()._toString__s_Product__T(this)
|
|
64976
|
+
});
|
|
64977
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.equals__O__Z = (function(x$1) {
|
|
64978
|
+
if ((this === x$1)) {
|
|
64979
|
+
return true
|
|
64980
|
+
} 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))) {
|
|
64981
|
+
var MethodSig2$1 = $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(x$1);
|
|
64982
|
+
if ((this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name === $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_name)) {
|
|
64983
|
+
var x = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
|
|
64984
|
+
var x$2 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_returnType;
|
|
64985
|
+
var $$x1 = ((x === null) ? (x$2 === null) : $n(x).equals__O__Z(x$2))
|
|
64986
|
+
} else {
|
|
64987
|
+
var $$x1 = false
|
|
64988
|
+
};
|
|
64989
|
+
if ($$x1) {
|
|
64990
|
+
var x$3 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
|
|
64991
|
+
var x$4 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_argTypes;
|
|
64992
|
+
if (((x$3 === null) ? (x$4 === null) : $n(x$3).equals__O__Z(x$4))) {
|
|
64993
|
+
var x$5 = this.Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
|
|
64994
|
+
var x$6 = $n(MethodSig2$1).Lio_kaitai_struct_translators_CommonMethods$MethodSig2__f_method;
|
|
64995
|
+
if ((x$5 === null)) {
|
|
64996
|
+
var $$x2 = (x$6 === null)
|
|
64997
|
+
} else {
|
|
64998
|
+
var this$1 = $n(x$5);
|
|
64999
|
+
var $$x2 = (this$1 === x$6)
|
|
65000
|
+
};
|
|
65001
|
+
if ($$x2) {
|
|
65002
|
+
$n(MethodSig2$1);
|
|
65003
|
+
return true
|
|
65004
|
+
} else {
|
|
65005
|
+
return false
|
|
65006
|
+
}
|
|
65007
|
+
} else {
|
|
65008
|
+
return false
|
|
65009
|
+
}
|
|
65010
|
+
} else {
|
|
65011
|
+
return false
|
|
65012
|
+
}
|
|
65013
|
+
} else {
|
|
65014
|
+
return false
|
|
65015
|
+
}
|
|
65016
|
+
});
|
|
65017
|
+
function $as_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj) {
|
|
65018
|
+
return (((obj instanceof $c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.translators.CommonMethods$MethodSig2"))
|
|
65019
|
+
}
|
|
65020
|
+
function $isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) {
|
|
65021
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_translators_CommonMethods$MethodSig2)))
|
|
65022
|
+
}
|
|
65023
|
+
function $asArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) {
|
|
65024
|
+
return (($isArrayOf_Lio_kaitai_struct_translators_CommonMethods$MethodSig2(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.translators.CommonMethods$MethodSig2;", depth))
|
|
65025
|
+
}
|
|
65026
|
+
var $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig2 = new $TypeData().initClass({
|
|
65027
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig2: 0
|
|
65028
|
+
}, false, "io.kaitai.struct.translators.CommonMethods$MethodSig2", {
|
|
65029
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig2: 1,
|
|
65030
|
+
O: 1,
|
|
65031
|
+
Lio_kaitai_struct_translators_CommonMethods$MethodSig: 1,
|
|
65032
|
+
s_Product: 1,
|
|
65033
|
+
s_Equals: 1,
|
|
65034
|
+
Ljava_io_Serializable: 1
|
|
65035
|
+
});
|
|
65036
|
+
$c_Lio_kaitai_struct_translators_CommonMethods$MethodSig2.prototype.$classData = $d_Lio_kaitai_struct_translators_CommonMethods$MethodSig2;
|
|
65037
|
+
/** @constructor */
|
|
65038
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
|
|
65039
|
+
/*<skip>*/
|
|
65040
|
+
}
|
|
65041
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype = new $h_O();
|
|
65042
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
|
|
65043
|
+
/** @constructor */
|
|
65044
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
|
|
65045
|
+
/*<skip>*/
|
|
65046
|
+
}
|
|
65047
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype;
|
|
65048
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.toString__T = (function() {
|
|
65049
|
+
return "array"
|
|
65050
|
+
});
|
|
65051
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productPrefix__T = (function() {
|
|
65052
|
+
return "ArrayArg"
|
|
65053
|
+
});
|
|
65054
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productArity__I = (function() {
|
|
65055
|
+
return 0
|
|
65056
|
+
});
|
|
65057
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productElement__I__O = (function(x$1) {
|
|
65058
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
65059
|
+
});
|
|
65060
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.productIterator__sc_Iterator = (function() {
|
|
65061
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
65062
|
+
});
|
|
65063
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.hashCode__I = (function() {
|
|
65064
|
+
return (-1228265123)
|
|
65065
|
+
});
|
|
65066
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$ = new $TypeData().initClass({
|
|
65067
|
+
Lio_kaitai_struct_translators_MethodArgType$ArrayArg$: 0
|
|
65068
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$ArrayArg$", {
|
|
65069
|
+
Lio_kaitai_struct_translators_MethodArgType$ArrayArg$: 1,
|
|
65070
|
+
O: 1,
|
|
65071
|
+
Lio_kaitai_struct_translators_MethodArgType: 1,
|
|
65072
|
+
s_Product: 1,
|
|
65073
|
+
s_Equals: 1,
|
|
65074
|
+
Ljava_io_Serializable: 1
|
|
65075
|
+
});
|
|
65076
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
|
|
65077
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$;
|
|
65078
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$() {
|
|
65079
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$)) {
|
|
65080
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$()
|
|
65081
|
+
};
|
|
65082
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$ArrayArg$
|
|
65083
|
+
}
|
|
65084
|
+
/** @constructor */
|
|
65085
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
|
|
65086
|
+
/*<skip>*/
|
|
65087
|
+
}
|
|
65088
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype = new $h_O();
|
|
65089
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
|
|
65090
|
+
/** @constructor */
|
|
65091
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
|
|
65092
|
+
/*<skip>*/
|
|
65093
|
+
}
|
|
65094
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype;
|
|
65095
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.toString__T = (function() {
|
|
65096
|
+
return "boolean"
|
|
65097
|
+
});
|
|
65098
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productPrefix__T = (function() {
|
|
65099
|
+
return "BooleanArg"
|
|
65100
|
+
});
|
|
65101
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productArity__I = (function() {
|
|
65102
|
+
return 0
|
|
65103
|
+
});
|
|
65104
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productElement__I__O = (function(x$1) {
|
|
65105
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
65106
|
+
});
|
|
65107
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.productIterator__sc_Iterator = (function() {
|
|
65108
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
65109
|
+
});
|
|
65110
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.hashCode__I = (function() {
|
|
65111
|
+
return 1380065582
|
|
65112
|
+
});
|
|
65113
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$ = new $TypeData().initClass({
|
|
65114
|
+
Lio_kaitai_struct_translators_MethodArgType$BooleanArg$: 0
|
|
65115
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$BooleanArg$", {
|
|
65116
|
+
Lio_kaitai_struct_translators_MethodArgType$BooleanArg$: 1,
|
|
65117
|
+
O: 1,
|
|
65118
|
+
Lio_kaitai_struct_translators_MethodArgType: 1,
|
|
65119
|
+
s_Product: 1,
|
|
65120
|
+
s_Equals: 1,
|
|
65121
|
+
Ljava_io_Serializable: 1
|
|
65122
|
+
});
|
|
65123
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
|
|
65124
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$;
|
|
65125
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$() {
|
|
65126
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$)) {
|
|
65127
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$()
|
|
65128
|
+
};
|
|
65129
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$BooleanArg$
|
|
65130
|
+
}
|
|
65131
|
+
/** @constructor */
|
|
65132
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
|
|
65133
|
+
/*<skip>*/
|
|
65134
|
+
}
|
|
65135
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype = new $h_O();
|
|
65136
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
|
|
65137
|
+
/** @constructor */
|
|
65138
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
|
|
65139
|
+
/*<skip>*/
|
|
65140
|
+
}
|
|
65141
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype;
|
|
65142
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.toString__T = (function() {
|
|
65143
|
+
return "byte array"
|
|
65144
|
+
});
|
|
65145
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productPrefix__T = (function() {
|
|
65146
|
+
return "BytesArg"
|
|
65147
|
+
});
|
|
65148
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productArity__I = (function() {
|
|
65149
|
+
return 0
|
|
65150
|
+
});
|
|
65151
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productElement__I__O = (function(x$1) {
|
|
65152
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
65153
|
+
});
|
|
65154
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.productIterator__sc_Iterator = (function() {
|
|
65155
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
65156
|
+
});
|
|
65157
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.hashCode__I = (function() {
|
|
65158
|
+
return (-1802089973)
|
|
65159
|
+
});
|
|
65160
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$BytesArg$ = new $TypeData().initClass({
|
|
65161
|
+
Lio_kaitai_struct_translators_MethodArgType$BytesArg$: 0
|
|
65162
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$BytesArg$", {
|
|
65163
|
+
Lio_kaitai_struct_translators_MethodArgType$BytesArg$: 1,
|
|
65164
|
+
O: 1,
|
|
65165
|
+
Lio_kaitai_struct_translators_MethodArgType: 1,
|
|
65166
|
+
s_Product: 1,
|
|
65167
|
+
s_Equals: 1,
|
|
65168
|
+
Ljava_io_Serializable: 1
|
|
65169
|
+
});
|
|
65170
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
|
|
65171
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$;
|
|
65172
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$BytesArg$() {
|
|
65173
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$)) {
|
|
65174
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$BytesArg$()
|
|
65175
|
+
};
|
|
65176
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$BytesArg$
|
|
65177
|
+
}
|
|
65178
|
+
/** @constructor */
|
|
65179
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
|
|
65180
|
+
/*<skip>*/
|
|
65181
|
+
}
|
|
65182
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype = new $h_O();
|
|
65183
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
|
|
65184
|
+
/** @constructor */
|
|
65185
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
|
|
65186
|
+
/*<skip>*/
|
|
65187
|
+
}
|
|
65188
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype;
|
|
65189
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.toString__T = (function() {
|
|
65190
|
+
return "float"
|
|
65191
|
+
});
|
|
65192
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productPrefix__T = (function() {
|
|
65193
|
+
return "FloatArg"
|
|
65194
|
+
});
|
|
65195
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productArity__I = (function() {
|
|
65196
|
+
return 0
|
|
65197
|
+
});
|
|
65198
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productElement__I__O = (function(x$1) {
|
|
65199
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
65200
|
+
});
|
|
65201
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.productIterator__sc_Iterator = (function() {
|
|
65202
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
65203
|
+
});
|
|
65204
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.hashCode__I = (function() {
|
|
65205
|
+
return 2074728058
|
|
65206
|
+
});
|
|
65207
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$FloatArg$ = new $TypeData().initClass({
|
|
65208
|
+
Lio_kaitai_struct_translators_MethodArgType$FloatArg$: 0
|
|
65209
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$FloatArg$", {
|
|
65210
|
+
Lio_kaitai_struct_translators_MethodArgType$FloatArg$: 1,
|
|
65211
|
+
O: 1,
|
|
65212
|
+
Lio_kaitai_struct_translators_MethodArgType: 1,
|
|
65213
|
+
s_Product: 1,
|
|
65214
|
+
s_Equals: 1,
|
|
65215
|
+
Ljava_io_Serializable: 1
|
|
65216
|
+
});
|
|
65217
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
|
|
65218
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$;
|
|
65219
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$FloatArg$() {
|
|
65220
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$)) {
|
|
65221
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$FloatArg$()
|
|
65222
|
+
};
|
|
65223
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$FloatArg$
|
|
65224
|
+
}
|
|
65225
|
+
/** @constructor */
|
|
65226
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
|
|
65227
|
+
/*<skip>*/
|
|
65228
|
+
}
|
|
65229
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype = new $h_O();
|
|
65230
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
|
|
65231
|
+
/** @constructor */
|
|
65232
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
|
|
65233
|
+
/*<skip>*/
|
|
65234
|
+
}
|
|
65235
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype;
|
|
65236
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.toString__T = (function() {
|
|
65237
|
+
return "integer"
|
|
65238
|
+
});
|
|
65239
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productPrefix__T = (function() {
|
|
65240
|
+
return "IntArg"
|
|
65241
|
+
});
|
|
65242
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productArity__I = (function() {
|
|
65243
|
+
return 0
|
|
65244
|
+
});
|
|
65245
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productElement__I__O = (function(x$1) {
|
|
65246
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
65247
|
+
});
|
|
65248
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.productIterator__sc_Iterator = (function() {
|
|
65249
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
65250
|
+
});
|
|
65251
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.hashCode__I = (function() {
|
|
65252
|
+
return (-2099930105)
|
|
65253
|
+
});
|
|
65254
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$IntArg$ = new $TypeData().initClass({
|
|
65255
|
+
Lio_kaitai_struct_translators_MethodArgType$IntArg$: 0
|
|
65256
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$IntArg$", {
|
|
65257
|
+
Lio_kaitai_struct_translators_MethodArgType$IntArg$: 1,
|
|
65258
|
+
O: 1,
|
|
65259
|
+
Lio_kaitai_struct_translators_MethodArgType: 1,
|
|
65260
|
+
s_Product: 1,
|
|
65261
|
+
s_Equals: 1,
|
|
65262
|
+
Ljava_io_Serializable: 1
|
|
65263
|
+
});
|
|
65264
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$IntArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
|
|
65265
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$;
|
|
65266
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$IntArg$() {
|
|
65267
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$IntArg$)) {
|
|
65268
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$IntArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$IntArg$()
|
|
65269
|
+
};
|
|
65270
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$IntArg$
|
|
65271
|
+
}
|
|
65272
|
+
/** @constructor */
|
|
65273
|
+
function $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
|
|
65274
|
+
/*<skip>*/
|
|
65275
|
+
}
|
|
65276
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype = new $h_O();
|
|
65277
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.constructor = $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
|
|
65278
|
+
/** @constructor */
|
|
65279
|
+
function $h_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
|
|
65280
|
+
/*<skip>*/
|
|
65281
|
+
}
|
|
65282
|
+
$h_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype = $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype;
|
|
65283
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.toString__T = (function() {
|
|
65284
|
+
return "string"
|
|
65285
|
+
});
|
|
65286
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productPrefix__T = (function() {
|
|
65287
|
+
return "StrArg"
|
|
65288
|
+
});
|
|
65289
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productArity__I = (function() {
|
|
65290
|
+
return 0
|
|
65291
|
+
});
|
|
65292
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productElement__I__O = (function(x$1) {
|
|
65293
|
+
return $m_sr_Statics$().ioobe__I__O(x$1)
|
|
65294
|
+
});
|
|
65295
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.productIterator__sc_Iterator = (function() {
|
|
65296
|
+
return new $c_sr_ScalaRunTime$$anon$1(this)
|
|
65297
|
+
});
|
|
65298
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.hashCode__I = (function() {
|
|
65299
|
+
return (-1808157051)
|
|
65300
|
+
});
|
|
65301
|
+
var $d_Lio_kaitai_struct_translators_MethodArgType$StrArg$ = new $TypeData().initClass({
|
|
65302
|
+
Lio_kaitai_struct_translators_MethodArgType$StrArg$: 0
|
|
65303
|
+
}, false, "io.kaitai.struct.translators.MethodArgType$StrArg$", {
|
|
65304
|
+
Lio_kaitai_struct_translators_MethodArgType$StrArg$: 1,
|
|
65305
|
+
O: 1,
|
|
65306
|
+
Lio_kaitai_struct_translators_MethodArgType: 1,
|
|
65307
|
+
s_Product: 1,
|
|
65308
|
+
s_Equals: 1,
|
|
65309
|
+
Ljava_io_Serializable: 1
|
|
65310
|
+
});
|
|
65311
|
+
$c_Lio_kaitai_struct_translators_MethodArgType$StrArg$.prototype.$classData = $d_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
|
|
65312
|
+
var $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$;
|
|
65313
|
+
function $m_Lio_kaitai_struct_translators_MethodArgType$StrArg$() {
|
|
65314
|
+
if ((!$n_Lio_kaitai_struct_translators_MethodArgType$StrArg$)) {
|
|
65315
|
+
$n_Lio_kaitai_struct_translators_MethodArgType$StrArg$ = new $c_Lio_kaitai_struct_translators_MethodArgType$StrArg$()
|
|
65316
|
+
};
|
|
65317
|
+
return $n_Lio_kaitai_struct_translators_MethodArgType$StrArg$
|
|
65318
|
+
}
|
|
65319
|
+
/** @constructor */
|
|
64353
65320
|
function $c_Lio_kaitai_struct_translators_ResultLocalVar(n) {
|
|
64354
65321
|
this.Lio_kaitai_struct_translators_ResultLocalVar__f_n = 0;
|
|
64355
65322
|
this.Lio_kaitai_struct_translators_ResultLocalVar__f_n = n
|
|
@@ -73062,6 +74029,26 @@ var $d_Lio_kaitai_struct_precompile_TypeUndecidedError = new $TypeData().initCla
|
|
|
73062
74029
|
Ljava_io_Serializable: 1
|
|
73063
74030
|
});
|
|
73064
74031
|
$c_Lio_kaitai_struct_precompile_TypeUndecidedError.prototype.$classData = $d_Lio_kaitai_struct_precompile_TypeUndecidedError;
|
|
74032
|
+
class $c_Lio_kaitai_struct_precompile_WrongMethodCall extends $c_Lio_kaitai_struct_precompile_ExpressionError {
|
|
74033
|
+
constructor(dataType, methodName, expectedSigs, actualSig) {
|
|
74034
|
+
super();
|
|
74035
|
+
var this$1 = $n(expectedSigs);
|
|
74036
|
+
var msg = ((((((("wrong arguments to method call `" + methodName) + "` on ") + dataType) + ": expected ") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, "", " or ", "")) + ", got ") + actualSig);
|
|
74037
|
+
$ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
|
|
74038
|
+
};
|
|
74039
|
+
}
|
|
74040
|
+
var $d_Lio_kaitai_struct_precompile_WrongMethodCall = new $TypeData().initClass({
|
|
74041
|
+
Lio_kaitai_struct_precompile_WrongMethodCall: 0
|
|
74042
|
+
}, false, "io.kaitai.struct.precompile.WrongMethodCall", {
|
|
74043
|
+
Lio_kaitai_struct_precompile_WrongMethodCall: 1,
|
|
74044
|
+
Lio_kaitai_struct_precompile_ExpressionError: 1,
|
|
74045
|
+
jl_RuntimeException: 1,
|
|
74046
|
+
jl_Exception: 1,
|
|
74047
|
+
jl_Throwable: 1,
|
|
74048
|
+
O: 1,
|
|
74049
|
+
Ljava_io_Serializable: 1
|
|
74050
|
+
});
|
|
74051
|
+
$c_Lio_kaitai_struct_precompile_WrongMethodCall.prototype.$classData = $d_Lio_kaitai_struct_precompile_WrongMethodCall;
|
|
73065
74052
|
/** @constructor */
|
|
73066
74053
|
function $c_Lio_kaitai_struct_problems_EnumNotFoundErr(name, curClass, path, fileName) {
|
|
73067
74054
|
this.Lio_kaitai_struct_problems_EnumNotFoundErr__f_name = null;
|
|
@@ -76268,6 +77255,18 @@ var $d_scm_HashSet$$anon$3 = new $TypeData().initClass({
|
|
|
76268
77255
|
sc_IterableOnceOps: 1
|
|
76269
77256
|
});
|
|
76270
77257
|
$c_scm_HashSet$$anon$3.prototype.$classData = $d_scm_HashSet$$anon$3;
|
|
77258
|
+
function $is_scm_Iterable(obj) {
|
|
77259
|
+
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scm_Iterable)))
|
|
77260
|
+
}
|
|
77261
|
+
function $as_scm_Iterable(obj) {
|
|
77262
|
+
return (($is_scm_Iterable(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.mutable.Iterable"))
|
|
77263
|
+
}
|
|
77264
|
+
function $isArrayOf_scm_Iterable(obj, depth) {
|
|
77265
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.scm_Iterable)))
|
|
77266
|
+
}
|
|
77267
|
+
function $asArrayOf_scm_Iterable(obj, depth) {
|
|
77268
|
+
return (($isArrayOf_scm_Iterable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.mutable.Iterable;", depth))
|
|
77269
|
+
}
|
|
76271
77270
|
/** @constructor */
|
|
76272
77271
|
function $c_s_math_Ordering$$anon$5(ord$2, f$3) {
|
|
76273
77272
|
this.s_math_Ordering$$anon$5__f_ord$2 = null;
|
|
@@ -77890,9 +78889,9 @@ var $d_Lio_kaitai_struct_format_ValueInstanceSpec = new $TypeData().initClass({
|
|
|
77890
78889
|
});
|
|
77891
78890
|
$c_Lio_kaitai_struct_format_ValueInstanceSpec.prototype.$classData = $d_Lio_kaitai_struct_format_ValueInstanceSpec;
|
|
77892
78891
|
class $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError extends $c_Lio_kaitai_struct_precompile_NotFoundError {
|
|
77893
|
-
constructor(label,
|
|
78892
|
+
constructor(label, enumName, enumDefPath) {
|
|
77894
78893
|
super();
|
|
77895
|
-
var msg = (((((((("unable to find enum member '" +
|
|
78894
|
+
var msg = (((((((("unable to find enum member '" + enumName) + "::") + label) + "' (enum '") + enumName) + "' defined at /") + enumDefPath) + ")");
|
|
77896
78895
|
$ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
|
|
77897
78896
|
};
|
|
77898
78897
|
}
|
|
@@ -78038,6 +79037,26 @@ var $d_Lio_kaitai_struct_precompile_MethodNotFoundError = new $TypeData().initCl
|
|
|
78038
79037
|
Ljava_io_Serializable: 1
|
|
78039
79038
|
});
|
|
78040
79039
|
$c_Lio_kaitai_struct_precompile_MethodNotFoundError.prototype.$classData = $d_Lio_kaitai_struct_precompile_MethodNotFoundError;
|
|
79040
|
+
class $c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg extends $c_Lio_kaitai_struct_precompile_NotFoundError {
|
|
79041
|
+
constructor(name, argType) {
|
|
79042
|
+
super();
|
|
79043
|
+
var msg = (((("don't know how to call method '" + name) + "' of object type '") + argType) + "'");
|
|
79044
|
+
$ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, msg, null, true, true)
|
|
79045
|
+
};
|
|
79046
|
+
}
|
|
79047
|
+
var $d_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg = new $TypeData().initClass({
|
|
79048
|
+
Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg: 0
|
|
79049
|
+
}, false, "io.kaitai.struct.precompile.MethodNotFoundErrorWithArg", {
|
|
79050
|
+
Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg: 1,
|
|
79051
|
+
Lio_kaitai_struct_precompile_NotFoundError: 1,
|
|
79052
|
+
Lio_kaitai_struct_precompile_ExpressionError: 1,
|
|
79053
|
+
jl_RuntimeException: 1,
|
|
79054
|
+
jl_Exception: 1,
|
|
79055
|
+
jl_Throwable: 1,
|
|
79056
|
+
O: 1,
|
|
79057
|
+
Ljava_io_Serializable: 1
|
|
79058
|
+
});
|
|
79059
|
+
$c_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg.prototype.$classData = $d_Lio_kaitai_struct_precompile_MethodNotFoundErrorWithArg;
|
|
78041
79060
|
class $c_Lio_kaitai_struct_precompile_TypeNotFoundError extends $c_Lio_kaitai_struct_precompile_NotFoundError {
|
|
78042
79061
|
constructor(name, curClass) {
|
|
78043
79062
|
super();
|
|
@@ -81406,12 +82425,14 @@ function $ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_tra
|
|
|
81406
82425
|
$thiz.Lio_kaitai_struct_translators_BaseTranslator__f_provider = provider;
|
|
81407
82426
|
$ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__($thiz, provider);
|
|
81408
82427
|
$f_Lio_kaitai_struct_translators_CommonLiterals__$init$__V($thiz);
|
|
82428
|
+
$f_Lio_kaitai_struct_translators_CommonMethods__$init$__V($thiz);
|
|
81409
82429
|
return $thiz
|
|
81410
82430
|
}
|
|
81411
82431
|
/** @constructor */
|
|
81412
82432
|
function $c_Lio_kaitai_struct_translators_BaseTranslator() {
|
|
81413
82433
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
81414
82434
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
82435
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
81415
82436
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null
|
|
81416
82437
|
}
|
|
81417
82438
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype = new $h_Lio_kaitai_struct_translators_TypeDetector();
|
|
@@ -81475,6 +82496,12 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strLiteralGenericCC__C
|
|
|
81475
82496
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.strLiteralUnicode__C__T = (function(code) {
|
|
81476
82497
|
return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralUnicode__C__T(this, code)
|
|
81477
82498
|
});
|
|
82499
|
+
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
|
|
82500
|
+
return this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE
|
|
82501
|
+
});
|
|
82502
|
+
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
|
|
82503
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = x$1
|
|
82504
|
+
});
|
|
81478
82505
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
|
|
81479
82506
|
return this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap
|
|
81480
82507
|
});
|
|
@@ -81799,9 +82826,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doInterpolatedStringLi
|
|
|
81799
82826
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.anyToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
81800
82827
|
var x1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(value);
|
|
81801
82828
|
if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
|
|
81802
|
-
|
|
81803
|
-
var base = new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(10));
|
|
81804
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(value, base)
|
|
82829
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
81805
82830
|
} else if ((x1 instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)) {
|
|
81806
82831
|
return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
81807
82832
|
} else {
|
|
@@ -81854,12 +82879,14 @@ function $c_Lio_kaitai_struct_translators_GoTranslator(out, provider, importList
|
|
|
81854
82879
|
this.Lio_kaitai_struct_translators_GoTranslator__f_IMPORT_CHARMAP = null;
|
|
81855
82880
|
this.Lio_kaitai_struct_translators_GoTranslator__f_ENCODINGS = null;
|
|
81856
82881
|
this.Lio_kaitai_struct_translators_GoTranslator__f_localVarNum = 0;
|
|
82882
|
+
this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE = null;
|
|
81857
82883
|
this.Lio_kaitai_struct_translators_GoTranslator__f_asciiCharQuoteMap = null;
|
|
81858
82884
|
this.Lio_kaitai_struct_translators_GoTranslator__f_out = out;
|
|
81859
82885
|
this.Lio_kaitai_struct_translators_GoTranslator__f_provider = provider;
|
|
81860
82886
|
this.Lio_kaitai_struct_translators_GoTranslator__f_importList = importList;
|
|
81861
82887
|
$ct_Lio_kaitai_struct_translators_TypeDetector__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
|
|
81862
82888
|
$f_Lio_kaitai_struct_translators_CommonLiterals__$init$__V(this);
|
|
82889
|
+
$f_Lio_kaitai_struct_translators_CommonMethods__$init$__V(this);
|
|
81863
82890
|
this.Lio_kaitai_struct_translators_GoTranslator__f_returnRes = $m_s_None$();
|
|
81864
82891
|
this.Lio_kaitai_struct_translators_GoTranslator__f_IMPORT_CHARMAP = "golang.org/x/text/encoding/charmap";
|
|
81865
82892
|
var this$22 = $n($m_s_Predef$().s_Predef$__f_Map);
|
|
@@ -81922,6 +82949,12 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralGenericCC__C__
|
|
|
81922
82949
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strLiteralUnicode__C__T = (function(code) {
|
|
81923
82950
|
return $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralUnicode__C__T(this, code)
|
|
81924
82951
|
});
|
|
82952
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.METHODS_BY_TYPE__sci_Map = (function() {
|
|
82953
|
+
return this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE
|
|
82954
|
+
});
|
|
82955
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.io$kaitai$struct$translators$CommonMethods$_setter_$METHODS_BY_TYPE_$eq__sci_Map__V = (function(x$1) {
|
|
82956
|
+
this.Lio_kaitai_struct_translators_GoTranslator__f_METHODS_BY_TYPE = x$1
|
|
82957
|
+
});
|
|
81925
82958
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
|
|
81926
82959
|
return this.Lio_kaitai_struct_translators_GoTranslator__f_asciiCharQuoteMap
|
|
81927
82960
|
});
|
|
@@ -82431,10 +83464,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strToInt__Lio_kaitai_str
|
|
|
82431
83464
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(s, from, to) {
|
|
82432
83465
|
return new $c_Lio_kaitai_struct_translators_ResultString((((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ":") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + "]"))
|
|
82433
83466
|
});
|
|
82434
|
-
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
83467
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(value) {
|
|
82435
83468
|
var this$1 = $n(this.Lio_kaitai_struct_translators_GoTranslator__f_importList);
|
|
82436
83469
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "strconv");
|
|
82437
|
-
return new $c_Lio_kaitai_struct_translators_ResultString(((
|
|
83470
|
+
return new $c_Lio_kaitai_struct_translators_ResultString((("strconv.Itoa(int64(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + "))"))
|
|
82438
83471
|
});
|
|
82439
83472
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString = (function(value) {
|
|
82440
83473
|
return new $c_Lio_kaitai_struct_translators_ResultString((("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")"))
|
|
@@ -82634,8 +83667,8 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.kaitaiStreamSize__Lio_ka
|
|
|
82634
83667
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
82635
83668
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString(value)
|
|
82636
83669
|
});
|
|
82637
|
-
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
82638
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
83670
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
83671
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value)
|
|
82639
83672
|
});
|
|
82640
83673
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, from, to) {
|
|
82641
83674
|
return this.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(s, from, to)
|
|
@@ -84168,6 +85201,7 @@ $c_Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes.prototype.$classData =
|
|
|
84168
85201
|
function $c_Lio_kaitai_struct_translators_CSharpTranslator(provider, importList) {
|
|
84169
85202
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
84170
85203
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
85204
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
84171
85205
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
84172
85206
|
this.Lio_kaitai_struct_translators_CSharpTranslator__f_importList = null;
|
|
84173
85207
|
this.Lio_kaitai_struct_translators_CSharpTranslator__f_asciiCharQuoteMap = null;
|
|
@@ -84301,10 +85335,8 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strToInt__Lio_kaitai
|
|
|
84301
85335
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
84302
85336
|
return (("(long) (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
84303
85337
|
});
|
|
84304
|
-
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84305
|
-
|
|
84306
|
-
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "System");
|
|
84307
|
-
return (((("Convert.ToString((long) (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + "), ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base)) + ")")
|
|
85338
|
+
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
85339
|
+
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").ToString()")
|
|
84308
85340
|
});
|
|
84309
85341
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
84310
85342
|
return (((("System.Text.Encoding.GetEncoding(\"" + encoding) + "\").GetString(") + bytesExpr) + ")")
|
|
@@ -84375,8 +85407,8 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strReverse__Lio_kait
|
|
|
84375
85407
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
84376
85408
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
84377
85409
|
});
|
|
84378
|
-
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84379
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85410
|
+
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85411
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
84380
85412
|
});
|
|
84381
85413
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84382
85414
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -84418,6 +85450,7 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.$classData = $d_Lio_
|
|
|
84418
85450
|
function $c_Lio_kaitai_struct_translators_JavaScriptTranslator(provider) {
|
|
84419
85451
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
84420
85452
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
85453
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
84421
85454
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
84422
85455
|
$ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider)
|
|
84423
85456
|
}
|
|
@@ -84533,8 +85566,8 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.boolToInt__Lio_k
|
|
|
84533
85566
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
84534
85567
|
return (("Math.trunc(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
84535
85568
|
});
|
|
84536
|
-
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84537
|
-
return ((
|
|
85569
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
85570
|
+
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").toString()")
|
|
84538
85571
|
});
|
|
84539
85572
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
84540
85573
|
return (((("KaitaiStream.bytesToStr(" + bytesExpr) + ", \"") + encoding) + "\")")
|
|
@@ -84594,8 +85627,8 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strReverse__Lio_
|
|
|
84594
85627
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
84595
85628
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
84596
85629
|
});
|
|
84597
|
-
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84598
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85630
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85631
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
84599
85632
|
});
|
|
84600
85633
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84601
85634
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -84631,6 +85664,7 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.$classData = $d_
|
|
|
84631
85664
|
function $c_Lio_kaitai_struct_translators_JavaTranslator(provider, importList) {
|
|
84632
85665
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
84633
85666
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
85667
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
84634
85668
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
84635
85669
|
this.Lio_kaitai_struct_translators_JavaTranslator__f_importList = null;
|
|
84636
85670
|
this.Lio_kaitai_struct_translators_JavaTranslator__f_importList = importList;
|
|
@@ -84813,8 +85847,8 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.enumToInt__Lio_kaitai_
|
|
|
84813
85847
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
84814
85848
|
return (("(int) (" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " + 0)")
|
|
84815
85849
|
});
|
|
84816
|
-
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84817
|
-
return ((
|
|
85850
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
85851
|
+
return (("Long.toString(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
84818
85852
|
});
|
|
84819
85853
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
84820
85854
|
var this$14 = $n($m_s_Predef$().s_Predef$__f_Map);
|
|
@@ -84928,8 +85962,8 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
84928
85962
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
84929
85963
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
84930
85964
|
});
|
|
84931
|
-
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
84932
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85965
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85966
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
84933
85967
|
});
|
|
84934
85968
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
84935
85969
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -84971,6 +86005,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.$classData = $d_Lio_ka
|
|
|
84971
86005
|
function $c_Lio_kaitai_struct_translators_NimTranslator(provider, importList) {
|
|
84972
86006
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
84973
86007
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
86008
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
84974
86009
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
84975
86010
|
this.Lio_kaitai_struct_translators_NimTranslator__f_importList = null;
|
|
84976
86011
|
this.Lio_kaitai_struct_translators_NimTranslator__f_importList = importList;
|
|
@@ -85191,7 +86226,7 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.enumToInt__Lio_kaitai_s
|
|
|
85191
86226
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85192
86227
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
85193
86228
|
});
|
|
85194
|
-
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86229
|
+
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85195
86230
|
var this$1 = $n(this.Lio_kaitai_struct_translators_NimTranslator__f_importList);
|
|
85196
86231
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "strutils");
|
|
85197
86232
|
return (("intToStr(int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + "))")
|
|
@@ -85233,8 +86268,8 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.strReverse__Lio_kaitai_
|
|
|
85233
86268
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
85234
86269
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
85235
86270
|
});
|
|
85236
|
-
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85237
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86271
|
+
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86272
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85238
86273
|
});
|
|
85239
86274
|
$c_Lio_kaitai_struct_translators_NimTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85240
86275
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -85288,6 +86323,7 @@ $c_Lio_kaitai_struct_translators_NimTranslator.prototype.$classData = $d_Lio_kai
|
|
|
85288
86323
|
function $c_Lio_kaitai_struct_translators_PerlTranslator(provider, importList) {
|
|
85289
86324
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
85290
86325
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
86326
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
85291
86327
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
85292
86328
|
this.Lio_kaitai_struct_translators_PerlTranslator__f_importList = null;
|
|
85293
86329
|
this.Lio_kaitai_struct_translators_PerlTranslator__f_asciiCharQuoteMap = null;
|
|
@@ -85463,31 +86499,8 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.boolToInt__Lio_kaitai_
|
|
|
85463
86499
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85464
86500
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
85465
86501
|
});
|
|
85466
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85467
|
-
|
|
85468
|
-
switch (baseStr) {
|
|
85469
|
-
case "2": {
|
|
85470
|
-
var format = "%b";
|
|
85471
|
-
break
|
|
85472
|
-
}
|
|
85473
|
-
case "8": {
|
|
85474
|
-
var format = "%o";
|
|
85475
|
-
break
|
|
85476
|
-
}
|
|
85477
|
-
case "10": {
|
|
85478
|
-
var format = "%d";
|
|
85479
|
-
break
|
|
85480
|
-
}
|
|
85481
|
-
case "16": {
|
|
85482
|
-
var format = "0x%X";
|
|
85483
|
-
break
|
|
85484
|
-
}
|
|
85485
|
-
default: {
|
|
85486
|
-
var format;
|
|
85487
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
85488
|
-
}
|
|
85489
|
-
};
|
|
85490
|
-
return (((("sprintf('" + format) + "', ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
86502
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
86503
|
+
return (("sprintf('%d', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
85491
86504
|
});
|
|
85492
86505
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
85493
86506
|
var this$1 = $n(this.Lio_kaitai_struct_translators_PerlTranslator__f_importList);
|
|
@@ -85604,8 +86617,8 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
85604
86617
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
85605
86618
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
85606
86619
|
});
|
|
85607
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85608
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86620
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86621
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85609
86622
|
});
|
|
85610
86623
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85611
86624
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -85656,6 +86669,7 @@ function $ct_Lio_kaitai_struct_translators_PythonTranslator__Lio_kaitai_struct_t
|
|
|
85656
86669
|
function $c_Lio_kaitai_struct_translators_PythonTranslator() {
|
|
85657
86670
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
85658
86671
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
86672
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
85659
86673
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
85660
86674
|
this.Lio_kaitai_struct_translators_PythonTranslator__f_importList = null;
|
|
85661
86675
|
this.Lio_kaitai_struct_translators_PythonTranslator__f_asciiCharQuoteMap = null
|
|
@@ -85764,31 +86778,8 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.boolToInt__Lio_kaita
|
|
|
85764
86778
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
85765
86779
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
85766
86780
|
});
|
|
85767
|
-
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85768
|
-
|
|
85769
|
-
switch (baseStr) {
|
|
85770
|
-
case "2": {
|
|
85771
|
-
var func = "bin";
|
|
85772
|
-
break
|
|
85773
|
-
}
|
|
85774
|
-
case "8": {
|
|
85775
|
-
var func = "oct";
|
|
85776
|
-
break
|
|
85777
|
-
}
|
|
85778
|
-
case "10": {
|
|
85779
|
-
var func = "str";
|
|
85780
|
-
break
|
|
85781
|
-
}
|
|
85782
|
-
case "16": {
|
|
85783
|
-
var func = "hex";
|
|
85784
|
-
break
|
|
85785
|
-
}
|
|
85786
|
-
default: {
|
|
85787
|
-
var func;
|
|
85788
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
85789
|
-
}
|
|
85790
|
-
};
|
|
85791
|
-
return (((func + "(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
86781
|
+
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
86782
|
+
return (("str(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
85792
86783
|
});
|
|
85793
86784
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
85794
86785
|
return (((("(" + bytesExpr) + ").decode(\"") + encoding) + "\")")
|
|
@@ -85897,8 +86888,8 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesSubscript__Lio_
|
|
|
85897
86888
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
85898
86889
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
85899
86890
|
});
|
|
85900
|
-
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
85901
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86891
|
+
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86892
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
85902
86893
|
});
|
|
85903
86894
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
85904
86895
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -85937,6 +86928,7 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.$classData = $d_Lio_
|
|
|
85937
86928
|
function $c_Lio_kaitai_struct_translators_RubyTranslator(provider) {
|
|
85938
86929
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
85939
86930
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
86931
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
85940
86932
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
85941
86933
|
this.Lio_kaitai_struct_translators_RubyTranslator__f_asciiCharQuoteMap = null;
|
|
85942
86934
|
$ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
|
|
@@ -86051,8 +87043,8 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.enumToInt__Lio_kaitai_
|
|
|
86051
87043
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
86052
87044
|
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ").to_i")
|
|
86053
87045
|
});
|
|
86054
|
-
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86055
|
-
return (
|
|
87046
|
+
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
87047
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i) + ".to_s")
|
|
86056
87048
|
});
|
|
86057
87049
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
86058
87050
|
return ((((("(" + bytesExpr) + ").force_encoding(\"") + encoding) + "\")") + ((encoding !== "UTF-8") ? ".encode('UTF-8')" : ""))
|
|
@@ -86147,8 +87139,8 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
86147
87139
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
86148
87140
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
86149
87141
|
});
|
|
86150
|
-
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86151
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87142
|
+
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87143
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
86152
87144
|
});
|
|
86153
87145
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86154
87146
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -86184,6 +87176,7 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.$classData = $d_Lio_ka
|
|
|
86184
87176
|
function $c_Lio_kaitai_struct_translators_RustTranslator(provider, config) {
|
|
86185
87177
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
86186
87178
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
87179
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
86187
87180
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
86188
87181
|
this.Lio_kaitai_struct_translators_RustTranslator__f_asciiCharQuoteMap = null;
|
|
86189
87182
|
$ct_Lio_kaitai_struct_translators_BaseTranslator__Lio_kaitai_struct_translators_TypeProvider__(this, provider);
|
|
@@ -86290,9 +87283,8 @@ $c_Lio_kaitai_struct_translators_RustTranslator.prototype.boolToInt__Lio_kaitai_
|
|
|
86290
87283
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
86291
87284
|
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v) + " as i32")
|
|
86292
87285
|
});
|
|
86293
|
-
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86294
|
-
|
|
86295
|
-
return ((baseStr === "10") ? (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i) + ".to_string()") : (((("base_convert(strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + "), 10, ") + baseStr) + ")"))
|
|
87286
|
+
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
87287
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i) + ".to_string()")
|
|
86296
87288
|
});
|
|
86297
87289
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
86298
87290
|
return ((encoding === "ASCII") ? (("String::from_utf8_lossy(" + bytesExpr) + ")") : (("panic!(\"Unimplemented encoding for bytesToStr: {}\", \"" + encoding) + "\")"))
|
|
@@ -86364,8 +87356,8 @@ $c_Lio_kaitai_struct_translators_RustTranslator.prototype.strLength__Lio_kaitai_
|
|
|
86364
87356
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
86365
87357
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
86366
87358
|
});
|
|
86367
|
-
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
86368
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87359
|
+
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87360
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
86369
87361
|
});
|
|
86370
87362
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
86371
87363
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -86994,6 +87986,7 @@ function $m_s_reflect_ManifestFactory$UnitManifest$() {
|
|
|
86994
87986
|
function $c_Lio_kaitai_struct_translators_ConstructTranslator(provider, importList) {
|
|
86995
87987
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
86996
87988
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
87989
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
86997
87990
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
86998
87991
|
this.Lio_kaitai_struct_translators_PythonTranslator__f_importList = null;
|
|
86999
87992
|
this.Lio_kaitai_struct_translators_PythonTranslator__f_asciiCharQuoteMap = null;
|
|
@@ -87053,6 +88046,7 @@ $c_Lio_kaitai_struct_translators_ConstructTranslator.prototype.$classData = $d_L
|
|
|
87053
88046
|
function $c_Lio_kaitai_struct_translators_CppTranslator(provider, importListSrc, importListHdr, config) {
|
|
87054
88047
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
87055
88048
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
88049
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
87056
88050
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
87057
88051
|
this.Lio_kaitai_struct_translators_CppTranslator__f_importListSrc = null;
|
|
87058
88052
|
this.Lio_kaitai_struct_translators_CppTranslator__f_importListHdr = null;
|
|
@@ -87312,13 +88306,8 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.boolToInt__Lio_kaitai_s
|
|
|
87312
88306
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
87313
88307
|
return (("static_cast<int>(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
87314
88308
|
});
|
|
87315
|
-
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87316
|
-
|
|
87317
|
-
if ((baseStr === "10")) {
|
|
87318
|
-
return (("kaitai::kstream::to_string(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87319
|
-
} else {
|
|
87320
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
87321
|
-
}
|
|
88309
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
88310
|
+
return (("kaitai::kstream::to_string(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87322
88311
|
});
|
|
87323
88312
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
87324
88313
|
return (((("kaitai::kstream::bytes_to_str(" + bytesExpr) + ", \"") + encoding) + "\")")
|
|
@@ -87425,8 +88414,8 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesSubscript__Lio_kai
|
|
|
87425
88414
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
87426
88415
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
87427
88416
|
});
|
|
87428
|
-
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87429
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
88417
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
88418
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
87430
88419
|
});
|
|
87431
88420
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87432
88421
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -87478,6 +88467,7 @@ function $p_Lio_kaitai_struct_translators_LuaTranslator__decEscapeByteArray__sci
|
|
|
87478
88467
|
function $c_Lio_kaitai_struct_translators_LuaTranslator(provider, importList) {
|
|
87479
88468
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
87480
88469
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
88470
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
87481
88471
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
87482
88472
|
this.Lio_kaitai_struct_translators_LuaTranslator__f_importList = null;
|
|
87483
88473
|
this.Lio_kaitai_struct_translators_LuaTranslator__f_asciiCharQuoteMap = null;
|
|
@@ -87594,13 +88584,8 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.boolToInt__Lio_kaitai_s
|
|
|
87594
88584
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
87595
88585
|
return (((((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " > 0) and math.floor(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ") or math.ceil(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
87596
88586
|
});
|
|
87597
|
-
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87598
|
-
|
|
87599
|
-
if ((baseStr === "10")) {
|
|
87600
|
-
return (("tostring(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87601
|
-
} else {
|
|
87602
|
-
throw $ct_jl_UnsupportedOperationException__T__(new $c_jl_UnsupportedOperationException(), baseStr)
|
|
87603
|
-
}
|
|
88587
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
88588
|
+
return (("tostring(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87604
88589
|
});
|
|
87605
88590
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
87606
88591
|
var this$1 = $n(this.Lio_kaitai_struct_translators_LuaTranslator__f_importList);
|
|
@@ -87761,8 +88746,8 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesFirst__Lio_kaitai_
|
|
|
87761
88746
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(container, idx) {
|
|
87762
88747
|
return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(container, idx)
|
|
87763
88748
|
});
|
|
87764
|
-
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87765
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
88749
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
88750
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
87766
88751
|
});
|
|
87767
88752
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
87768
88753
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
@@ -87802,6 +88787,7 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.$classData = $d_Lio_kai
|
|
|
87802
88787
|
function $c_Lio_kaitai_struct_translators_PHPTranslator(provider, config) {
|
|
87803
88788
|
this.Lio_kaitai_struct_translators_TypeDetector__f_provider = null;
|
|
87804
88789
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_provider = null;
|
|
88790
|
+
this.Lio_kaitai_struct_translators_BaseTranslator__f_METHODS_BY_TYPE = null;
|
|
87805
88791
|
this.Lio_kaitai_struct_translators_BaseTranslator__f_asciiCharQuoteMap = null;
|
|
87806
88792
|
this.Lio_kaitai_struct_translators_PHPTranslator__f_asciiCharQuoteMap = null;
|
|
87807
88793
|
this.Lio_kaitai_struct_translators_PHPTranslator__f_namespaceRef = null;
|
|
@@ -87934,9 +88920,8 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.boolToInt__Lio_kaitai_s
|
|
|
87934
88920
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
87935
88921
|
return (("intval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
87936
88922
|
});
|
|
87937
|
-
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
87938
|
-
|
|
87939
|
-
return ((baseStr === "10") ? (("strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")") : (((("base_convert(strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + "), 10, ") + baseStr) + ")"))
|
|
88923
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i) {
|
|
88924
|
+
return (("strval(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
87940
88925
|
});
|
|
87941
88926
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesToStr__T__T__T = (function(bytesExpr, encoding) {
|
|
87942
88927
|
return (((("\\Kaitai\\Struct\\Stream::bytesToStr(" + bytesExpr) + ", \"") + encoding) + "\")")
|
|
@@ -88050,8 +89035,8 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesSubscript__Lio_kai
|
|
|
88050
89035
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
88051
89036
|
return this.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
88052
89037
|
});
|
|
88053
|
-
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
88054
|
-
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$
|
|
89038
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
89039
|
+
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
88055
89040
|
});
|
|
88056
89041
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
88057
89042
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|