kaitai-struct-compiler 0.11.0-SNAPSHOT20240824.204755.5929d44 → 0.11.0-SNAPSHOT20240827.132107.4cd8d59

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.
@@ -3012,8 +3012,8 @@ function $m_Lio_kaitai_struct_Utils$() {
3012
3012
  function $c_Lio_kaitai_struct_Version$() {
3013
3013
  this.Lio_kaitai_struct_Version$__f_version = null;
3014
3014
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
3015
- this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240824.204755.5929d44";
3016
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-08-24T20:47:55Z"
3015
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240827.132107.4cd8d59";
3016
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2024-08-27T13:21:07Z"
3017
3017
  }
3018
3018
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
3019
3019
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -18058,14 +18058,16 @@ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_k
18058
18058
  } else {
18059
18059
  var io$2 = $n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).normalIO__T()
18060
18060
  };
18061
- var needsDebug = $thiz.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(id);
18062
- if (needsDebug) {
18063
- $thiz.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType(), new $c_s_Some(io$2), $m_Lio_kaitai_struct_format_NoRepeat$());
18061
+ if ($f_Lio_kaitai_struct_languages_components_CommonReads__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, id)) {
18064
18062
  var x$3 = $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat;
18065
18063
  var x$4 = $m_Lio_kaitai_struct_format_NoRepeat$();
18066
- if ((!((x$3 !== null) && $n(x$3).equals__O__Z(x$4)))) {
18067
- $thiz.attrDebugArrInit__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType())
18068
- }
18064
+ var needsArrayDebug = (!((x$3 !== null) && $n(x$3).equals__O__Z(x$4)))
18065
+ } else {
18066
+ var needsArrayDebug = false
18067
+ };
18068
+ if (needsArrayDebug) {
18069
+ $thiz.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType(), new $c_s_Some(io$2), $m_Lio_kaitai_struct_format_NoRepeat$());
18070
+ $thiz.attrDebugArrInit__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType())
18069
18071
  };
18070
18072
  matchEnd12: {
18071
18073
  matchEnd15: {
@@ -18116,7 +18118,7 @@ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_k
18116
18118
  };
18117
18119
  throw new $c_s_MatchError(defEndian)
18118
18120
  };
18119
- if (needsDebug) {
18121
+ if (needsArrayDebug) {
18120
18122
  $thiz.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType(), io$2, $m_Lio_kaitai_struct_format_NoRepeat$())
18121
18123
  };
18122
18124
  if ((attr instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
@@ -18124,8 +18126,7 @@ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse__Lio_k
18124
18126
  var this$4 = $n($n(x2$3).Lio_kaitai_struct_format_ParseInstanceSpec__f_pos);
18125
18127
  if ((!this$4.isEmpty__Z())) {
18126
18128
  $n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).popPos__T__V(io$2)
18127
- };
18128
- $n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V($n(x2$3).Lio_kaitai_struct_format_ParseInstanceSpec__f_id)
18129
+ }
18129
18130
  };
18130
18131
  $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)
18131
18132
  }
@@ -18177,7 +18178,14 @@ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse0__Lio_
18177
18178
  };
18178
18179
  throw new $c_s_MatchError(x1)
18179
18180
  };
18181
+ var needsDebug = $f_Lio_kaitai_struct_languages_components_CommonReads__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, id);
18182
+ if (needsDebug) {
18183
+ $thiz.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType(), new $c_s_Some(io), $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat)
18184
+ };
18180
18185
  $thiz.attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType(), io, $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat, false, defEndian, $thiz.attrParse2$default$7__s_Option());
18186
+ if (needsDebug) {
18187
+ $thiz.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V(id, $n(attr).dataType__Lio_kaitai_struct_datatype_DataType(), io, $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat)
18188
+ };
18181
18189
  $f_Lio_kaitai_struct_languages_components_CommonReads__attrValidateAll__Lio_kaitai_struct_format_AttrLikeSpec__V($thiz, attr);
18182
18190
  var x1$2 = $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat;
18183
18191
  matchEnd8: {
@@ -18205,14 +18213,19 @@ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrParse0__Lio_
18205
18213
  throw new $c_s_MatchError(x1$2)
18206
18214
  }
18207
18215
  }
18216
+ function $f_Lio_kaitai_struct_languages_components_CommonReads__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, attrId) {
18217
+ if ((!$n($n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readStoresPos)) {
18218
+ return false
18219
+ };
18220
+ return ((attrId instanceof $c_Lio_kaitai_struct_format_NamedIdentifier) || ((attrId instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)))
18221
+ }
18208
18222
  function $f_Lio_kaitai_struct_languages_components_CommonReads__attrValidateAll__Lio_kaitai_struct_format_AttrLikeSpec__V($thiz, attr) {
18209
18223
  var this$1 = $n($n(attr).valid__s_Option());
18210
18224
  if ((!this$1.isEmpty__Z())) {
18211
18225
  var arg1 = this$1.get__O();
18212
18226
  var valid = $as_Lio_kaitai_struct_format_ValidationSpec(arg1);
18213
18227
  var this$2 = $n($as_Lio_kaitai_struct_languages_components_ValidateOps($thiz));
18214
- var attrId = $n(attr).id__Lio_kaitai_struct_format_Identifier();
18215
- $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_ValidationSpec__V(this$2, attrId, attr, valid)
18228
+ $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_ValidationSpec__V(this$2, attr, valid)
18216
18229
  }
18217
18230
  }
18218
18231
  /** @constructor */
@@ -34239,12 +34252,12 @@ $c_Lio_kaitai_struct_ClassCompiler.prototype.compileInstance__sci_List__Lio_kait
34239
34252
  this.compileInstanceDoc__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_InstanceSpec__V(instName, instSpec)
34240
34253
  };
