kaitai-struct-compiler 0.11.0-SNAPSHOT20240819.174857.793ba60 → 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-SNAPSHOT20240819.174857.793ba60";
3016
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-08-19T17:48:57Z"
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,33 +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$18 = $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
- return ("" + 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)) + ","))
92333
92309
  } else {
92334
92310
  throw new $c_s_MatchError(x0$2)
92335
92311
  }
92336
- })))));
92337
- var setEntriesStr = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$18, "", ", ", "");
92338
- $n(this.Lio_kaitai_struct_languages_CppCompiler__f_outSrc).puts__T__V((((((("const std::set<std::underlying_type<" + enumClassAbs) + ">::type> ") + valuesSetAbsRef) + "{") + setEntriesStr) + "};"))
92339
- }
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("}")
92340
92340
  });
92341
92341
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.classToString__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(toStringExpr) {
92342
92342
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
@@ -92482,23 +92482,19 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.ksErrorName__Lio_kaitai_str
92482
92482
  }
92483
92483
  }
92484
92484
  });
92485
- $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) {
92486
92486
  var this$1 = $n(this.Lio_kaitai_struct_languages_CppCompiler__f_translator);
92487
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)
92488
92488
  });
92489
- $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) {
92490
- if ((!$n($n(this.Lio_kaitai_struct_languages_components_LanguageCompiler__f_config).Lio_kaitai_struct_RuntimeConfig__f_cppConfig).Lio_kaitai_struct_CppRuntimeConfig__f_useListInitializers)) {
92491
- 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)")
92492
- };
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) {
92493
92490
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
92494
92491
  var $$x1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
92495
92492
  var this$1 = $n($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name);
92496
92493
  var inClassRef = $n($$x1).types2class__sci_List__T($as_sci_List($f_sc_StrictOptimizedIterableOps__dropRight__I__O(this$1, 1)));
92497
92494
  var className = $as_T($n($n(enumSpec).Lio_kaitai_struct_format_EnumSpec__f_name).last__O());
92498
92495
  var enumNameStr = $m_Lio_kaitai_struct_languages_CppCompiler$().type2class__T__T(className);
92499
- var valuesSetRef = ((inClassRef + "::_values_") + enumNameStr);
92500
92496
  var this$2 = $n(this.Lio_kaitai_struct_languages_CppCompiler__f_translator);
92501
- $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)
92502
92498
  });
92503
92499
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.translator__Lio_kaitai_struct_translators_AbstractTranslator = (function() {
92504
92500
  return this.Lio_kaitai_struct_languages_CppCompiler__f_translator
@@ -93109,9 +93105,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugArrInit__Lio_kaitai
93109
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) {
93110
93106
  /*<skip>*/
93111
93107
  });
93112
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
93113
- return false
93114
- });
93115
93108
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
93116
93109
  return $m_sci_Nil$()
93117
93110
  });
@@ -93805,11 +93798,11 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.publicMemberName__Lio_kaitai
93805
93798
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
93806
93799
  return ("_f_" + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
93807
93800
  });
93808
- $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) {
93809
93802
  var this$1 = $n(this.Lio_kaitai_struct_languages_GoCompiler__f_translator);
93810
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)
93811
93804
  });
93812
- $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) {
93813
93806
  var this$1 = $n(this.Lio_kaitai_struct_languages_GoCompiler__f_translator);
93814
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)
93815
93808
  });
@@ -93850,7 +93843,7 @@ function $p_Lio_kaitai_struct_languages_JavaScriptCompiler__switchCmpExpr__Lio_k
93850
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);
93851
93844
  return $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T($thiz, e)
93852
93845
  }
93853
- 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) {
93854
93847
  var this$3 = $n(errArgs);
93855
93848
  var f = ((v$2) => {
93856
93849
  var v = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2);
@@ -93878,8 +93871,9 @@ function $p_Lio_kaitai_struct_languages_JavaScriptCompiler__attrValidate__T__Lio
93878
93871
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((("if (" + failCondExpr) + ") {"));
93879
93872
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).inc__V();
93880
93873
  var errObj = (((("new " + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().ksErrorName__Lio_kaitai_struct_datatype_KSError__T(err)) + "(") + errArgsStr) + ")");
93881
- if ($f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z($thiz, attrId)) {
93882
- 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);
93883
93877
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((("var _err = " + errObj) + ";"));
93884
93878
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V((debugName + ".validationError = _err;"));
93885
93879
  $n($thiz.Lio_kaitai_struct_languages_JavaScriptCompiler__f_out).puts__T__V("throw _err;")
@@ -93928,9 +93922,6 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.createSubstreamFixed
93928
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) {
93929
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)
93930
93924
  });
