kaitai-struct-compiler 0.11.0-SNAPSHOT20241002.233639.542b241 → 0.11.0-SNAPSHOT20241229.150116.12dbc32

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.
@@ -3027,8 +3027,8 @@ function $m_Lio_kaitai_struct_Utils$() {
3027
3027
  function $c_Lio_kaitai_struct_Version$() {
3028
3028
  this.Lio_kaitai_struct_Version$__f_version = null;
3029
3029
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
3030
- this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20241002.233639.542b241";
3031
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-10-02T23:36:39Z"
3030
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20241229.150116.12dbc32";
3031
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2024-12-29T15:01:16Z"
3032
3032
  }
3033
3033
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
3034
3034
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -51869,8 +51869,11 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrUs
51869
51869
  } else {
51870
51870
  var tempVarName = $thiz.localTemporaryName__Lio_kaitai_struct_format_Identifier__T(id);
51871
51871
  $thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V(dataType, tempVarName, expr);
51872
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, tempVarName, rep, false);
51873
- $thiz.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V(tempVarName, dataType, assignType)
51872
+ $thiz.tryFinally__F0__F0__V(new $c_sjsr_AnonFunction0((() => {
51873
+ $thiz.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V(tempVarName, dataType, assignType)
51874
+ })), new $c_sjsr_AnonFunction0((() => {
51875
+ $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, tempVarName, rep, false)
51876
+ })))
51874
51877
  }
51875
51878
  }
51876
51879
  }
@@ -65519,8 +65522,20 @@ function $f_Lio_kaitai_struct_languages_components_GoReads__attrUserTypeParse__L
65519
65522
  };
65520
65523
  var newIO = io
65521
65524
  };
65522
- var expr = $n($thiz.Lio_kaitai_struct_languages_GoCompiler__f_translator).userType__Lio_kaitai_struct_datatype_DataType$UserType__T__Lio_kaitai_struct_translators_ResultLocalVar(dataType, newIO);
65523
- $f_Lio_kaitai_struct_languages_components_GoReads__handleAssignment__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr, rep, false)
65525
+ var expr = $thiz.parseExpr__Lio_kaitai_struct_datatype_DataType__T__s_Option__T(dataType, newIO, defEndian);
65526
+ var v = new $c_Lio_kaitai_struct_translators_ResultLocalVar($n($thiz.Lio_kaitai_struct_languages_GoCompiler__f_translator).allocateLocalVar__I());
65527
+ var tempVarName = $n($thiz.Lio_kaitai_struct_languages_GoCompiler__f_translator).resToStr__Lio_kaitai_struct_translators_TranslatorResult__T(v);
65528
+ if ($n($n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_autoRead) {
65529
+ $n($as_Lio_kaitai_struct_languages_components_ValidateOps($thiz)).handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V(dataType, tempVarName, expr);
65530
+ $thiz.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType$UserType__T__V(tempVarName, dataType, newIO);
65531
+ $n($thiz.Lio_kaitai_struct_languages_GoCompiler__f_translator).outAddErrCheck__V();
65532
+ $f_Lio_kaitai_struct_languages_components_GoReads__handleAssignment__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, v, rep, false)
65533
+ } else {
65534
+ $n($as_Lio_kaitai_struct_languages_components_ValidateOps($thiz)).handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V(dataType, tempVarName, expr);
65535
+ $thiz.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType$UserType__T__V(tempVarName, dataType, newIO);
65536
+ $f_Lio_kaitai_struct_languages_components_GoReads__handleAssignment__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, v, rep, false);
65537
+ $n($thiz.Lio_kaitai_struct_languages_GoCompiler__f_translator).outAddErrCheck__V()
65538
+ }
65524
65539
  }
65525
65540
  function $f_Lio_kaitai_struct_languages_components_GoReads__handleAssignment__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr, rep, isRaw) {
65526
65541
  var x = $m_Lio_kaitai_struct_format_RepeatEos$();
@@ -85023,54 +85038,6 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.boolToInt__Lio_kaitai_st
85023
85038
  $n(this.Lio_kaitai_struct_translators_GoTranslator__f_out).puts__T__V("}");
85024
85039
  return new $c_Lio_kaitai_struct_translators_ResultLocalVar(v)
85025
85040
  });