34241
34254
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
34255
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
34242
34256
  if ((instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec)) {
34243
34257
  var x2 = $as_Lio_kaitai_struct_format_ValueInstanceSpec(instSpec);
34244
34258
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfHeader__Lio_kaitai_struct_format_Identifier__s_Option__V(instName, $n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr);
34245
34259
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(instName, dataType, $n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_value);
34246
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfFooter__s_Option__V($n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr);
34247
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
34260
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfFooter__s_Option__V($n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr)
34248
34261
  } else if ((instSpec instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
34249
34262
  var x3 = $as_Lio_kaitai_struct_format_ParseInstanceSpec(instSpec);
34250
34263
  var this$1 = $n(this.Lio_kaitai_struct_ClassCompiler__f_lang);
@@ -38188,36 +38201,36 @@ function $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCasesUsing
38188
38201
  }
38189
38202
  }
38190
38203
  }
38191
- function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_ValidationSpec__V($thiz, attrId, attr, valid) {
38192
- var itemValue = $m_Lio_kaitai_struct_format_Identifier$().itemExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Lio_kaitai_struct_exprlang_Ast$expr(attrId, $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat);
38204
+ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_format_ValidationSpec__V($thiz, attr, valid) {
38205
+ var itemValue = $m_Lio_kaitai_struct_format_Identifier$().itemExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Lio_kaitai_struct_exprlang_Ast$expr($n(attr).id__Lio_kaitai_struct_format_Identifier(), $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat);
38193
38206
  if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationEq)) {
38194
38207
  var x2 = $as_Lio_kaitai_struct_format_ValidationEq(valid);
38195
38208
  var expected = $n(x2).Lio_kaitai_struct_format_ValidationEq__f_value;
38196
38209
  var op = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$();
38197
38210
  var err = new $c_Lio_kaitai_struct_datatype_ValidationNotEqualError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38198
- $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op, expected, err)
38211
+ $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attr, op, expected, err)
38199
38212
  } else if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationMin)) {
38200
38213
  var x3 = $as_Lio_kaitai_struct_format_ValidationMin(valid);
38201
38214
  var min = $n(x3).Lio_kaitai_struct_format_ValidationMin__f_min;
38202
38215
  var op$1 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$GtE$();
38203
38216
  var err$1 = new $c_Lio_kaitai_struct_datatype_ValidationLessThanError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38204
- $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op$1, min, err$1)
38217
+ $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attr, op$1, min, err$1)
38205
38218
  } else if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationMax)) {
38206
38219
  var x4 = $as_Lio_kaitai_struct_format_ValidationMax(valid);
38207
38220
  var max = $n(x4).Lio_kaitai_struct_format_ValidationMax__f_max;
38208
38221
  var op$2 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$LtE$();
38209
38222
  var err$2 = new $c_Lio_kaitai_struct_datatype_ValidationGreaterThanError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38210
- $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op$2, max, err$2)
38223
+ $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attr, op$2, max, err$2)
38211
38224
  } else if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationRange)) {
38212
38225
  var x5 = $as_Lio_kaitai_struct_format_ValidationRange(valid);
38213
38226
  var min$2 = $n(x5).Lio_kaitai_struct_format_ValidationRange__f_min;
38214
38227
  var max$2 = $n(x5).Lio_kaitai_struct_format_ValidationRange__f_max;
38215
38228
  var op$3 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$GtE$();
38216
38229
  var err$3 = new $c_Lio_kaitai_struct_datatype_ValidationLessThanError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38217
- $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op$3, min$2, err$3);
38230
+ $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attr, op$3, min$2, err$3);
38218
38231
  var op$4 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$LtE$();
38219
38232
  var err$4 = new $c_Lio_kaitai_struct_datatype_ValidationGreaterThanError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38220
- $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op$4, max$2, err$4)
38233
+ $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attr, op$4, max$2, err$4)
38221
38234
  } else if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationAnyOf)) {
38222
38235
  var x6 = $as_Lio_kaitai_struct_format_ValidationAnyOf(valid);
38223
38236
  var values = $n(x6).Lio_kaitai_struct_format_ValidationAnyOf__f_values;
@@ -38244,57 +38257,54 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
38244
38257
  var $$x1 = h
38245
38258
  };
38246
38259
  var bigOrExpr = new $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp($$x2, $$x1);
38247
- var $$x5 = $n(attr).dataType__Lio_kaitai_struct_datatype_DataType();
38248
38260
  var $$x4 = new $c_Lio_kaitai_struct_datatype_ValidationNotAnyOfError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38249
38261
  $n($m_s_package$().s_package$__f_List);
38250
38262
  var $$x3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName($m_Lio_kaitai_struct_format_IoIdentifier$());
38251
38263
  var this$3 = $n($n(attr).path__sci_List());
38252
38264
  var array = [itemValue, $$x3, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str($f_sc_IterableOnceOps__mkString__T__T__T__T(this$3, "/", "/", ""))];
38253
38265
  var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