93931
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
93932
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
93933
- });
93934
93925
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
93935
93926
  return $m_sci_Nil$()
93936
93927
  });
@@ -94747,15 +94738,15 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.privateMemberName__L
94747
94738
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
94748
94739
  return ("_t_" + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
94749
94740
  });
94750
- $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) {
94751
94742
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_translator);
94752
- $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)
94753
94744
  });
94754
- $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) {
94755
94746
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
94756
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));
94757
94748
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaScriptCompiler__f_translator);
94758
- $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)
94759
94750
  });
94760
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) {
94761
94752
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
@@ -94860,9 +94851,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.createSubstreamFixedSize__L
94860
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) {
94861
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)
94862
94853
  });
94863
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
94864
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
94865
- });
94866
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) {
94867
94855
  /*<skip>*/
94868
94856
  });
@@ -95507,22 +95495,24 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.enumDeclaration__sci_List__
95507
95495
  })));
95508
95496
  var this$11 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out);
95509
95497
  $n(this$11.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
95510
- var this$13 = $n($as_sc_IterableOnceOps($n(enumColl).map__F1__O(new $c_sjsr_AnonFunction1(((x0$2$2) => {
95498
+ var this$14 = $n($as_sc_IterableOnceOps($n(enumColl).map__F1__O(new $c_sjsr_AnonFunction1(((x0$2$2) => {
95511
95499
  var x0$2 = $as_T2(x0$2$2);
95512
95500
  if ((x0$2 !== null)) {
95513
95501
  var this$12 = $n(x0$2);
95514
95502
  var t$1 = $uJ(this$12.T2__f__1);
95515
95503
  var lo$1 = t$1.RTLong__f_lo;
95516
95504
  var hi$1 = t$1.RTLong__f_hi;
95517
- return (new $c_RTLong(lo$1, hi$1) + " => true")
95505
+ var $$x4 = this.Lio_kaitai_struct_languages_PHPCompiler__f_translator;
95506
+ var this$13 = $m_s_math_BigInt$();
95507
+ return ($n($$x4).doIntLiteral__s_math_BigInt__T(this$13.apply__J__s_math_BigInt(new $c_RTLong(lo$1, hi$1))) + " => true")
95518
95508
  } else {
95519
95509
  throw new $c_s_MatchError(x0$2)
95520
95510
  }
95521
95511
  })))));
95522
- var arrayEntriesStr = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$13, "", ", ", "");
95512
+ var arrayEntriesStr = $f_sc_IterableOnceOps__mkString__T__T__T__T(this$14, "", ", ", "");
95523
95513
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((("private const _VALUES = [" + arrayEntriesStr) + "];"));
95524
- var this$14 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out);
95525
- $n(this$14.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
95514
+ var this$15 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out);
95515
+ $n(this$15.Lio_kaitai_struct_StringLanguageOutputWriter__f_sb).append__T__scm_StringBuilder("\n");
95526
95516
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V("public static function isDefined(int $v): bool {");
95527
95517
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).inc__V();
95528
95518
  $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V("return isset(self::_VALUES[$v]);");
@@ -95599,11 +95589,11 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.kaitaiType2NativeType__Lio_
95599
95589
  }
95600
95590
  }
95601
95591
  });
95602
- $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) {
95603
95593
  var this$1 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator);
95604
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)
95605
95595
  });
95606
- $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) {
95607
95597
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
95608
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);
95609
95599
  var this$1 = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator);
@@ -95673,9 +95663,6 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.userTypeDebugRead__T__Lio_
95673
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) {
95674
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)
95675
95665
  });
95676
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
95677
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
95678
- });
95679
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) {
95680
95667
  /*<skip>*/
95681
95668
  });
@@ -96311,9 +96298,6 @@ $c_Lio_kaitai_struct_languages_RustCompiler.prototype.userTypeDebugRead__T__Lio_
96311
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) {
96312
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)
96313
96300
  });
96314
- $c_Lio_kaitai_struct_languages_RustCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
96315
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
96316
- });
96317
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) {
96318
96302
  /*<skip>*/
96319
96303
  });
@@ -97639,9 +97623,6 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrParse2$default$7__s_
97639
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) {
97640
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)
97641
97625
  });
97642
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
97643
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
97644
- });
97645
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) {
97646
97627
  /*<skip>*/
97647
97628
  });