85026
- $c_Lio_kaitai_struct_translators_GoTranslator.prototype.userType__Lio_kaitai_struct_datatype_DataType$UserType__T__Lio_kaitai_struct_translators_ResultLocalVar = (function(t, io) {
85027
- var v = this.allocateLocalVar__I();
85028
- if ($n(t).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_translators_GoTranslator__f_provider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) {
85029
- var x1$2___1 = "nil";
85030
- var x1$2___2 = "nil"
85031
- } else {
85032
- var rc8 = false;
85033
- var x2 = null;
85034
- var x1 = $n(t).Lio_kaitai_struct_datatype_DataType$UserType__f_forcedParent;
85035
- matchEnd9: {
85036
- var parent;
85037
- if ((x1 instanceof $c_s_Some)) {
85038
- rc8 = true;
85039
- x2 = $as_s_Some(x1);
85040
- var p3 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2).s_Some__f_value);
85041
- var x = $m_Lio_kaitai_struct_datatype_DataType$().Lio_kaitai_struct_datatype_DataType$__f_USER_TYPE_NO_PARENT;
85042
- if (((x === null) ? (p3 === null) : $n(x).equals__O__Z(p3))) {
85043
- var parent = "nil";
85044
- break matchEnd9
85045
- }
85046
- };
85047
- if (rc8) {
85048
- var fp = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2).s_Some__f_value);
85049
- var parent = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(fp, 0);
85050
- break matchEnd9
85051
- };
85052
- var x$3 = $m_s_None$();
85053
- if ((x$3 === x1)) {
85054
- var parent = "this";
85055
- break matchEnd9
85056
- };
85057
- throw new $c_s_MatchError(x1)
85058
- };
85059
- var x1$2___1 = parent;
85060
- var x1$2___2 = "this._root"
85061
- };
85062
- var parent$2 = $as_T(x1$2___1);
85063
- var root = $as_T(x1$2___2);
85064
- var this$2 = $n($as_sc_IterableOnceOps($n($n(t).Lio_kaitai_struct_datatype_DataType$UserType__f_args).map__F1__O(new $c_sjsr_AnonFunction1(((a$2) => {
85065
- var a = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$2);
85066
- return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, 0)
85067
- })))));
85068
- var addParams = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", ", ", "");
85069
- $n(this.Lio_kaitai_struct_translators_GoTranslator__f_out).puts__T__V((((((this.localVarName__I__T(v) + " := New") + $m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T($n($as_Lio_kaitai_struct_format_ClassSpec($n($n(t).Lio_kaitai_struct_datatype_DataType$UserType__f_classSpec).get__O())).Lio_kaitai_struct_format_ClassSpec__f_name)) + "(") + addParams) + ")"));
85070
- $n(this.Lio_kaitai_struct_translators_GoTranslator__f_out).puts__T__V((((((((("err = " + this.localVarName__I__T(v)) + ".Read(") + io) + ", ") + parent$2) + ", ") + root) + ")"));
85071
- this.outAddErrCheck__V();
85072
- return new $c_Lio_kaitai_struct_translators_ResultLocalVar(v)
85073
- });
85074
85041
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.trInterpolatedStringLiteral__sci_Seq__Lio_kaitai_struct_translators_TranslatorResult = (function(exprs) {
85075
85042
  if ((exprs !== null)) {
85076
85043
  $n($m_s_package$().s_package$__f_Seq);
@@ -87936,10 +87903,10 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_s
87936
87903
  return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(value, 0) + "->") + this.doName__T__T(attrName))
87937
87904
  });
87938
87905
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doLocalName__T__T = (function(s) {
87939
- return (((s === "_") || (s === "_on")) ? ("$" + s) : (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_INDEX === s) ? this.doName__T__T(s) : ("$self->" + this.doName__T__T(s))))
87906
+ return (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_SWITCH_ON === s) ? "$_on" : ((($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR === s) || ($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_INDEX === s)) ? this.doName__T__T(s) : ("$self->" + this.doName__T__T(s))))
87940
87907
  });