38254
- $thiz.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attrId, $$x5, bigOrExpr, $$x4, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems))
38266
+ $thiz.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attr, bigOrExpr, $$x4, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems))
38255
38267
  } else if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationInEnum)) {
38256
- var $$x8 = $as_Lio_kaitai_struct_datatype_DataType$EnumType($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38257
- var $$x7 = new $c_Lio_kaitai_struct_datatype_ValidationNotInEnumError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38268
+ var $$x7 = $as_Lio_kaitai_struct_datatype_DataType$EnumType($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38269
+ var $$x6 = new $c_Lio_kaitai_struct_datatype_ValidationNotInEnumError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38258
38270
  $n($m_s_package$().s_package$__f_List);
38259
- var $$x6 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName($m_Lio_kaitai_struct_format_IoIdentifier$());
38271
+ var $$x5 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName($m_Lio_kaitai_struct_format_IoIdentifier$());
38260
38272
  var this$8 = $n($n(attr).path__sci_List());
38261
- var array$1 = [itemValue, $$x6, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str($f_sc_IterableOnceOps__mkString__T__T__T__T(this$8, "/", "/", ""))];
38273
+ var array$1 = [itemValue, $$x5, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str($f_sc_IterableOnceOps__mkString__T__T__T__T(this$8, "/", "/", ""))];
38262
38274
  var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
38263
- $thiz.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V(attrId, $$x8, itemValue, $$x7, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1))
38275
+ $thiz.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V(attr, $$x7, itemValue, $$x6, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1))
38264
38276
  } else if ((valid instanceof $c_Lio_kaitai_struct_format_ValidationExpr)) {
38265
38277
  var x8 = $as_Lio_kaitai_struct_format_ValidationExpr(valid);
38266
38278
  var expr = $n(x8).Lio_kaitai_struct_format_ValidationExpr__f_checkExpr;
38267
38279
  $thiz.blockScopeHeader__V();
38268
38280
  $n($thiz.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f__currentIteratorType = new $c_s_Some($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38269
- var $$x10 = $n(attr).dataType__Lio_kaitai_struct_datatype_DataType();
38281
+ var $$x9 = $n(attr).dataType__Lio_kaitai_struct_datatype_DataType();
38270
38282
  var this$13 = $n($thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator());
38271
38283
  var v = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name(new $c_Lio_kaitai_struct_exprlang_Ast$identifier($m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_ITERATOR));
38272
- var $$x9 = this$13.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0);
38284
+ var $$x8 = this$13.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(v, 0);
38273
38285
  var this$14 = $n($thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator());
38274
- $thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($$x10, $$x9, this$14.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(itemValue, 0));
38275
- var $$x13 = $n(attr).dataType__Lio_kaitai_struct_datatype_DataType();
38276
- var $$x12 = new $c_Lio_kaitai_struct_datatype_ValidationExprError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38286
+ $thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($$x9, $$x8, this$14.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(itemValue, 0));
38287
+ var $$x11 = new $c_Lio_kaitai_struct_datatype_ValidationExprError($n(attr).dataType__Lio_kaitai_struct_datatype_DataType());
38277
38288
  $n($m_s_package$().s_package$__f_List);
38278
- var $$x11 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName($m_Lio_kaitai_struct_format_IoIdentifier$());
38289
+ var $$x10 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName($m_Lio_kaitai_struct_format_IoIdentifier$());
38279
38290
  var this$15 = $n($n(attr).path__sci_List());
38280
- var array$2 = [itemValue, $$x11, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str($f_sc_IterableOnceOps__mkString__T__T__T__T(this$15, "/", "/", ""))];
38291
+ var array$2 = [itemValue, $$x10, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str($f_sc_IterableOnceOps__mkString__T__T__T__T(this$15, "/", "/", ""))];
38281
38292
  var elems$2 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$2);
38282
- $thiz.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attrId, $$x13, expr, $$x12, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$2));
38293
+ $thiz.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attr, expr, $$x11, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$2));
38283
38294
  $thiz.blockScopeFooter__V()
38284
38295
  } else {
38285
38296
  throw new $c_s_MatchError(valid)
38286
38297
  }
38287
38298
  }
38288
- function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op, expected, err) {
38289
- var itemValue = $m_Lio_kaitai_struct_format_Identifier$().itemExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Lio_kaitai_struct_exprlang_Ast$expr(attrId, $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat);
38290
- var $$x3 = $n(attr).dataType__Lio_kaitai_struct_datatype_DataType();
38299
+ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attr, op, expected, err) {
38300
+ var itemValue = $m_Lio_kaitai_struct_format_Identifier$().itemExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Lio_kaitai_struct_exprlang_Ast$expr($n(attr).id__Lio_kaitai_struct_format_Identifier(), $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat);
38291
38301
  var $$x2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare(itemValue, op, expected);
38292
38302
  $n($m_s_package$().s_package$__f_List);
38293
38303
  var $$x1 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName($m_Lio_kaitai_struct_format_IoIdentifier$());
38294
38304
  var this$1 = $n($n(attr).path__sci_List());
38295
38305
  var array = [expected, itemValue, $$x1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str($f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, "/", "/", ""))];
38296
38306
  var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
38297
- $thiz.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attrId, $$x3, $$x2, err, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems))
38307
+ $thiz.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attr, $$x2, err, $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems))
38298
38308
  }
38299
38309
  function $is_Lio_kaitai_struct_languages_components_ValidateOps(obj) {
38300
38310
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Lio_kaitai_struct_languages_components_ValidateOps)))
@@ -43958,6 +43968,7 @@ $c_Lio_kaitai_struct_GoClassCompiler.prototype.compileInstance__sci_List__Lio_ka
43958
43968
  };
43959
43969
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(className, instName, dataType, $n(instSpec).isNullable__Z());
43960
43970
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
43971
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
43961
43972
  if ((instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec)) {
43962
43973
  var x2 = $as_Lio_kaitai_struct_format_ValueInstanceSpec(instSpec);
43963
43974
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfHeader__Lio_kaitai_struct_format_Identifier__s_Option__V(instName, $n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr);
@@ -43970,7 +43981,6 @@ $c_Lio_kaitai_struct_GoClassCompiler.prototype.compileInstance__sci_List__Lio_ka
43970
43981
  } else {
43971
43982
  throw new $c_s_MatchError(instSpec)
43972
43983
  };
43973
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
43974
43984
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
43975
43985
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceFooter__V()
43976
43986
  });
@@ -44282,12 +44292,12 @@ $c_Lio_kaitai_struct_NimClassCompiler.prototype.compileInstance__sci_List__Lio_k
44282
44292
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V(className, instName, dataType, $n(instSpec).isNullable__Z());
44283
44293
  this.compileInstanceDoc__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_InstanceSpec__V(instName, instSpec);