@@ -98389,11 +98370,11 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.localTemporaryName__Lio_
98389
98370
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
98390
98371
  return ("p_" + $m_Lio_kaitai_struct_languages_CSharpCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
98391
98372
  });
98392
- $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) {
98393
98374
  var this$1 = $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_translator);
98394
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)
98395
98376
  });
98396
- $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) {
98397
98378
  var this$1 = $n(this.Lio_kaitai_struct_languages_CSharpCompiler__f_importList);
98398
98379
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.Lio_kaitai_struct_ImportList__f_list, "System");
98399
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);
@@ -98521,9 +98502,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.createSubstreamFixedSize__L
98521
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) {
98522
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)
98523
98504
  });
98524
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
98525
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
98526
- });
98527
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) {
98528
98506
  /*<skip>*/
98529
98507
  });
@@ -99141,11 +99119,11 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.allocateIO__Lio_kaitai_stru
99141
99119
  $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_out).puts__T__V((("local _io = KaitaiStream(stringstream(" + args) + "))"));
99142
99120
  return "_io"
99143
99121
  });
99144
- $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) {
99145
99123
  var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_translator);
99146
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)
99147
99125
  });
99148
- $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) {
99149
99127
  var this$1 = $n(this.Lio_kaitai_struct_languages_LuaCompiler__f_translator);
99150
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)
99151
99129
  });
@@ -99238,9 +99216,6 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.attrParse2$default$7__s_Opt
99238
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) {
99239
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)
99240
99218
  });
99241
- $c_Lio_kaitai_struct_languages_NimCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
99242
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
99243
- });
99244
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) {
99245
99220
  /*<skip>*/
99246
99221
  });
@@ -100136,9 +100111,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrParse2$default$7__s_Op
100136
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) {
100137
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)
100138
100113
  });
100139
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
100140
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
100141
- });
100142
100114
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
100143
100115
  return $m_sci_Nil$()
100144
100116
  });
@@ -100801,11 +100773,11 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.privateMemberName__Lio_kai
100801
100773
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
100802
100774
  return ("_t_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
100803
100775
  });
100804
- $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) {
100805
100777
  var this$1 = $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_translator);
100806
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)
100807
100779
  });
100808
- $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) {
100809
100781
  var inverseMap = $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_translator).enumInverseMap__Lio_kaitai_struct_datatype_DataType$EnumType__T(et);
100810
100782
  var this$1 = $n(this.Lio_kaitai_struct_languages_RubyCompiler__f_translator);
100811
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)
@@ -101391,9 +101363,6 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse2__Lio_kaitai_str
101391
101363
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrParse2$default$7__s_Option = (function() {
101392
101364
  return $m_s_None$()
101393
101365
  });
101394
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
101395
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
101396
- });
101397
101366
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.normalIO__T = (function() {
101398
101367
  var id = $m_Lio_kaitai_struct_format_IoIdentifier$();
101399
101368
  return $m_Lio_kaitai_struct_languages_JavaCompiler$().privateMemberName__Lio_kaitai_struct_format_Identifier__T(id)
@@ -102429,11 +102398,11 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.ksErrorName__Lio_kaitai_st
102429
102398
  }
102430
102399
  }
102431
102400
  });
102432
- $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) {
102433
102402
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_translator);
102434
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)
102435
102404
  });
102436
- $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) {
102437
102406
  var this$1 = $n(this.Lio_kaitai_struct_languages_JavaCompiler__f_translator);
102438
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)
102439
102408
  });
@@ -102558,9 +102527,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.createSubstreamFixedSize
102558
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) {
102559
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)
102560
102529
  });
102561
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z = (function(attrId) {
102562
- return $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__attrDebugNeeded__Lio_kaitai_struct_format_Identifier__Z(this, attrId)
102563
- });
102564
102530
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorFooter__V = (function() {
102565
102531
  this.universalFooter__V()
102566
102532
  });
@@ -103274,11 +103240,11 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.privateMemberName__Lio_k
103274
103240
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
103275
103241
  return ("_t_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
103276
103242
  });
103277
- $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) {
103278
103244
  var this$1 = $n(this.Lio_kaitai_struct_languages_PythonCompiler__f_translator);
103279
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)
103280
103246
  });
103281
- $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) {
103282
103248
  var enumSpec = $as_Lio_kaitai_struct_format_EnumSpec($n($n(et).Lio_kaitai_struct_datatype_DataType$EnumType__f_enumSpec).get__O());
103283
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));
103284
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-SNAPSHOT20240819.174857.793ba60"
38
+ "version": "0.11.0-SNAPSHOT20240827.132107.4cd8d59"
39
39
  }