87941
87908
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doName__T__T = (function(s) {
87942
- return (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR === s) ? "$_" : (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR2 === s) ? "$_buf" : (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_INDEX === s) ? "$i" : (s + "()"))))
87909
+ return (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR === s) ? "$_it" : (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR2 === s) ? "$_buf" : (($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_INDEX === s) ? "$i" : (s + "()"))))
87943
87910
  });
87944
87911
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
87945
87912
  return $m_Lio_kaitai_struct_languages_PerlCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)
@@ -93237,6 +93204,22 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.userTypeDebugRead__T__Lio_k
93237
93204
  var expr = ((!((assignType === null) ? (dataType === null) : $n(assignType).equals__O__Z(dataType))) ? (((("static_cast<" + this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType, false)) + ">(") + id) + ")") : id);
93238
93205
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((expr + "->_read();"))
93239
93206
  });
93207
+ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
93208
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("try {");
93209
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).inc__V();
93210
+ var this$1 = $n(tryBlock);
93211
+ this$1.apply__O();
93212
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).dec__V();
93213
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("} catch(...) {");
93214
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).inc__V();
93215
+ var this$2 = $n(finallyBlock);
93216
+ this$2.apply__O();
93217
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("throw;");
93218
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).dec__V();
93219
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("}");
93220
+ var this$3 = $n(finallyBlock);
93221
+ this$3.apply__O()
93222
+ });
93240
93223
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchRequiresIfs__Lio_kaitai_struct_datatype_DataType__Z = (function(onType) {
93241
93224
  return (!((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) || (onType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)))
93242
93225
  });
@@ -94724,44 +94707,55 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.parseExpr__Lio_kaitai_struct
94724
94707
  return (((((io + ".ReadBitsInt") + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T($n(bitEndian$2).toSuffix__T())) + "(") + width) + ")")
94725
94708
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
94726
94709
  var x10 = $as_Lio_kaitai_struct_datatype_DataType$UserType(dataType);
94727
- if ($n(x10).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) {
94728
- var addArgs = ""
94729
- } else {
94730
- var rc8 = false;
94731
- var x2$2 = null;
94732
- var x1$2 = $n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_forcedParent;
94733
- matchEnd9: {
94734
- var parent;
94735
- if ((x1$2 instanceof $c_s_Some)) {
94736
- rc8 = true;
94737
- x2$2 = $as_s_Some(x1$2);
94738
- var p3 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2$2).s_Some__f_value);
94739
- var x = $m_Lio_kaitai_struct_datatype_DataType$().Lio_kaitai_struct_datatype_DataType$__f_USER_TYPE_NO_PARENT;
94740
- if (((x === null) ? (p3 === null) : $n(x).equals__O__Z(p3))) {
94741
- var parent = "null";
94742
- break matchEnd9
94743
- }
94744
- };
94745
- if (rc8) {
94746
- var fp = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2$2).s_Some__f_value);
94747
- var this$1 = $n(this.Lio_kaitai_struct_languages_GoCompiler__f_translator);
94748
- var parent = this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(fp, 0);
94749
- break matchEnd9
94750
- };
94751
- var x$3 = $m_s_None$();
94752
- if ((x$3 === x1$2)) {
94753
- var parent = "this";
94754
- break matchEnd9
94755
- };
94756
- throw new $c_s_MatchError(x1$2)
94757
- };
94758
- var addArgs = ((", " + parent) + ", _root")
94759
- };
94760
- return (((($m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T($n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_name) + "(") + io) + addArgs) + ")")
94710
+ var this$2 = $n($as_sc_IterableOnceOps($n($n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_args).map__F1__O(new $c_sjsr_AnonFunction1(((a$2) => {
94711
+ var a = $as_Lio_kaitai_struct_exprlang_Ast$expr(a$2);
94712
+ return $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, a)
94713
+ })))));
94714
+ var addParams = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, "", ", ", "");
94715
+ return (((("New" + $m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T($n($as_Lio_kaitai_struct_format_ClassSpec($n($n(x10).Lio_kaitai_struct_datatype_DataType$UserType__f_classSpec).get__O())).Lio_kaitai_struct_format_ClassSpec__f_name)) + "(") + addParams) + ")")
94761
94716
  } else {
94762
94717
  throw new $c_s_MatchError(dataType)
94763
94718
  }
94764
94719
  });