44284
44294
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
44295
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName);
44285
44296
  if ((instSpec instanceof $c_Lio_kaitai_struct_format_ValueInstanceSpec)) {
44286
44297
  var x2 = $as_Lio_kaitai_struct_format_ValueInstanceSpec(instSpec);
44287
44298
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfHeader__Lio_kaitai_struct_format_Identifier__s_Option__V(instName, $n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr);
44288
44299
  $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(instName, dataType, $n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_value);
44289
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfFooter__s_Option__V($n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr);
44290
- $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).instanceSetCalculated__Lio_kaitai_struct_format_InstanceIdentifier__V(instName)
44300
+ $n(this.Lio_kaitai_struct_ClassCompiler__f_lang).attrParseIfFooter__s_Option__V($n(x2).Lio_kaitai_struct_format_ValueInstanceSpec__f_ifExpr)
44291
44301
  } else if ((instSpec instanceof $c_Lio_kaitai_struct_format_ParseInstanceSpec)) {
44292
44302
  var x3 = $as_Lio_kaitai_struct_format_ParseInstanceSpec(instSpec);
44293
44303
  var this$1 = $n(this.Lio_kaitai_struct_ClassCompiler__f_lang);
@@ -45473,7 +45483,7 @@ $c_s_Predef$.prototype.require__Z__V = (function(requirement) {
45473
45483
  }
45474
45484
  });
45475
45485
  $c_s_Predef$.prototype.$qmark$qmark$qmark__E = (function() {
45476
- throw $ct_s_NotImplementedError__(new $c_s_NotImplementedError())
45486
+ throw new $c_s_NotImplementedError()
45477
45487
  });
45478
45488
  var $d_s_Predef$ = new $TypeData().initClass({
45479
45489
  s_Predef$: 0
@@ -51664,15 +51674,6 @@ function $m_Lio_kaitai_struct_languages_RubyCompiler$() {
51664
51674
  function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrParse2__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__Z__s_Option__s_Option__V($thiz, id, dataType, io, rep, isRaw, defEndian, assignTypeOpt) {
51665
51675
  var this$1 = $n(assignTypeOpt);
51666
51676
  var assignType = $as_Lio_kaitai_struct_datatype_DataType((this$1.isEmpty__Z() ? dataType : this$1.get__O()));
51667
- if ($f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, id)) {
51668
- var x$2 = $m_Lio_kaitai_struct_format_NoRepeat$();
51669
- var needsDebug = (!((rep !== null) && $n(rep).equals__O__Z(x$2)))
51670
- } else {
51671
- var needsDebug = false
51672
- };
51673
- if (needsDebug) {
51674
- $thiz.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V(id, dataType, new $c_s_Some(io), rep)
51675
- };
51676
51677
  if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$UserType)) {
51677
51678
  var x2 = $as_Lio_kaitai_struct_datatype_DataType$UserType(dataType);
51678
51679
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrUserTypeParse__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__Lio_kaitai_struct_datatype_DataType__V($thiz, id, x2, io, rep, defEndian, assignType)
@@ -51681,8 +51682,8 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrPa
51681
51682
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrBytesTypeParse__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, x3, io, rep, isRaw)
51682
51683
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$SwitchType)) {
51683
51684
  var x4 = $as_Lio_kaitai_struct_datatype_DataType$SwitchType(dataType);
51684
- var x$4 = $m_Lio_kaitai_struct_format_NoRepeat$();
51685
- if (((rep !== null) && $n(rep).equals__O__Z(x$4))) {
51685
+ var x$2 = $m_Lio_kaitai_struct_format_NoRepeat$();
51686
+ if (((rep !== null) && $n(rep).equals__O__Z(x$2))) {
51686
51687
  if ($thiz.switchBytesOnlyAsRaw__Z()) {
51687
51688
  var isNullable = $n(x4).isNullableSwitchRaw__Z()
51688
51689
  } else {
@@ -51711,9 +51712,6 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrPa
51711
51712
  } else {
51712
51713
  var expr$3 = $thiz.parseExpr__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__T__s_Option__T(dataType, assignType, io, defEndian);
51713
51714
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, expr$3, rep, isRaw)
51714
- };
51715
- if (needsDebug) {
51716
- $thiz.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V(id, dataType, io, rep)
51717
51715
  }
51718
51716
  }
51719
51717
  function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrBytesTypeParse__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesType__T__Lio_kaitai_struct_format_RepeatSpec__Z__V($thiz, id, dataType, io, rep, isRaw) {
@@ -51873,17 +51871,11 @@ function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handle
51873
51871
  }
51874
51872
  }
51875
51873
  function $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($thiz, instName, dataType, value) {
51876
- if ($f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, instName)) {
51874
+ if ($f_Lio_kaitai_struct_languages_components_CommonReads__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, instName)) {
51877
51875
  $thiz.attrDebugStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__s_Option__Lio_kaitai_struct_format_RepeatSpec__V(instName, dataType, $m_s_None$(), $m_Lio_kaitai_struct_format_NoRepeat$())
51878
51876
  };
51879
51877
  $thiz.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(instName, $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T($thiz, value))
51880
51878
  }
51881
- function $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, attrId) {
51882
- if ((!$n($n($as_Lio_kaitai_struct_languages_components_LanguageCompiler($thiz)).Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_readStoresPos)) {
51883
- return false
51884
- };
51885
- return ((attrId instanceof $c_Lio_kaitai_struct_format_NamedIdentifier) || ((attrId instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)))
51886
- }
51887
51879
  /** @constructor */
51888
51880
  function $c_Lio_kaitai_struct_problems_ProblemCoords(file, path, line, col) {
51889
51881
  this.Lio_kaitai_struct_problems_ProblemCoords__f_file = null;
@@ -55333,15 +55325,11 @@ function $h_s_$eq$colon$eq() {
55333
55325
  /*<skip>*/
55334
55326
  }
55335
55327
  $h_s_$eq$colon$eq.prototype = $c_s_$eq$colon$eq.prototype;
55336
- function $ct_s_NotImplementedError__T__($thiz, msg) {
55337
- $ct_jl_Throwable__T__jl_Throwable__Z__Z__($thiz, msg, null, true, true);
55338
- return $thiz
55339
- }
55340
- function $ct_s_NotImplementedError__($thiz) {
55341
- $ct_jl_Throwable__T__jl_Throwable__Z__Z__($thiz, "an implementation is missing", null, true, true);
55342
- return $thiz
55343
- }
55344
55328
  class $c_s_NotImplementedError extends $c_jl_Error {
55329
+ constructor() {
55330
+ super();
55331
+ $ct_jl_Throwable__T__jl_Throwable__Z__Z__(this, "an implementation is missing", null, true, true)
55332
+ };
55345
55333
  }
55346
55334
  var $d_s_NotImplementedError = new $TypeData().initClass({
55347
55335
  s_NotImplementedError: 0
@@ -65176,10 +65164,10 @@ $h_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype = $c_Lio_ka
65176
65164
  $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List = (function(id, ut, condSpec) {
65177
65165
  return $f_Lio_kaitai_struct_languages_components_ExtraAttrs__extraRawAttrForUserTypeFromBytes__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$UserTypeFromBytes__Lio_kaitai_struct_format_ConditionalSpec__sci_List(this, id, ut, condSpec)
65178
65166
  });
65179
- $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
65167
+ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
65180
65168
  /*<skip>*/
65181
65169
  });
65182
- $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
65170
+ $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
65183
65171
  /*<skip>*/
65184
65172
  });
