kaitai-struct-compiler 0.11.0-SNAPSHOT20250831.185636.2a7b8e3 → 0.11.0-SNAPSHOT20250907.163615.4233e4e
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 +154 -85
- package/package.json +1 -1
|
@@ -3038,8 +3038,8 @@ function $m_Lio_kaitai_struct_Utils$() {
|
|
|
3038
3038
|
function $c_Lio_kaitai_struct_Version$() {
|
|
3039
3039
|
this.Lio_kaitai_struct_Version$__f_version = null;
|
|
3040
3040
|
this.Lio_kaitai_struct_Version$__f_gitTime = null;
|
|
3041
|
-
this.Lio_kaitai_struct_Version$__f_version = "0.11-
|
|
3042
|
-
this.Lio_kaitai_struct_Version$__f_gitTime = "2025-
|
|
3041
|
+
this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20250907.163615.4233e4e";
|
|
3042
|
+
this.Lio_kaitai_struct_Version$__f_gitTime = "2025-09-07T16:36:15Z"
|
|
3043
3043
|
}
|
|
3044
3044
|
$c_Lio_kaitai_struct_Version$.prototype = new $h_O();
|
|
3045
3045
|
$c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
|
|
@@ -34254,7 +34254,7 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileClass__Lio_kaitai_struct_for
|
|
|
34254
34254
|
this.compileFetchInstancesProc__sci_List__V(this$9.appendedAll__sc_IterableOnce__sci_List(suffix));
|
|
34255
34255
|
if ($n(this.Lio_kaitai_struct_ClassCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readWrite) {
|
|
34256
34256
|
this.compileWrite__sci_List__sci_Map__s_Option__V($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_seq, $n(curClass).Lio_kaitai_struct_format_ClassSpec__f_instances, $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_meta).Lio_kaitai_struct_format_MetaSpec__f_endian);
|
|
34257
|
-
this.
|
|
34257
|
+
this.compileCheck__sci_List__sci_Map__V($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_seq, $n(curClass).Lio_kaitai_struct_format_ClassSpec__f_instances)
|
|
34258
34258
|
};
|
|
34259
34259
|
this.compileDestructor__Lio_kaitai_struct_format_ClassSpec__V(curClass);
|
|
34260
34260
|
if ($n(this.Lio_kaitai_struct_ClassCompiler__f_lang).innerClasses__Z()) {
|
|
@@ -34545,9 +34545,10 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileWrite__sci_List__sci_Map__s_
|
|
|
34545
34545
|
}
|
|
34546
34546
|
}
|
|
34547
34547
|
});
|
|
34548
|
-
$c_Lio_kaitai_struct_ClassCompiler.prototype.
|
|
34548
|
+
$c_Lio_kaitai_struct_ClassCompiler.prototype.compileCheck__sci_List__sci_Map__V = (function(seq, instances) {
|
|
34549
34549
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).checkHeader__V();
|
|
34550
34550
|
this.compileSeqCheck__sci_List__V(seq);
|
|
34551
|
+
this.compileInstCheck__sci_Map__V(instances);
|
|
34551
34552
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).checkFooter__V()
|
|
34552
34553
|
});
|
|
34553
34554
|
$c_Lio_kaitai_struct_ClassCompiler.prototype.compileCalcEndian__Lio_kaitai_struct_datatype_CalcEndian__V = (function(ce) {
|
|
@@ -34648,6 +34649,25 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileSeqCheck__sci_List__V = (fun
|
|
|
34648
34649
|
these = $as_sci_List($n(these).tail__O())
|
|
34649
34650
|
}
|
|
34650
34651
|
});
|
|
34652
|
+
$c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstCheck__sci_Map__V = (function(instances) {
|
|
34653
|
+
$n(instances).foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$1$2) => {
|
|
34654
|
+
var x0$1 = $as_T2(x0$1$2);
|
|
34655
|
+
if ((x0$1 !== null)) {
|
|
34656
|
+
var instName = $as_Lio_kaitai_struct_format_InstanceIdentifier($n(x0$1)._1__O());
|
|
34657
|
+
var instSpec = $as_Lio_kaitai_struct_format_InstanceSpec($n(x0$1)._2__O());
|
|
34658
|
+
if ((instSpec instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
|
|
34659
|
+
var x2 = $as_Lio_kaitai_struct_format_ParseInstanceSpec(instSpec);
|
|
34660
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).checkInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
|
|
34661
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrCheck__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__V(x2, instName);
|
|
34662
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).checkInstanceFooter__V()
|
|
34663
|
+
} else if ((!(instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec))) {
|
|
34664
|
+
throw new $c_s_MatchError(instSpec)
|
|
34665
|
+
}
|
|
34666
|
+
} else {
|
|
34667
|
+
throw new $c_s_MatchError(x0$1)
|
|
34668
|
+
}
|
|
34669
|
+
})))
|
|
34670
|
+
});
|
|
34651
34671
|
$c_Lio_kaitai_struct_ClassCompiler.prototype.compileEnums__Lio_kaitai_struct_format_ClassSpec__V = (function(curClass) {
|
|
34652
34672
|
var this$2 = $n($n(curClass).Lio_kaitai_struct_format_ClassSpec__f_enums);
|
|
34653
34673
|
var f = new $c_sjsr_AnonFunction1(((x0$1$2) => {
|
|
@@ -34700,12 +34720,23 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstance__sci_List__Lio_kait
|
|
|
34700
34720
|
};
|
|
34701
34721
|
if ($n(this.Lio_kaitai_struct_ClassCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readWrite) {
|
|
34702
34722
|
if ((instSpec instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
|
|
34703
|
-
|
|
34704
|
-
} else
|
|
34705
|
-
|
|
34723
|
+
var writingParseInst = true
|
|
34724
|
+
} else {
|
|
34725
|
+
if ((!(instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec))) {
|
|
34726
|
+
throw new $c_s_MatchError(instSpec)
|
|
34727
|
+
};
|
|
34728
|
+
var writingParseInst = false
|
|
34706
34729
|
}
|
|
34730
|
+
} else {
|
|
34731
|
+
var writingParseInst = false
|
|
34732
|
+
};
|
|
34733
|
+
if (writingParseInst) {
|
|
34734
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCheckWriteFlagAndWrite__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
|
|
34707
34735
|
};
|
|
34708
34736
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
|
|
34737
|
+
if (writingParseInst) {
|
|
34738
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturnNullIfDisabled__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
|
|
34739
|
+
};
|
|
34709
34740
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
|
|
34710
34741
|
if ((instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec)) {
|
|
34711
34742
|
var x2 = $as_Lio_kaitai_struct_format_ValueInstanceSpec(instSpec);
|
|
@@ -34724,13 +34755,10 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstance__sci_List__Lio_kait
|
|
|
34724
34755
|
if ((instSpec instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
|
|
34725
34756
|
var x2$2 = $as_Lio_kaitai_struct_format_ParseInstanceSpec(instSpec);
|
|
34726
34757
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attributeSetter__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V(instName, dataType, $n(instSpec).isNullable__Z());
|
|
34727
|
-
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).
|
|
34758
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceEnabledSetter__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
|
|
34728
34759
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).writeInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
|
|
34729
34760
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrWrite__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(x2$2, instName, endian);
|
|
34730
|
-
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).writeInstanceFooter__V()
|
|
34731
|
-
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).checkInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
|
|
34732
|
-
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrCheck__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__V(x2$2, instName);
|
|
34733
|
-
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).checkInstanceFooter__V()
|
|
34761
|
+
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).writeInstanceFooter__V()
|
|
34734
34762
|
} else if ((instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec)) {
|
|
34735
34763
|
$n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceInvalidate__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
|
|
34736
34764
|
} else {
|
|
@@ -65691,12 +65719,18 @@ var $d_Lio_kaitai_struct_languages_components_ExtraAttrs$$anonfun$1 = new $TypeD
|
|
|
65691
65719
|
});
|
|
65692
65720
|
$c_Lio_kaitai_struct_languages_components_ExtraAttrs$$anonfun$1.prototype.$classData = $d_Lio_kaitai_struct_languages_components_ExtraAttrs$$anonfun$1;
|
|
65693
65721
|
function $f_Lio_kaitai_struct_languages_components_FetchInstances__attrFetchInstances__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__V($thiz, attr, id) {
|
|
65694
|
-
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).attrParseIfHeader__Lio_kaitai_struct_format_Identifier__s_Option__V(id, $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_ifExpr);
|
|
65695
|
-
var io = $thiz.normalIO__T();
|
|
65696
65722
|
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
65697
65723
|
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
65698
|
-
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).attrInvokeInstance__Lio_kaitai_struct_format_InstanceIdentifier__V(x2)
|
|
65724
|
+
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).attrInvokeInstance__Lio_kaitai_struct_format_InstanceIdentifier__V(x2);
|
|
65725
|
+
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).instanceHasValueIfHeader__Lio_kaitai_struct_format_InstanceIdentifier__V(x2);
|
|
65726
|
+
var isInstance = true
|
|
65727
|
+
} else {
|
|
65728
|
+
var isInstance = false
|
|
65729
|
+
};
|
|
65730
|
+
if ((!isInstance)) {
|
|
65731
|
+
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).attrParseIfHeader__Lio_kaitai_struct_format_Identifier__s_Option__V(id, $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_ifExpr)
|
|
65699
65732
|
};
|
|
65733
|
+
var io = $thiz.normalIO__T();
|
|
65700
65734
|
var x = $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat;
|
|
65701
65735
|
var x$2 = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
65702
65736
|
if ((!((x !== null) && $n(x).equals__O__Z(x$2)))) {
|
|
@@ -65711,7 +65745,11 @@ function $f_Lio_kaitai_struct_languages_components_FetchInstances__attrFetchInst
|
|
|
65711
65745
|
if ((!((x$3 !== null) && $n(x$3).equals__O__Z(x$4)))) {
|
|
65712
65746
|
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).condRepeatCommonFooter__V()
|
|
65713
65747
|
};
|
|
65714
|
-
|
|
65748
|
+
if ((!isInstance)) {
|
|
65749
|
+
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).attrParseIfFooter__s_Option__V($n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_ifExpr)
|
|
65750
|
+
} else {
|
|
65751
|
+
$n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).instanceHasValueIfFooter__V()
|
|
65752
|
+
}
|
|
65715
65753
|
}
|
|
65716
65754
|
function $f_Lio_kaitai_struct_languages_components_FetchInstances__attrFetchInstances2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_format_RepeatSpec__s_Option__V($thiz, id, dataType, rep, exprTypeOpt) {
|
|
65717
65755
|
if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
|
|
@@ -66970,7 +67008,7 @@ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceWri
|
|
|
66970
67008
|
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceSetWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
66971
67009
|
$m_s_Predef$().$qmark$qmark$qmark__E()
|
|
66972
67010
|
});
|
|
66973
|
-
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.
|
|
67011
|
+
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceEnabledSetter__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
66974
67012
|
$m_s_Predef$().$qmark$qmark$qmark__E()
|
|
66975
67013
|
});
|
|
66976
67014
|
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceInvalidate__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
@@ -66979,6 +67017,15 @@ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceInv
|
|
|
66979
67017
|
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceCheckWriteFlagAndWrite__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
66980
67018
|
$m_s_Predef$().$qmark$qmark$qmark__E()
|
|
66981
67019
|
});
|
|
67020
|
+
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceReturnNullIfDisabled__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
67021
|
+
/*<skip>*/
|
|
67022
|
+
});
|
|
67023
|
+
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceHasValueIfHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
67024
|
+
/*<skip>*/
|
|
67025
|
+
});
|
|
67026
|
+
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.instanceHasValueIfFooter__V = (function() {
|
|
67027
|
+
/*<skip>*/
|
|
67028
|
+
});
|
|
66982
67029
|
$c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.debugClassSequence__sci_List__V = (function(seq) {
|
|
66983
67030
|
/*<skip>*/
|
|
66984
67031
|
});
|
|
@@ -98120,9 +98167,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.writeFooter__V = (function(
|
|
|
98120
98167
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
98121
98168
|
this.universalFooter__V()
|
|
98122
98169
|
});
|
|
98123
|
-
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.checkFooter__V = (function() {
|
|
98124
|
-
this.universalFooter__V()
|
|
98125
|
-
});
|
|
98126
98170
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
98127
98171
|
this.universalFooter__V()
|
|
98128
98172
|
});
|
|
@@ -98975,9 +99019,6 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.writeFooter__V = (function
|
|
|
98975
99019
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
98976
99020
|
this.universalFooter__V()
|
|
98977
99021
|
});
|
|
98978
|
-
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.checkFooter__V = (function() {
|
|
98979
|
-
this.universalFooter__V()
|
|
98980
|
-
});
|
|
98981
99022
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
98982
99023
|
this.universalFooter__V()
|
|
98983
99024
|
});
|
|
@@ -100683,9 +100724,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.writeFooter__V = (function()
|
|
|
100683
100724
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
100684
100725
|
this.universalFooter__V()
|
|
100685
100726
|
});
|
|
100686
|
-
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.checkFooter__V = (function() {
|
|
100687
|
-
this.universalFooter__V()
|
|
100688
|
-
});
|
|
100689
100727
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
100690
100728
|
this.universalFooter__V()
|
|
100691
100729
|
});
|
|
@@ -101481,10 +101519,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.writeInstanceFooter__V = (f
|
|
|
101481
101519
|
var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out);
|
|
101482
101520
|
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
|
|
101483
101521
|
});
|
|
101484
|
-
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.checkFooter__V = (function() {
|
|
101485
|
-
var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out);
|
|
101486
|
-
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
|
|
101487
|
-
});
|
|
101488
101522
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
101489
101523
|
var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out);
|
|
101490
101524
|
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
|
|
@@ -102245,9 +102279,6 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.writeFooter__V = (function(
|
|
|
102245
102279
|
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
102246
102280
|
$n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).dec__V()
|
|
102247
102281
|
});
|
|
102248
|
-
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.checkFooter__V = (function() {
|
|
102249
|
-
$n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).dec__V()
|
|
102250
|
-
});
|
|
102251
102282
|
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
102252
102283
|
$n(this.Lio_kaitai_struct_languages_NimCompiler__f_out).dec__V()
|
|
102253
102284
|
});
|
|
@@ -103208,9 +103239,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.writeFooter__V = (function
|
|
|
103208
103239
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
103209
103240
|
this.universalFooter__V()
|
|
103210
103241
|
});
|
|
103211
|
-
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.checkFooter__V = (function() {
|
|
103212
|
-
this.universalFooter__V()
|
|
103213
|
-
});
|
|
103214
103242
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
103215
103243
|
this.universalFooter__V()
|
|
103216
103244
|
});
|
|
@@ -103983,9 +104011,6 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.writeFooter__V = (function
|
|
|
103983
104011
|
$c_Lio_kaitai_struct_languages_RustCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
103984
104012
|
this.universalFooter__V()
|
|
103985
104013
|
});
|
|
103986
|
-
$c_Lio_kaitai_struct_languages_RustCompiler.prototype.checkFooter__V = (function() {
|
|
103987
|
-
this.universalFooter__V()
|
|
103988
|
-
});
|
|
103989
104014
|
$c_Lio_kaitai_struct_languages_RustCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
103990
104015
|
this.universalFooter__V()
|
|
103991
104016
|
});
|
|
@@ -107551,18 +107576,12 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeDoc__Lio_kaitai_s
|
|
|
107551
107576
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorFooter__V = (function() {
|
|
107552
107577
|
this.universalFooter__V()
|
|
107553
107578
|
});
|
|
107554
|
-
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.readFooter__V = (function() {
|
|
107555
|
-
this.universalFooter__V()
|
|
107556
|
-
});
|
|
107557
107579
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.writeFooter__V = (function() {
|
|
107558
107580
|
this.universalFooter__V()
|
|
107559
107581
|
});
|
|
107560
107582
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
107561
107583
|
this.universalFooter__V()
|
|
107562
107584
|
});
|
|
107563
|
-
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.checkFooter__V = (function() {
|
|
107564
|
-
this.universalFooter__V()
|
|
107565
|
-
});
|
|
107566
107585
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
107567
107586
|
this.universalFooter__V()
|
|
107568
107587
|
});
|
|
@@ -107932,6 +107951,12 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.readHeader__s_Option__Z__V
|
|
|
107932
107951
|
};
|
|
107933
107952
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V()
|
|
107934
107953
|
});
|
|
107954
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.readFooter__V = (function() {
|
|
107955
|
+
if ($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readWrite) {
|
|
107956
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("_dirty = false;")
|
|
107957
|
+
};
|
|
107958
|
+
this.universalFooter__V()
|
|
107959
|
+
});
|
|
107935
107960
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.fetchInstancesHeader__V = (function() {
|
|
107936
107961
|
var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out);
|
|
107937
107962
|
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
|
|
@@ -107959,16 +107984,18 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.writeHeader__s_Option__Z__
|
|
|
107959
107984
|
$m_Lio_kaitai_struct_Utils$();
|
|
107960
107985
|
var s = $n(e).toSuffix__T();
|
|
107961
107986
|
var this$4 = $n(s);
|
|
107962
|
-
$n($$x1).puts__T__V((("private void _write_Seq" + $as_T(this$4.toUpperCase())) + "() {"))
|
|
107987
|
+
$n($$x1).puts__T__V((("private void _write_Seq" + $as_T(this$4.toUpperCase())) + "() {"));
|
|
107988
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V()
|
|
107963
107989
|
} else {
|
|
107964
107990
|
var x = $m_s_None$();
|
|
107965
107991
|
if ((x === endian)) {
|
|
107966
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("public void _write_Seq() {")
|
|
107992
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("public void _write_Seq() {");
|
|
107993
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
107994
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("_assertNotDirty();")
|
|
107967
107995
|
} else {
|
|
107968
107996
|
throw new $c_s_MatchError(endian)
|
|
107969
107997
|
}
|
|
107970
|
-
}
|
|
107971
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V()
|
|
107998
|
+
}
|
|
107972
107999
|
});
|
|
107973
108000
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.checkHeader__V = (function() {
|
|
107974
108001
|
var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out);
|
|
@@ -107976,17 +108003,19 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.checkHeader__V = (function
|
|
|
107976
108003
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("public void _check() {");
|
|
107977
108004
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V()
|
|
107978
108005
|
});
|
|
108006
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.checkFooter__V = (function() {
|
|
108007
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("_dirty = false;");
|
|
108008
|
+
this.universalFooter__V()
|
|
108009
|
+
});
|
|
107979
108010
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.writeInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
107980
108011
|
var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out);
|
|
107981
108012
|
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
|
|
107982
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("
|
|
108013
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("private void _write" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
107983
108014
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
107984
108015
|
this.instanceClearWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
|
|
107985
108016
|
});
|
|
107986
108017
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.checkInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
107987
|
-
|
|
107988
|
-
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
|
|
107989
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("public void _check" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
108018
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (_enabled" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + ") {"));
|
|
107990
108019
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V()
|
|
107991
108020
|
});
|
|
107992
108021
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeDeclaration__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
@@ -108000,7 +108029,16 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeReader__Lio_kaita
|
|
|
108000
108029
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeSetter__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
108001
108030
|
var javaType = $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_RuntimeConfig__T(attrType, isNullable, this.Lio_kaitai_struct_languages_JavaCompiler__f_importList, this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config);
|
|
108002
108031
|
var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName);
|
|
108003
|
-
|
|
108032
|
+
var itemType = $f_Lio_kaitai_struct_languages_components_GenericChecks__getArrayItemType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType(this, attrType);
|
|
108033
|
+
var x$2 = $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$();
|
|
108034
|
+
if (((itemType !== null) && $n(itemType).equals__O__Z(x$2))) {
|
|
108035
|
+
var typeBasedOnIo = true
|
|
108036
|
+
} else {
|
|
108037
|
+
var x$4 = $m_Lio_kaitai_struct_datatype_DataType$OwnedKaitaiStreamType$();
|
|
108038
|
+
var typeBasedOnIo = ((itemType !== null) && $n(itemType).equals__O__Z(x$4))
|
|
108039
|
+
};
|
|
108040
|
+
var setDirtyBit = (typeBasedOnIo ? "" : "_dirty = true; ");
|
|
108041
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V(((((((("public void set" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "(") + javaType) + " _v) { ") + setDirtyBit) + name) + " = _v; }"))
|
|
108004
108042
|
});
|
|
108005
108043
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrSetProperty__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_format_Identifier__T__V = (function(base, propName, value) {
|
|
108006
108044
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V(((((($f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, base) + ".set") + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(propName)) + "(") + value) + ");"))
|
|
@@ -108743,17 +108781,17 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceDeclaration__Lio_k
|
|
|
108743
108781
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_RuntimeConfig__T(attrType, this.Lio_kaitai_struct_languages_JavaCompiler__f_importList, this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
|
|
108744
108782
|
});
|
|
108745
108783
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceWriteFlagDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(attrName) {
|
|
108746
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("private boolean
|
|
108747
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("private boolean
|
|
108784
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("private boolean _shouldWrite" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + " = false;"));
|
|
108785
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("private boolean _enabled" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + " = true;"))
|
|
108748
108786
|
});
|
|
108749
108787
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceSetWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
108750
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("
|
|
108788
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("_shouldWrite" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " = _enabled") + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
|
|
108751
108789
|
});
|
|
108752
108790
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceClearWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
108753
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("
|
|
108791
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("_shouldWrite" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " = false;"))
|
|
108754
108792
|
});
|
|
108755
|
-
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.
|
|
108756
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("public void set" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "
|
|
108793
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceEnabledSetter__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
108794
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("public void set" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "_Enabled(boolean _v) { _dirty = true; _enabled") + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " = _v; }"))
|
|
108757
108795
|
});
|
|
108758
108796
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
108759
108797
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_RuntimeConfig__T(dataType, this.Lio_kaitai_struct_languages_JavaCompiler__f_importList, this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
@@ -108766,11 +108804,24 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceCheckCacheAndRetur
|
|
|
108766
108804
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V()
|
|
108767
108805
|
});
|
|
108768
108806
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceCheckWriteFlagAndWrite__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
108769
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (
|
|
108807
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (_shouldWrite" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + ")"));
|
|
108770
108808
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
108771
108809
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("_write" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "();"));
|
|
108772
108810
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V()
|
|
108773
108811
|
});
|
|
108812
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceReturnNullIfDisabled__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
108813
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (!_enabled" + this.idToSetterStr__Lio_kaitai_struct_format_Identifier__T(instName)) + ")"));
|
|
108814
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
108815
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("return null;");
|
|
108816
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V()
|
|
108817
|
+
});
|
|
108818
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHasValueIfHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
108819
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (" + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " != null) {"));
|
|
108820
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V()
|
|
108821
|
+
});
|
|
108822
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHasValueIfFooter__V = (function() {
|
|
108823
|
+
this.universalFooter__V()
|
|
108824
|
+
});
|
|
108774
108825
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
|
|
108775
108826
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ";"))
|
|
108776
108827
|
});
|
|
@@ -108945,7 +108996,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrBasicCheck__Lio_kaitai
|
|
|
108945
108996
|
var msgStr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e);
|
|
108946
108997
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, checkExpr)) + ")"));
|
|
108947
108998
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
108948
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((((("throw new ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this,
|
|
108999
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((((("throw new ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expected)) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actual)) + ");"));
|
|
108949
109000
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V();
|
|
108950
109001
|
var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_importList);
|
|
108951
109002
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "io.kaitai.struct.ConsistencyError")
|
|
@@ -108955,7 +109006,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrObjectsEqualCheck__Lio
|
|
|
108955
109006
|
var msgStr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e);
|
|
108956
109007
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("if (!Objects.equals(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actual)) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expected)) + "))"));
|
|
108957
109008
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
108958
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((((("throw new ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this,
|
|
109009
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((((("throw new ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expected)) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actual)) + ");"));
|
|
108959
109010
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V();
|
|
108960
109011
|
var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_importList);
|
|
108961
109012
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "java.util.Objects");
|
|
@@ -109014,7 +109065,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParentParamCheck__Lio_
|
|
|
109014
109065
|
var msgStr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e);
|
|
109015
109066
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("if (!Objects.equals(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actualParentExpr)) + ", ") + expectedParent) + "))"));
|
|
109016
109067
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
109017
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((((("throw new ConsistencyError(" + msgStr) + ", ") +
|
|
109068
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((((("throw new ConsistencyError(" + msgStr) + ", ") + expectedParent) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actualParentExpr)) + ");"));
|
|
109018
109069
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V();
|
|
109019
109070
|
var this$3 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_importList);
|
|
109020
109071
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$3.Lio_kaitai_struct_ImportList__f_list, "java.util.Objects");
|
|
@@ -109028,7 +109079,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrIsEofCheck__T__Z__T__V
|
|
|
109028
109079
|
var ifExpr = (expectedIsEof ? (("!(" + eofExpr) + ")") : eofExpr);
|
|
109029
109080
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((("if (" + ifExpr) + ")"));
|
|
109030
109081
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
|
|
109031
|
-
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("throw new ConsistencyError(" + msgStr) + ", ") + this.exprIORemainingSize__T__T(io)) + "
|
|
109082
|
+
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((((("throw new ConsistencyError(" + msgStr) + ", 0, ") + this.exprIORemainingSize__T__T(io)) + ");"));
|
|
109032
109083
|
$n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V();
|
|
109033
109084
|
var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_importList);
|
|
109034
109085
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "io.kaitai.struct.ConsistencyError")
|
|
@@ -109246,18 +109297,12 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrParse__Lio_kaitai_st
|
|
|
109246
109297
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorFooter__V = (function() {
|
|
109247
109298
|
this.universalFooter__V()
|
|
109248
109299
|
});
|
|
109249
|
-
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.readFooter__V = (function() {
|
|
109250
|
-
this.universalFooter__V()
|
|
109251
|
-
});
|
|
109252
109300
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.writeFooter__V = (function() {
|
|
109253
109301
|
this.universalFooter__V()
|
|
109254
109302
|
});
|
|
109255
109303
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.writeInstanceFooter__V = (function() {
|
|
109256
109304
|
this.universalFooter__V()
|
|
109257
109305
|
});
|
|
109258
|
-
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.checkFooter__V = (function() {
|
|
109259
|
-
this.universalFooter__V()
|
|
109260
|
-
});
|
|
109261
109306
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.checkInstanceFooter__V = (function() {
|
|
109262
109307
|
this.universalFooter__V()
|
|
109263
109308
|
});
|
|
@@ -109373,7 +109418,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
|
|
|
109373
109418
|
var ioDefaultVal = ($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readWrite ? "=None" : "");
|
|
109374
109419
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("def __init__(self" + paramsList) + ", _io") + ioDefaultVal) + ", _parent=None, _root=None") + endianAdd) + "):"));
|
|
109375
109420
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
109376
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("
|
|
109421
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("super(" + $m_Lio_kaitai_struct_languages_PythonCompiler$().types2class__sci_List__Z__T($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass).Lio_kaitai_struct_format_ClassSpec__f_name, false)) + ", self).__init__(_io)"));
|
|
109377
109422
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("self._parent = _parent");
|
|
109378
109423
|
if ((name === rootClassName)) {
|
|
109379
109424
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("self._root = _root or self")
|
|
@@ -109456,6 +109501,12 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.readHeader__s_Option__Z_
|
|
|
109456
109501
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("pass")
|
|
109457
109502
|
}
|
|
109458
109503
|
});
|
|
109504
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.readFooter__V = (function() {
|
|
109505
|
+
if ($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readWrite) {
|
|
109506
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("self._dirty = False")
|
|
109507
|
+
};
|
|
109508
|
+
this.universalFooter__V()
|
|
109509
|
+
});
|
|
109459
109510
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.fetchInstancesHeader__V = (function() {
|
|
109460
109511
|
var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out);
|
|
109461
109512
|
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
|
|
@@ -109499,8 +109550,11 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.checkHeader__V = (functi
|
|
|
109499
109550
|
var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out);
|
|
109500
109551
|
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
|
|
109501
109552
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("def _check(self):");
|
|
109502
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V()
|
|
109503
|
-
|
|
109553
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V()
|
|
109554
|
+
});
|
|
109555
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.checkFooter__V = (function() {
|
|
109556
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("self._dirty = False");
|
|
109557
|
+
this.universalFooter__V()
|
|
109504
109558
|
});
|
|
109505
109559
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.writeInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
109506
109560
|
var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out);
|
|
@@ -109510,9 +109564,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.writeInstanceHeader__Lio
|
|
|
109510
109564
|
this.instanceClearWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
|
|
109511
109565
|
});
|
|
109512
109566
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.checkInstanceHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
109513
|
-
|
|
109514
|
-
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
|
|
109515
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("def _check_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "(self):"));
|
|
109567
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("if self." + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "__enabled:"));
|
|
109516
109568
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
109517
109569
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("pass")
|
|
109518
109570
|
});
|
|
@@ -109528,12 +109580,13 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attributeSetter__Lio_kai
|
|
|
109528
109580
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("@" + name) + ".setter"));
|
|
109529
109581
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("def " + name) + "(self, v):"));
|
|
109530
109582
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
109583
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("self._dirty = True");
|
|
109531
109584
|
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(attrName, "v");
|
|
109532
109585
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
|
|
109533
109586
|
}
|
|
109534
109587
|
});
|
|
109535
109588
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrSetProperty__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_format_Identifier__T__V = (function(base, propName, value) {
|
|
109536
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((($f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, base) + "
|
|
109589
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("object.__setattr__(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, base)) + ", '") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(propName)) + "', ") + value) + ")"))
|
|
109537
109590
|
});
|
|
109538
109591
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.universalDoc__Lio_kaitai_struct_format_DocSpec__V = (function(doc) {
|
|
109539
109592
|
var x1 = $n(doc).Lio_kaitai_struct_format_DocSpec__f_summary;
|
|
@@ -110158,15 +110211,15 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceWriteFlagDeclara
|
|
|
110158
110211
|
});
|
|
110159
110212
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceWriteFlagInit__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(attrName) {
|
|
110160
110213
|
this.instanceClearWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V(attrName);
|
|
110161
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("self." + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "
|
|
110214
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("self." + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "__enabled = True"))
|
|
110162
110215
|
});
|
|
110163
110216
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceSetWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
110164
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((("self._should_write_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = self.") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "
|
|
110217
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((("self._should_write_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = self.") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "__enabled"))
|
|
110165
110218
|
});
|
|
110166
110219
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceClearWriteFlag__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
110167
110220
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("self._should_write_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = False"))
|
|
110168
110221
|
});
|
|
110169
|
-
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.
|
|
110222
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceEnabledSetter__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
110170
110223
|
/*<skip>*/
|
|
110171
110224
|
});
|
|
110172
110225
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
@@ -110188,6 +110241,22 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCheckWriteFlagAn
|
|
|
110188
110241
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("self._write_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "()"));
|
|
110189
110242
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
|
|
110190
110243
|
});
|
|
110244
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceReturnNullIfDisabled__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
110245
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("if not self." + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "__enabled:"));
|
|
110246
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
110247
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("return None");
|
|
110248
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V();
|
|
110249
|
+
var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out);
|
|
110250
|
+
$n(this$1.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n")
|
|
110251
|
+
});
|
|
110252
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHasValueIfHeader__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
110253
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("if hasattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "'):"));
|
|
110254
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
110255
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("pass")
|
|
110256
|
+
});
|
|
110257
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHasValueIfFooter__V = (function() {
|
|
110258
|
+
this.universalFooter__V()
|
|
110259
|
+
});
|
|
110191
110260
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
|
|
110192
110261
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("return getattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', None)"))
|
|
110193
110262
|
});
|
|
@@ -110304,7 +110373,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrBasicCheck__Lio_kait
|
|
|
110304
110373
|
var msgStr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e);
|
|
110305
110374
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("if " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, checkExpr)) + ":"));
|
|
110306
110375
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
110307
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this,
|
|
110376
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expected)) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actual)) + ")"));
|
|
110308
110377
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
|
|
110309
110378
|
});
|
|
110310
110379
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrObjectsEqualCheck__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T__V = (function(actual, expected, msg) {
|
|
@@ -110312,7 +110381,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrObjectsEqualCheck__L
|
|
|
110312
110381
|
var msgStr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e);
|
|
110313
110382
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((("if " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actual)) + " != ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expected)) + ":"));
|
|
110314
110383
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
110315
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this,
|
|
110384
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, expected)) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actual)) + ")"));
|
|
110316
110385
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
|
|
110317
110386
|
});
|
|
110318
110387
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrParentParamCheck__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$UserType__s_Option__T__V = (function(actualParentExpr, ut, shouldDependOnIo, msg) {
|
|
@@ -110367,7 +110436,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrParentParamCheck__Li
|
|
|
110367
110436
|
var msgStr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, e);
|
|
110368
110437
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((("if " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actualParentExpr)) + " != ") + expectedParent) + ":"));
|
|
110369
110438
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
110370
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") +
|
|
110439
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") + expectedParent) + ", ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, actualParentExpr)) + ")"));
|
|
110371
110440
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
|
|
110372
110441
|
});
|
|
110373
110442
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrIsEofCheck__T__Z__T__V = (function(io, expectedIsEof, msg) {
|
|
@@ -110377,7 +110446,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrIsEofCheck__T__Z__T_
|
|
|
110377
110446
|
var ifExpr = (expectedIsEof ? ("not " + eofExpr) : eofExpr);
|
|
110378
110447
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((("if " + ifExpr) + ":"));
|
|
110379
110448
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
|
|
110380
|
-
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", ") + this.exprIORemainingSize__T__T(io)) + "
|
|
110449
|
+
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((((("raise kaitaistruct.ConsistencyError(" + msgStr) + ", 0, ") + this.exprIORemainingSize__T__T(io)) + ")"));
|
|
110381
110450
|
$n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
|
|
110382
110451
|
});
|
|
110383
110452
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.condIfIsEofHeader__T__Z__V = (function(io, wantedIsEof) {
|
package/package.json
CHANGED