94720
+ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType$UserType__T__V = (function(id, t, io) {
94721
+ if ($n(t).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass)) {
94722
+ var x1$2___1 = "nil";
94723
+ var x1$2___2 = "nil"
94724
+ } else {
94725
+ var rc8 = false;
94726
+ var x2 = null;
94727
+ var x1 = $n(t).Lio_kaitai_struct_datatype_DataType$UserType__f_forcedParent;
94728
+ matchEnd9: {
94729
+ var parent;
94730
+ if ((x1 instanceof $c_s_Some)) {
94731
+ rc8 = true;
94732
+ x2 = $as_s_Some(x1);
94733
+ var p3 = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2).s_Some__f_value);
94734
+ var x = $m_Lio_kaitai_struct_datatype_DataType$().Lio_kaitai_struct_datatype_DataType$__f_USER_TYPE_NO_PARENT;
94735
+ if (((x === null) ? (p3 === null) : $n(x).equals__O__Z(p3))) {
94736
+ var parent = "nil";
94737
+ break matchEnd9
94738
+ }
94739
+ };
94740
+ if (rc8) {
94741
+ var fp = $as_Lio_kaitai_struct_exprlang_Ast$expr($n(x2).s_Some__f_value);
94742
+ var parent = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, fp);
94743
+ break matchEnd9
94744
+ };
94745
+ var x$3 = $m_s_None$();
94746
+ if ((x$3 === x1)) {
94747
+ var parent = "this";
94748
+ break matchEnd9
94749
+ };
94750
+ throw new $c_s_MatchError(x1)
94751
+ };
94752
+ var x1$2___1 = parent;
94753
+ var x1$2___2 = "this._root"
94754
+ };
94755
+ var parent$2 = $as_T(x1$2___1);
94756
+ var root = $as_T(x1$2___2);
94757
+ $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((((((((("err = " + id) + ".Read(") + io) + ", ") + parent$2) + ", ") + root) + ")"))
94758
+ });
94765
94759
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
94766
94760
  $n(this.Lio_kaitai_struct_languages_GoCompiler__f_out).puts__T__V((("switch (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ") {"))
94767
94761
  });
@@ -95691,6 +95685,19 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.bytesPadTermExpr__T_
95691
95685
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
95692
95686
  $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((id + "._read();"))
95693
95687
  });
95688
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
95689
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V("try {");
95690
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).inc__V();
95691
+ var this$1 = $n(tryBlock);
95692
+ this$1.apply__O();
95693
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).dec__V();
95694
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V("} finally {");
95695
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).inc__V();
95696
+ var this$2 = $n(finallyBlock);
95697
+ this$2.apply__O();
95698
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).dec__V();
95699
+ $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V("}")
95700
+ });
95694
95701
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.switchRequiresIfs__Lio_kaitai_struct_datatype_DataType__Z = (function(onType) {
95695
95702
  return (!((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) || ((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) || ((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType) || (onType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType)))))
95696
95703
  });
@@ -96548,6 +96555,19 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.bytesPadTermExpr__T__s_Opti
96548
96555
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
96549
96556
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((id + "->_read();"))
96550
96557
  });
96558
+ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
96559
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V("try {");
96560
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).inc__V();
96561
+ var this$1 = $n(tryBlock);
96562
+ this$1.apply__O();
96563
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).dec__V();
96564
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V("} finally {");
96565
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).inc__V();
96566
+ var this$2 = $n(finallyBlock);
96567
+ this$2.apply__O();
96568
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).dec__V();
96569
+ $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V("}")
96570
+ });
96551
96571
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
96552
96572
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator).detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(on);
96553
96573
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((("switch (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ") {"));
@@ -96772,12 +96792,6 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.createSubstream__Lio_kaita
96772
96792
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
96773
96793
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
96774
96794
  });
96775
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
96776
- $m_s_Predef$().$qmark$qmark$qmark__E()
96777
- });
96778
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
96779
- $m_s_Predef$().$qmark$qmark$qmark__E()
96780
- });
96781
96795
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
96782
96796
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
96783
96797
  });
@@ -97120,6 +97134,8 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentRepeatExpr
97120
97134
  this.handleAssignmentRepeatEos__Lio_kaitai_struct_format_Identifier__T__V(id, expr)