65185
65173
  $c_Lio_kaitai_struct_languages_components_LanguageCompiler.prototype.switchCaseFirstStart__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(condition) {
@@ -88200,12 +88188,7 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.strReverse__Lio_kaitai
88200
88188
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".reverse")
88201
88189
  });
88202
88190
  $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, from, to) {
88203
- var $$x2 = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE);
88204
- var $$x1 = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(from, 0);
88205
- var op = $m_Lio_kaitai_struct_exprlang_Ast$operator$Sub$();
88206
- var this$1 = $m_s_math_BigInt$();
88207
- var right = new $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum(this$1.apply__I__s_math_BigInt(1));
88208
- return ((((($$x2 + "[") + $$x1) + "..") + $f_Lio_kaitai_struct_translators_CommonOps__genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$operator__Lio_kaitai_struct_exprlang_Ast$expr__I__T(this, to, op, right, 0)) + "]")
88191
+ return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(s, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(from, 0)) + "...") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(to, 0)) + "]")
88209
88192
  });
88210
88193
  $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.arrayFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
88211
88194
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(a, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".first")
@@ -89399,14 +89382,15 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLength__Lio_kaitai
89399
89382
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".length()")
89400
89383
  });
89401
89384
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
89402
- return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(container, 0) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(idx, 0)) + "]")
89385
+ return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(container, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE) + ".at(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(idx, 0)) + ")")
89403
89386
  });
89404
89387
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
89388
+ var bStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, this.Lio_kaitai_struct_translators_BaseTranslator__f_METHOD_PRECEDENCE);
89405
89389
  var x1 = $n($n(this.Lio_kaitai_struct_translators_CppTranslator__f_config).Lio_kaitai_struct_RuntimeConfig__f_cppConfig).Lio_kaitai_struct_CppRuntimeConfig__f_stdStringFrontBack;
89406
89390
  if ((x1 === true)) {
89407
- return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, 0) + ".front()")
89391
+ return (bStr + ".front()")
89408
89392
  } else if ((x1 === false)) {
89409
- return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(b, 0) + "[0]")
89393
+ return (bStr + ".at(0)")
89410
89394
  } else {
89411
89395
  throw new $c_s_MatchError(x1)
89412
89396
  }
@@ -89417,7 +89401,7 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLast__Lio_kaitai_s
89417
89401
  if ((x1 === true)) {
89418
89402
  return (bStr + ".back()")
89419
89403
  } else if ((x1 === false)) {
89420
- return (((bStr + "[") + bStr) + ".length() - 1]")
89404
+ return (((bStr + ".at(") + bStr) + ".length() - 1)")
89421
89405
  } else {
89422
89406
  throw new $c_s_MatchError(x1)
89423
89407
  }
@@ -91138,9 +91122,6 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrParse2$default$7__s_Opt
91138
91122
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
91139
91123
  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)
91140
91124
  });
91141
- $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
91142
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
91143
- });
91144
91125
  $c_Lio_kaitai_struct_languages_CppCompiler.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) {
91145
91126
  /*<skip>*/
91146
91127
  });
@@ -92238,7 +92219,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceReturn__Lio_kaitai_
92238
92219
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((("return " + this.nonOwningPointer__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T(instName, attrType)) + ";"))
92239
92220
  });
92240
92221
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
92241
- $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, instName);
92222
+ $f_Lio_kaitai_struct_languages_components_CommonReads__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, instName);
92242
92223
  var valExpr = $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, value);
92243
92224
  if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$ComplexDataType)) {
92244
92225
  var x2 = $as_Lio_kaitai_struct_datatype_DataType$ComplexDataType(dataType);
@@ -92310,35 +92291,52 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.enumDeclaration__sci_List__
92310
92291
  };
92311
92292
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outHdr).dec__V();
92312
92293
  $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outHdr).puts__T__V("};");