97121
97135
  });
97122
97136
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.condRepeatUntilHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
97137
+ this.blockScopeHeader__V();
97138
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((("my " + $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_translator).doName__T__T("_")) + ";"));
97123
97139
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("do {");
97124
97140
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).inc__V()
97125
97141
  });
@@ -97141,11 +97157,22 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentRepeatUnti
97141
97157
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.condRepeatUntilFooter__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
97142
97158
  $n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f__currentIteratorType = new $c_s_Some(dataType);
97143
97159
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).dec__V();
97144
- $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((("} until (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, untilExpr)) + ");"))
97160
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((("} until (" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, untilExpr)) + ");"));
97161
+ this.universalFooter__V()
97145
97162
  });
97146
97163
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
97147
97164
  $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V(((($m_Lio_kaitai_struct_languages_PerlCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + " = ") + expr) + ";"))
97148
97165
  });
97166
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
97167
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((((("my " + id) + " = ") + expr) + ";"))
97168
+ });
97169
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.blockScopeHeader__V = (function() {
97170
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("{");
97171
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).inc__V()
97172
+ });
97173
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.blockScopeFooter__V = (function() {
97174
+ this.universalFooter__V()
97175
+ });
97149
97176
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.parseExpr__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__T__s_Option__T = (function(dataType, assignType, io, defEndian) {
97150
97177
  if ($is_Lio_kaitai_struct_datatype_DataType$ReadableType(dataType)) {
97151
97178
  var x2 = $as_Lio_kaitai_struct_datatype_DataType$ReadableType(dataType);
@@ -97248,6 +97275,31 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.bytesPadTermExpr__T__s_Opt
97248
97275
  };
97249
97276
  return expr2
97250
97277
  });
97278
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
97279
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V((id + "->_read();"))
97280
+ });
97281
+ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
97282
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("my ($failed, $err);");
97283
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("eval {");
97284
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).inc__V();
97285
+ var this$1 = $n(tryBlock);
97286
+ this$1.apply__O();
97287
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("1;");
97288
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).dec__V();
97289
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("} or do {");
97290
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).inc__V();
97291
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("$failed = 1;");
97292
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("$err = $@;");
97293
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).dec__V();
97294
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("};");
97295
+ var this$2 = $n(finallyBlock);
97296
+ this$2.apply__O();
97297
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("if ($failed) {");
97298
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).inc__V();
97299
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("die $err;");
97300
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).dec__V();
97301
+ $n(this.Lio_kaitai_struct_languages_PerlCompiler__f_out).puts__T__V("}")
97302
+ });
97251
97303
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
97252
97304
  /*<skip>*/
97253
97305
  });
@@ -98420,6 +98472,22 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.userTypeDebugRead__T__Li
98420
98472
  var expr = ((!((assignType === null) ? (dataType === null) : $n(assignType).equals__O__Z(dataType))) ? (((("((" + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_ImportList__Lio_kaitai_struct_datatype_DataType__T(this.Lio_kaitai_struct_languages_CSharpCompiler__f_importList, dataType)) + ") (") + id) + "))") : id);
98421
98473
  $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V((expr + "._read();"))
98422
98474
  });
98475
+ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
98476
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V("try");
98477
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V("{");
98478
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).inc__V();
98479
+ var this$1 = $n(tryBlock);
98480
+ this$1.apply__O();
98481
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).dec__V();
98482
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V("}");
98483
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V("finally");
98484
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V("{");
98485
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).inc__V();
98486
+ var this$2 = $n(finallyBlock);
98487
+ this$2.apply__O();
98488
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).dec__V();
98489
+ $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_out).puts__T__V("}")
98490
+ });
98423
98491
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.switchRequiresIfs__Lio_kaitai_struct_datatype_DataType__Z = (function(onType) {
98424
98492
  return (!((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType) || ((onType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType) || (onType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType))))
98425
98493
  });
@@ -99297,6 +99365,21 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.bytesPadTermExpr__T__s_Opti
99297
99365
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
99298
99366
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((id + ":_read()"))
99299
99367
  });
99368
+ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
99369
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V("local success, err = pcall(function()");
99370
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).inc__V();
99371
+ var this$1 = $n(tryBlock);
99372
+ this$1.apply__O();
99373
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).dec__V();
99374
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V("end)");
99375
+ var this$2 = $n(finallyBlock);
99376
+ this$2.apply__O();
99377
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V("if not success then");
99378
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).inc__V();
99379
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V("error(err)");
99380
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).dec__V();
99381
+ $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V("end")
99382
+ });
99300
99383
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
99301
99384
  /*<skip>*/
99302
99385
  });
@@ -99444,6 +99527,9 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.createSubstream__Lio_kaitai
99444
99527
  $c_Lio_kaitai_struct_languages_NimCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
99445
99528
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
99446
99529
  });
99530
+ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
99531
+ $m_s_Predef$().$qmark$qmark$qmark__E()
99532
+ });
99447
99533
  $c_Lio_kaitai_struct_languages_NimCompiler.prototype.attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V = (function(attr, id, defEndian) {
99448
99534
  $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_Identifier__s_Option__V(this, attr, id, defEndian)
99449
99535
  });
@@ -100910,6 +100996,19 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.bytesPadTermExpr__T__s_Opt
100910
100996
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
100911
100997
  $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V((id + "._read"))
100912
100998
  });
100999
+ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
101000
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V("begin");
101001
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).inc__V();
101002
+ var this$1 = $n(tryBlock);
101003
+ this$1.apply__O();
101004
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).dec__V();
101005
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V("ensure");
101006
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).inc__V();
101007
+ var this$2 = $n(finallyBlock);
101008
+ this$2.apply__O();
101009
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).dec__V();
101010
+ $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V("end")
101011
+ });
100913
101012
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
100914
101013
  $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_out).puts__T__V(("case " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)))
100915
101014
  });
@@ -101126,6 +101225,9 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.results__Lio_kaitai_struct
101126
101225
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
101127
101226
  return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__createSubstreamBuffered__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T(this, id, blt, io, rep, defEndian)
101128
101227
  });
101228
+ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
101229
+ $m_s_Predef$().$qmark$qmark$qmark__E()
101230
+ });
101129
101231
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrId, attrType, io, repeat) {
101130
101232
  /*<skip>*/
101131
101233
  });
@@ -104000,6 +104102,19 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.userTypeDebugRead__T__Lio_
104000
104102
  };
104001
104103
  $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V((expr + "._read();"))
104002
104104
  });
104105
+ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
104106
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("try {");
104107
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
104108
+ var this$1 = $n(tryBlock);
104109
+ this$1.apply__O();
104110
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V();
104111
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("} finally {");
104112
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).inc__V();
104113
+ var this$2 = $n(finallyBlock);
104114
+ this$2.apply__O();
104115
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).dec__V();
104116
+ $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_out).puts__T__V("}")
104117
+ });
104003
104118
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.switchCasesRender__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__sci_Map__F1__F1__V = (function(id, on, cases, normalCaseProc, elseCaseProc) {
104004
104119
  var onType = $as_Lio_kaitai_struct_datatype_DataType($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f__currentSwitchType).get__O());
104005
104120
  var isNullable = (onType instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType);
@@ -104968,6 +105083,18 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bytesPadTermExpr__T__s_O
104968
105083
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.userTypeDebugRead__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__V = (function(id, dataType, assignType) {
104969
105084
  $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V((id + "._read()"))
104970
105085
  });
105086
+ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.tryFinally__F0__F0__V = (function(tryBlock, finallyBlock) {
105087
+ $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("try:");
105088
+ $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
105089
+ var this$1 = $n(tryBlock);
105090
+ this$1.apply__O();
105091
+ $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V();
105092
+ $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).puts__T__V("finally:");
105093
+ $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).inc__V();
105094
+ var this$2 = $n(finallyBlock);
105095
+ this$2.apply__O();
105096
+ $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_out).dec__V()
105097
+ });
104971
105098
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.switchStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, on) {
104972
105099
  /*<skip>*/
104973
105100
  });
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "scripts": {
36
36
  "test": "echo \"Error: no test specified\" && exit 1"
37
37
  },
38
- "version": "0.11.0-SNAPSHOT20241002.233639.542b241"
38
+ "version": "0.11.0-SNAPSHOT20241229.150116.12dbc32"
39
39
  }