92294
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outHdr).puts__T__V((((("static bool _is_defined_" + enumClass) + "(") + enumClass) + " v);"));
92295
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_importListHdr).addSystem__T__V("set");
92296
+ var inClassRef = $m_Lio_kaitai_struct_languages_CppCompiler$().types2class__sci_List__T(curClass);
92297
+ var enumClassAbs = ((inClassRef + "::") + enumClass);
92298
+ var valuesSetAbsRef = ((inClassRef + "::_values_") + enumClass);
92299
+ this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$());
92300
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outHdr).puts__T__V((((("static const std::set<" + enumClass) + "> _values_") + enumClass) + ";"));
92313
92301
  if ($n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_cppConfig).Lio_kaitai_struct_CppRuntimeConfig__f_useListInitializers) {
92314
- $n(this.Lio_kaitai_struct_languages_CppCompiler__f_importListHdr).addSystem__T__V("set");
92315
- $n(this.Lio_kaitai_struct_languages_CppCompiler__f_importListHdr).addSystem__T__V("type_traits");
92316
- $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outHdr).puts__T__V((((("static const std::set<std::underlying_type<" + enumClass) + ">::type> _values_") + enumClass) + ";"));
92317
- var $$x8 = $m_Lio_kaitai_struct_languages_CppCompiler$();
92318
- var this$16 = $n(curClass);
92319
- $n($m_s_package$().s_package$__f_List);
92320
- var array$1 = [enumName];
92321
- var elems$1 = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array$1);
92322
- var suffix = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$1);
92323
- var enumClassAbs = $n($$x8).types2class__sci_List__T(this$16.appendedAll__sc_IterableOnce__sci_List(suffix));
92324
- var valuesSetAbsRef = (($m_Lio_kaitai_struct_languages_CppCompiler$().types2class__sci_List__T(curClass) + "::_values_") + enumClass);
92325
- var this$19 = $n($as_sc_IterableOnceOps($n(enumColl).map__F1__O(new $c_sjsr_AnonFunction1(((x0$2$2) => {
92302
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((("const std::set<" + enumClassAbs) + "> ") + valuesSetAbsRef) + "{"));
92303
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).inc__V();
92304
+ $n(enumColl).foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$2$2) => {
92326
92305
  var x0$2 = $as_T2(x0$2$2);
92327
92306
  if ((x0$2 !== null)) {
92328
- var this$17 = $n(x0$2);
92329
- var t$2 = $uJ(this$17.T2__f__1);
92330
- var lo$2 = t$2.RTLong__f_lo;
92331
- var hi$2 = t$2.RTLong__f_hi;
92332
- var $$x9 = $n(this.Lio_kaitai_struct_languages_CppCompiler__f_translator);
92333
- var this$18 = $m_s_math_BigInt$();
92334
- return $n($$x9).doIntLiteral__s_math_BigInt__T(this$18.apply__J__s_math_BigInt(new $c_RTLong(lo$2, hi$2)))
92307
+ var label$2 = $as_Lio_kaitai_struct_format_EnumValueSpec($n(x0$2).T2__f__2);
92308
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((inClassRef + "::") + this.value2Const__T__T__T(enumName, $n(label$2).Lio_kaitai_struct_format_EnumValueSpec__f_name)) + ","))
92335
92309
  } else {
92336
92310
  throw new $c_s_MatchError(x0$2)
92337
92311
  }
92338
- })))));
92339
- var setEntriesStr = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$19, "", ", ", "");
92340
- $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((((("const std::set<std::underlying_type<" + enumClassAbs) + ">::type> ") + valuesSetAbsRef) + "{") + setEntriesStr) + "};"))
92341
- }
92312
+ })));
92313
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).dec__V();
92314
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("};")
92315
+ } else {
92316
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outHdr).puts__T__V((((("static std::set<" + enumClass) + "> _build_values_") + enumClass) + "();"));
92317
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((((("std::set<" + enumClassAbs) + "> ") + inClassRef) + "::_build_values_") + enumClass) + "() {"));
92318
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).inc__V();
92319
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((("std::set<" + enumClassAbs) + "> _t;"));
92320
+ $n(enumColl).foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$3$2) => {
92321
+ var x0$3 = $as_T2(x0$3$2);
92322
+ if ((x0$3 !== null)) {
92323
+ var label$3 = $as_Lio_kaitai_struct_format_EnumValueSpec($n(x0$3).T2__f__2);
92324
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((("_t.insert(" + inClassRef) + "::") + this.value2Const__T__T__T(enumName, $n(label$3).Lio_kaitai_struct_format_EnumValueSpec__f_name)) + ");"))
92325
+ } else {
92326
+ throw new $c_s_MatchError(x0$3)
92327
+ }
92328
+ })));
92329
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("return _t;");
92330
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).dec__V();
92331
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("}");
92332
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((((((("const std::set<" + enumClassAbs) + "> ") + valuesSetAbsRef) + " = ") + inClassRef) + "::_build_values_") + enumClass) + "();"))
92333
+ };
92334
+ this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
92335
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((((("bool " + inClassRef) + "::_is_defined_") + enumClass) + "(") + enumClassAbs) + " v) {"));
92336
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).inc__V();
92337
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((("return " + valuesSetAbsRef) + ".find(v) != ") + valuesSetAbsRef) + ".end();"));
92338
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).dec__V();
92339
+ $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V("}")
92342
92340
  });
92343
92341
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.classToString__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(toStringExpr) {
92344
92342
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
@@ -92484,23 +92482,19 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.ksErrorName__Lio_kaitai_str
92484
92482
  }
92485
92483
  }
92486
92484
  });
92487
- $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
92485
+ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
92488
92486
  var this$1 = $n(this.Lio_kaitai_struct_languages_CppCompiler__f_translator);
92489
92487
  $p_Lio_kaitai_struct_languages_CppCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, errArgs)
92490
92488
  });
92491
- $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
92492
- if ((!$n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_cppConfig).Lio_kaitai_struct_CppRuntimeConfig__f_useListInitializers)) {
92493
- throw $ct_s_NotImplementedError__T__(new $c_s_NotImplementedError(), "`valid/in-enum` is not yet implemented for C++98 (switch to C++11 or avoid this feature)")
92494
- };
92489
+ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
92495
92490
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
92496
92491
  var $$x1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
92497
92492
  var this$1 = $n($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name);
92498
92493
  var inClassRef = $n($$x1).types2class__sci_List__T($as_sci_List($f_sc_StrictOptimizedIterableOps__dropRight__I__O(this$1, 1)));
92499
92494
  var className = $as_T($n($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name).last__O());
92500
92495
  var enumNameStr = $m_Lio_kaitai_struct_languages_CppCompiler$().type2class__T__T(className);
92501
- var valuesSetRef = ((inClassRef + "::_values_") + enumNameStr);
92502
92496
  var this$2 = $n(this.Lio_kaitai_struct_languages_CppCompiler__f_translator);
92503
- $p_Lio_kaitai_struct_languages_CppCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (((((valuesSetRef + ".find(") + this$2.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0)) + ") == ") + valuesSetRef) + ".end()"), err, errArgs)
92497
+ $p_Lio_kaitai_struct_languages_CppCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (((((("!" + inClassRef) + "::_is_defined_") + enumNameStr) + "(") + this$2.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0)) + ")"), err, errArgs)
92504
92498
  });
92505
92499
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.translator__Lio_kaitai_struct_translators_AbstractTranslator = (function() {
92506
92500
  return this.Lio_kaitai_struct_languages_CppCompiler__f_translator
@@ -93111,9 +93105,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugArrInit__Lio_kaitai
93111
93105
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrName, attrType, io, repeat) {
93112
93106
  /*<skip>*/
93113
93107
  });
93114
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
93115
- return false
93116
- });
93117
93108
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
93118
93109
  return $m_sci_Nil$()
93119
93110
  });
@@ -93807,11 +93798,11 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.publicMemberName__Lio_kaitai
93807
93798
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
93808
93799
  return ("_f_" + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
93809
93800
  });
93810
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
93801
+ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
93811
93802
  var this$1 = $n(this.Lio_kaitai_struct_languages_GoCompiler__f_translator);
93812
93803
  $p_Lio_kaitai_struct_languages_GoCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, errArgs)
93813
93804
  });
93814
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
93805
+ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
93815
93806
  var this$1 = $n(this.Lio_kaitai_struct_languages_GoCompiler__f_translator);
93816
93807
  $p_Lio_kaitai_struct_languages_GoCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0)) + ".isDefined()"), err, errArgs)
93817
93808
  });
@@ -93852,7 +93843,7 @@ function $p_Lio_kaitai_struct_languages_JavaScriptCompiler__switchCmpExpr__Lio_k
93852
93843
  var e = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_NAME_SWITCH_ON, $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$(), condition);
93853
93844
  return $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T($thiz, e)
93854
93845
  }
93855
- function $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_KSError__sci_List__V($thiz, failCondExpr, attrId, err, errArgs) {
93846
+ function $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_KSError__sci_List__V($thiz, failCondExpr, attr, err, errArgs) {
93856
93847
  var this$3 = $n(errArgs);
93857
93848
  var f = ((v$2) => {
93858
93849
  var v = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2);
@@ -93880,8 +93871,9 @@ function $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio
93880
93871
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((("if (" + failCondExpr) + ") {"));
93881
93872
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).inc__V();
93882
93873
  var errObj = (((("new " + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().ksErrorName__Lio_kaitai_struct_datatype_KSError__T(err)) + "(") + errArgsStr) + ")");
93883
- if ($f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, attrId)) {
93884
- var debugName = $thiz.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T(attrId, $m_Lio_kaitai_struct_format_NoRepeat$(), true);
93874
+ var attrId = $n(attr).id__Lio_kaitai_struct_format_Identifier();
93875
+ if ($f_Lio_kaitai_struct_languages_components_CommonReads__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, attrId)) {
93876
+ var debugName = $thiz.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T($n(attr).id__Lio_kaitai_struct_format_Identifier(), $n($n(attr).cond__Lio_kaitai_struct_format_ConditionalSpec()).Lio_kaitai_struct_format_ConditionalSpec__f_repeat, true);
93885
93877
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((("var _err = " + errObj) + ";"));
93886
93878
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((debugName + ".validationError = _err;"));
93887
93879
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V("throw _err;")
@@ -93930,9 +93922,6 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.createSubstreamFixed
93930
93922
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
93931
93923
  $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)
93932
93924
  });
93933
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
93934
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
93935
- });
93936
93925
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
93937
93926
  return $m_sci_Nil$()
93938
93927
  });
@@ -94749,15 +94738,15 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.privateMemberName__L
94749
94738
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
94750
94739
  return ("_t_" + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
94751
94740
  });
94752
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
94741
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
94753
94742
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_translator);
94754
- $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), attrId, err, errArgs)
94743
+ $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), attr, err, errArgs)
94755
94744
  });
94756
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
94745
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
94757
94746
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
94758
94747
  var enumRef = $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().types2class__sci_List__Z__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, $n(enumSpec).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass));
94759
94748
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_translator);
94760
- $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (((("!Object.prototype.hasOwnProperty.call(" + enumRef) + ", ") + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0)) + ")"), attrId, err, errArgs)
94749
+ $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (((("!Object.prototype.hasOwnProperty.call(" + enumRef) + ", ") + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0)) + ")"), attr, err, errArgs)
94761
94750
  });
94762
94751
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T = (function(attrId, rep, end) {
94763
94752
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
@@ -94862,9 +94851,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.createSubstreamFixedSize__L
94862
94851
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
94863
94852
  $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)
94864
94853
  });
94865
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
94866
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
94867
- });
94868
94854
  $c_Lio_kaitai_struct_languages_PHPCompiler.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) {
94869
94855
  /*<skip>*/
94870
94856
  });
@@ -95603,11 +95589,11 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.kaitaiType2NativeType__Lio_
95603
95589
  }
95604
95590
  }
95605
95591
  });
95606
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
95592
+ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
95607
95593
  var this$1 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator);
95608
95594
  $p_Lio_kaitai_struct_languages_PHPCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, errArgs)
95609
95595
  });
95610
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
95596
+ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
95611
95597
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
95612
95598
  var enumRef = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator).types2classAbs__sci_List__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name);
95613
95599
  var this$1 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator);
@@ -95677,9 +95663,6 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.userTypeDebugRead__T__Lio_
95677
95663
  $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) {
95678
95664
  $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)
95679
95665
  });
95680
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
95681
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
95682
- });
95683
95666
  $c_Lio_kaitai_struct_languages_PerlCompiler.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) {
95684
95667
  /*<skip>*/
95685
95668
  });
@@ -96315,9 +96298,6 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.userTypeDebugRead__T__Lio_
96315
96298
  $c_Lio_kaitai_struct_languages_RustCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
96316
96299
  $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)
96317
96300
  });
96318
- $c_Lio_kaitai_struct_languages_RustCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
96319
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
96320
- });
96321
96301
  $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) {
96322
96302
  /*<skip>*/
96323
96303
  });
@@ -97643,9 +97623,6 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrParse2$default$7__s_
97643
97623
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.createSubstreamFixedSize__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$BytesLimitType__T__Lio_kaitai_struct_format_RepeatSpec__s_Option__T = (function(id, blt, io, rep, defEndian) {
97644
97624
  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)
97645
97625
  });
97646
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
97647
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
97648
- });
97649
97626
  $c_Lio_kaitai_struct_languages_CSharpCompiler.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) {
97650
97627
  /*<skip>*/
97651
97628
  });
@@ -98393,11 +98370,11 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.localTemporaryName__Lio_
98393
98370
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
98394
98371
  return ("p_" + $m_Lio_kaitai_struct_languages_CSharpCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
98395
98372
  });
98396
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
98373
+ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
98397
98374
  var this$1 = $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_translator);
98398
98375
  $p_Lio_kaitai_struct_languages_CSharpCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, errArgs)
98399
98376
  });
98400
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
98377
+ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
98401
98378
  var this$1 = $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_importList);
98402
98379
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "System");
98403
98380
  var $$x1 = $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, et);
@@ -98525,9 +98502,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.createSubstreamFixedSize__L
98525
98502
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
98526
98503
  $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)
98527
98504
  });
98528
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
98529
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
98530
- });
98531
98505
  $c_Lio_kaitai_struct_languages_LuaCompiler.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) {
98532
98506
  /*<skip>*/
98533
98507
  });
@@ -99145,11 +99119,11 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.allocateIO__Lio_kaitai_stru
99145
99119
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((("local _io = KaitaiStream(stringstream(" + args) + "))"));
99146
99120
  return "_io"
99147
99121
  });
99148
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
99122
+ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
99149
99123
  var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_translator);
99150
99124
  $p_Lio_kaitai_struct_languages_LuaCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("not(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, errArgs)
99151
99125
  });
99152
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
99126
+ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
99153
99127
  var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_translator);
99154
99128
  $p_Lio_kaitai_struct_languages_LuaCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0) + " == nil"), err, errArgs)
99155
99129
  });
@@ -99242,9 +99216,6 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.attrParse2$default$7__s_Opt
99242
99216
  $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) {
99243
99217
  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)
99244
99218
  });
99245
- $c_Lio_kaitai_struct_languages_NimCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
99246
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
99247
- });
99248
99219
  $c_Lio_kaitai_struct_languages_NimCompiler.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) {
99249
99220
  /*<skip>*/
99250
99221
  });
@@ -100140,9 +100111,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrParse2$default$7__s_Op
100140
100111
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
100141
100112
  $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)
100142
100113
  });
100143
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
100144
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
100145
- });
100146
100114
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
100147
100115
  return $m_sci_Nil$()
100148
100116
  });
@@ -100805,11 +100773,11 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.privateMemberName__Lio_kai
100805
100773
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
100806
100774
  return ("_t_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
100807
100775
  });
100808
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
100776
+ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
100809
100777
  var this$1 = $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_translator);
100810
100778
  $p_Lio_kaitai_struct_languages_RubyCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, ("not " + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)), err, errArgs)
100811
100779
  });
100812
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
100780
+ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
100813
100781
  var inverseMap = $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_translator).enumInverseMap__Lio_kaitai_struct_datatype_DataType$EnumType__T(et);
100814
100782
  var this$1 = $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_translator);
100815
100783
  $p_Lio_kaitai_struct_languages_RubyCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (((("not " + inverseMap) + ".key?(") + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0)) + ")"), err, errArgs)
@@ -101395,9 +101363,6 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse2__Lio_kaitai_str
101395
101363
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse2$default$7__s_Option = (function() {
101396
101364
  return $m_s_None$()
101397
101365
  });
101398
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
101399
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
101400
- });
101401
101366
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.normalIO__T = (function() {
101402
101367
  var id = $m_Lio_kaitai_struct_format_IoIdentifier$();
101403
101368
  return $m_Lio_kaitai_struct_languages_JavaCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)
@@ -102433,11 +102398,11 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.ksErrorName__Lio_kaitai_st
102433
102398
  }
102434
102399
  }
102435
102400
  });
102436
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
102401
+ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
102437
102402
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_translator);
102438
102403
  $p_Lio_kaitai_struct_languages_JavaCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (("!(" + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)) + ")"), err, errArgs)
102439
102404
  });
102440
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
102405
+ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
102441
102406
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_translator);
102442
102407
  $p_Lio_kaitai_struct_languages_JavaCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, (this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(valueExpr, 0) + " == null"), err, errArgs)
102443
102408
  });
@@ -102562,9 +102527,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.createSubstreamFixedSize
102562
102527
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
102563
102528
  $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)
102564
102529
  });
102565
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
102566
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
102567
- });
102568
102530
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorFooter__V = (function() {
102569
102531
  this.universalFooter__V()
102570
102532
  });
@@ -103278,11 +103240,11 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.privateMemberName__Lio_k
103278
103240
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
103279
103241
  return ("_t_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
103280
103242
  });
103281
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attrId, attrType, checkExpr, err, errArgs) {
103243
+ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrValidateExpr__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V = (function(attr, checkExpr, err, errArgs) {
103282
103244
  var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_translator);
103283
103245
  $p_Lio_kaitai_struct_languages_PythonCompiler__attrValidate__T__Lio_kaitai_struct_datatype_KSError__sci_List__V(this, ("not " + this$1.translate__Lio_kaitai_struct_exprlang_Ast$expr__I__T(checkExpr, 0)), err, errArgs)
103284
103246
  });
103285
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attrId, et, valueExpr, err, errArgs) {
103247
+ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrValidateInEnum__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_datatype_DataType$EnumType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_ValidationNotInEnumError__sci_List__V = (function(attr, et, valueExpr, err, errArgs) {
103286
103248
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
103287
103249
  var enumRef = $m_Lio_kaitai_struct_languages_PythonCompiler$().types2class__sci_List__Z__T($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name, $n(enumSpec).isExternal__Lio_kaitai_struct_format_ClassSpec__Z($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_typeProvider).Lio_kaitai_struct_ClassTypeProvider__f_nowClass));
103288
103250
  var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_translator);
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-SNAPSHOT20240824.204755.5929d44"
38
+ "version": "0.11.0-SNAPSHOT20240827.132107.4cd8d59"
39
39
  }