kaitai-struct-compiler 0.10.0-SNAPSHOT20220505.181132.b0125311 → 0.10.0-SNAPSHOT20220702.153738.54691da3

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.
@@ -1864,7 +1864,7 @@ function $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralAsciiChar__C
1864
1864
  } else {
1865
1865
  var x = $m_s_None$();
1866
1866
  if ((x === x1)) {
1867
- return (((code >= 32) && (code < 128)) ? $as_T($g.String.fromCharCode(code)) : $thiz.strLiteralGenericCC__C__T(code))
1867
+ return (((code >= 32) && (code < 127)) ? $as_T($g.String.fromCharCode(code)) : $thiz.strLiteralGenericCC__C__T(code))
1868
1868
  } else {
1869
1869
  throw new $c_s_MatchError().init___O(x1)
1870
1870
  }
@@ -4430,9 +4430,9 @@ function $h_Lio_kaitai_struct_Version$() {
4430
4430
  $h_Lio_kaitai_struct_Version$.prototype = $c_Lio_kaitai_struct_Version$.prototype;
4431
4431
  $c_Lio_kaitai_struct_Version$.prototype.init___ = (function() {
4432
4432
  this.name$1 = "kaitai-struct-compiler-js";
4433
- this.version$1 = "0.10-SNAPSHOT20220505.181132.b0125311";
4434
- this.gitCommit$1 = "b0125311";
4435
- this.gitTime$1 = "2022-05-05T18:11:32+00:00";
4433
+ this.version$1 = "0.10-SNAPSHOT20220702.153738.54691da3";
4434
+ this.gitCommit$1 = "54691da3";
4435
+ this.gitTime$1 = "2022-07-02T15:37:38+00:00";
4436
4436
  return this
4437
4437
  });
4438
4438
  var $d_Lio_kaitai_struct_Version$ = new $TypeData().initClass({
@@ -7883,9 +7883,28 @@ $c_Lio_kaitai_struct_format_JavaScriptKSYParser$.prototype.yamlToSpecs__O__Lio_k
7883
7883
  var firstSpec = this$1.fromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_ClassSpec(yamlScala, fileName, $m_sci_Nil$(), $m_Lio_kaitai_struct_format_MetaSpec$().OPAQUE$1);
7884
7884
  var specs = new $c_Lio_kaitai_struct_format_JavaScriptClassSpecs().init___Lio_kaitai_struct_JavaScriptImporter__Lio_kaitai_struct_format_ClassSpec(importer, firstSpec);
7885
7885
  return $m_Lio_kaitai_struct_Main$().importAndPrecompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__s_concurrent_Future(specs, config).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, specs$1) {
7886
- return (function(x$1$2) {
7887
- $as_sc_Iterable(x$1$2);
7888
- return specs$1
7886
+ return (function(problems$2) {
7887
+ var problems = $as_sc_Iterable(problems$2);
7888
+ var x1 = problems.find__F1__s_Option(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this$1) {
7889
+ return (function(p$2) {
7890
+ var p = $as_Lio_kaitai_struct_problems_CompilationProblem(p$2);
7891
+ var x = p.severity__Lio_kaitai_struct_problems_ProblemSeverity();
7892
+ var x$2 = $m_Lio_kaitai_struct_problems_ProblemSeverity$Warning$();
7893
+ return (!((x !== null) && (x === x$2)))
7894
+ })
7895
+ })($this)));
7896
+ if ((x1 instanceof $c_s_Some)) {
7897
+ var x2 = $as_s_Some(x1);
7898
+ var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(x2.value$2);
7899
+ throw new $c_Lio_kaitai_struct_problems_CompilationProblemException().init___Lio_kaitai_struct_problems_CompilationProblem(problem)
7900
+ } else {
7901
+ var x$1 = $m_s_None$();
7902
+ if ((x$1 === x1)) {
7903
+ return specs$1
7904
+ } else {
7905
+ throw new $c_s_MatchError().init___O(x1)
7906
+ }
7907
+ }
7889
7908
  })
7890
7909
  })(this, specs)), $m_s_concurrent_ExecutionContext$Implicits$().global__s_concurrent_ExecutionContext())
7891
7910
  });
@@ -9309,20 +9328,19 @@ function $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCases__Lio
9309
9328
  }
9310
9329
  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) {
9311
9330
  var jsx$4 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
9312
- var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(attrId.humanReadable__T())), op, expected);
9331
+ var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId), op, expected);
9313
9332
  $m_sci_List$();
9314
- var jsx$2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(attrId.humanReadable__T()));
9315
- var this$1 = $m_Lio_kaitai_struct_format_IoIdentifier$();
9316
- var jsx$1 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(this$1.name$2));
9317
- var this$2 = attr.path__sci_List();
9318
- var array = [expected, jsx$2, jsx$1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$2, "/", "/", ""))];
9333
+ var jsx$2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
9334
+ var jsx$1 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
9335
+ var this$1 = attr.path__sci_List();
9336
+ var array = [expected, jsx$2, jsx$1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "/", "/", ""))];
9319
9337
  var i = (((-1) + $uI(array.length)) | 0);
9320
9338
  var result = $m_sci_Nil$();
9321
9339
  while ((i >= 0)) {
9322
- var this$6 = result;
9340
+ var this$5 = result;
9323
9341
  var index = i;
9324
9342
  var x = array[index];
9325
- result = new $c_sci_$colon$colon().init___O__sci_List(x, this$6);
9343
+ result = new $c_sci_$colon$colon().init___O__sci_List(x, this$5);
9326
9344
  i = (((-1) + i) | 0)
9327
9345
  };
9328
9346
  $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, jsx$4, jsx$3, err, result)
@@ -9363,7 +9381,7 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
9363
9381
  var f = (function($this, attrId$1) {
9364
9382
  return (function(expected$2$2) {
9365
9383
  var expected$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr(expected$2$2);
9366
- return new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(attrId$1.humanReadable__T())), $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$(), expected$2)
9384
+ return new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId$1), $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$(), expected$2)
9367
9385
  })
9368
9386
  })($thiz, attrId);
9369
9387
  var this$1 = $m_sci_List$();
@@ -9401,18 +9419,17 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
9401
9419
  var jsx$6 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
9402
9420
  var jsx$5 = new $c_Lio_kaitai_struct_datatype_ValidationNotAnyOfError().init___Lio_kaitai_struct_datatype_DataType($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr));
9403
9421
  $m_sci_List$();
9404
- var jsx$4 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(attrId.humanReadable__T()));
9405
- var this$4 = $m_Lio_kaitai_struct_format_IoIdentifier$();
9406
- var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(this$4.name$2));
9407
- var this$5 = attr.path__sci_List();
9408
- var array = [jsx$4, jsx$3, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$5, "/", "/", ""))];
9422
+ var jsx$4 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
9423
+ var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
9424
+ var this$4 = attr.path__sci_List();
9425
+ var array = [jsx$4, jsx$3, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$4, "/", "/", ""))];
9409
9426
  var i = (((-1) + $uI(array.length)) | 0);
9410
9427
  var result = $m_sci_Nil$();
9411
9428
  while ((i >= 0)) {
9412
- var this$9 = result;
9429
+ var this$8 = result;
9413
9430
  var index = i;
9414
9431
  var x = array[index];
9415
- result = new $c_sci_$colon$colon().init___O__sci_List(x, this$9);
9432
+ result = new $c_sci_$colon$colon().init___O__sci_List(x, this$8);
9416
9433
  i = (((-1) + i) | 0)
9417
9434
  };
9418
9435
  $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, jsx$6, bigOrExpr, jsx$5, result)
@@ -9421,22 +9438,21 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
9421
9438
  var expr = x7.checkExpr$1;
9422
9439
  $thiz.blockScopeHeader__V();
9423
9440
  $thiz.typeProvider$1.$$undcurrentIteratorType$1 = new $c_s_Some().init___O($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr));
9424
- $thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1))), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(attrId.humanReadable__T()))));
9441
+ $thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1))), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId)));
9425
9442
  var jsx$10 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
9426
9443
  var jsx$9 = new $c_Lio_kaitai_struct_datatype_ValidationExprError().init___Lio_kaitai_struct_datatype_DataType($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr));
9427
9444
  $m_sci_List$();
9428
- var jsx$8 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(attrId.humanReadable__T()));
9429
- var this$10 = $m_Lio_kaitai_struct_format_IoIdentifier$();
9430
- var jsx$7 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T(this$10.name$2));
9431
- var this$11 = attr.path__sci_List();
9432
- var array$1 = [jsx$8, jsx$7, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$11, "/", "/", ""))];
9445
+ var jsx$8 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
9446
+ var jsx$7 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
9447
+ var this$9 = attr.path__sci_List();
9448
+ var array$1 = [jsx$8, jsx$7, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$9, "/", "/", ""))];
9433
9449
  var i$1 = (((-1) + $uI(array$1.length)) | 0);
9434
9450
  var result$1 = $m_sci_Nil$();
9435
9451
  while ((i$1 >= 0)) {
9436
- var this$15 = result$1;
9452
+ var this$13 = result$1;
9437
9453
  var index$1 = i$1;
9438
9454
  var x$1 = array$1[index$1];
9439
- result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$15);
9455
+ result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$13);
9440
9456
  i$1 = (((-1) + i$1) | 0)
9441
9457
  };
9442
9458
  $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, jsx$10, expr, jsx$9, result$1);
@@ -11238,10 +11254,16 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11238
11254
  return this$12.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(this$12.nowClass$1, attrName).asNonOwning__Lio_kaitai_struct_datatype_DataType()
11239
11255
  }
11240
11256
  };
11257
+ if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
11258
+ var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
11259
+ var id = x14.id$1;
11260
+ var this$13 = this.provider$1;
11261
+ return this$13.determineType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType(this$13.nowClass$1, id)
11262
+ };
11241
11263
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
11242
- var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
11243
- var op = x14.op$1;
11244
- var v$2 = x14.operand$1;
11264
+ var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
11265
+ var op = x15.op$1;
11266
+ var v$2 = x15.operand$1;
11245
11267
  if ((op !== null)) {
11246
11268
  if ((v$2 !== null)) {
11247
11269
  var t$3 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(v$2);
@@ -11296,10 +11318,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11296
11318
  }
11297
11319
  };
11298
11320
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
11299
- var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
11300
- var left = x15.left$1;
11301
- var op$2 = x15.ops$1;
11302
- var right = x15.right$1;
11321
+ var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
11322
+ var left = x16.left$1;
11323
+ var op$2 = x16.ops$1;
11324
+ var right = x16.right$1;
11303
11325
  if ((left !== null)) {
11304
11326
  if ((op$2 !== null)) {
11305
11327
  if ((right !== null)) {
@@ -11312,10 +11334,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11312
11334
  }
11313
11335
  };
11314
11336
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
11315
- var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
11316
- var left$2 = x16.left$1;
11317
- var op$3 = x16.op$1;
11318
- var right$2 = x16.right$1;
11337
+ var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
11338
+ var left$2 = x17.left$1;
11339
+ var op$3 = x17.op$1;
11340
+ var right$2 = x17.right$1;
11319
11341
  if ((left$2 !== null)) {
11320
11342
  if ((op$3 !== null)) {
11321
11343
  if ((right$2 !== null)) {
@@ -11347,17 +11369,17 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11347
11369
  }
11348
11370
  };
11349
11371
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
11350
- var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
11351
- var op$4 = x17.op$1;
11352
- var values = x17.values$1;
11372
+ var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
11373
+ var op$4 = x18.op$1;
11374
+ var values = x18.values$1;
11353
11375
  if ((op$4 !== null)) {
11354
11376
  if ((values !== null)) {
11355
- values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, x37) {
11377
+ values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, x38) {
11356
11378
  return (function(v$3$2) {
11357
11379
  var v$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$3$2);
11358
11380
  var t$1 = $this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(v$3);
11359
11381
  if ((!(t$1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType))) {
11360
- throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((((("unable to use " + t$1) + " argument in ") + x37) + " boolean expression"))
11382
+ throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((((("unable to use " + t$1) + " argument in ") + x38) + " boolean expression"))
11361
11383
  }
11362
11384
  })
11363
11385
  })(this, op$4)));
@@ -11366,10 +11388,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11366
11388
  }
11367
11389
  };
11368
11390
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
11369
- var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
11370
- var condition = x18.condition$1;
11371
- var ifTrue = x18.ifTrue$1;
11372
- var ifFalse = x18.ifFalse$1;
11391
+ var x19 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
11392
+ var condition = x19.condition$1;
11393
+ var ifTrue = x19.ifTrue$1;
11394
+ var ifFalse = x19.ifFalse$1;
11373
11395
  if ((condition !== null)) {
11374
11396
  if ((ifTrue !== null)) {
11375
11397
  if ((ifFalse !== null)) {
@@ -11386,9 +11408,9 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11386
11408
  }
11387
11409
  };
11388
11410
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
11389
- var x19 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
11390
- var container = x19.value$1;
11391
- var idx = x19.idx$1;
11411
+ var x20 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
11412
+ var container = x20.value$1;
11413
+ var idx = x20.idx$1;
11392
11414
  if ((container !== null)) {
11393
11415
  if ((idx !== null)) {
11394
11416
  var x1$5 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(container);
@@ -11429,9 +11451,9 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11429
11451
  }
11430
11452
  };
11431
11453
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
11432
- var x20 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
11433
- var value = x20.value$1;
11434
- var attr = x20.attr$1;
11454
+ var x21 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
11455
+ var value = x21.value$1;
11456
+ var attr = x21.attr$1;
11435
11457
  if ((value !== null)) {
11436
11458
  if ((attr !== null)) {
11437
11459
  return this.detectAttributeType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$identifier__Lio_kaitai_struct_datatype_DataType(value, attr).asNonOwning__Lio_kaitai_struct_datatype_DataType()
@@ -11439,20 +11461,20 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
11439
11461
  }
11440
11462
  };
11441
11463
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
11442
- var x46 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
11443
- return this.detectCallType__Lio_kaitai_struct_exprlang_Ast$expr$Call__Lio_kaitai_struct_datatype_DataType(x46).asNonOwning__Lio_kaitai_struct_datatype_DataType()
11464
+ var x47 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
11465
+ return this.detectCallType__Lio_kaitai_struct_exprlang_Ast$expr$Call__Lio_kaitai_struct_datatype_DataType(x47).asNonOwning__Lio_kaitai_struct_datatype_DataType()
11444
11466
  };
11445
11467
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
11446
- var x21 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
11447
- var values$2 = x21.elts$1;
11468
+ var x22 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
11469
+ var values$2 = x22.elts$1;
11448
11470
  if ((values$2 !== null)) {
11449
11471
  var x1$8 = this.detectArrayType__sc_Seq__Lio_kaitai_struct_datatype_DataType(values$2);
11450
11472
  return ((x1$8 instanceof $c_Lio_kaitai_struct_datatype_DataType$Int1Type) ? $m_Lio_kaitai_struct_datatype_DataType$CalcBytesType$() : new $c_Lio_kaitai_struct_datatype_DataType$ArrayTypeInStream().init___Lio_kaitai_struct_datatype_DataType(x1$8))
11451
11473
  }
11452
11474
  };
11453
11475
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
11454
- var x22 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
11455
- var typeName = x22.typeName$1;
11476
+ var x23 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
11477
+ var typeName = x23.typeName$1;
11456
11478
  return this.detectCastType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_datatype_DataType(typeName)
11457
11479
  };
11458
11480
  if (((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType) || (v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType))) {
@@ -20479,6 +20501,49 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.determineType__Lio_kaitai_struc
20479
20501
  return (($m_Lio_kaitai_struct_format_Identifier$().IO$1 === attrName) ? $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$() : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === attrName) ? $as_Lio_kaitai_struct_datatype_DataType(this.$$undcurrentIteratorType$1.get__O()) : (($m_Lio_kaitai_struct_format_Identifier$().SWITCH$undON$1 === attrName) ? $as_Lio_kaitai_struct_datatype_DataType(this.$$undcurrentSwitchType$1.get__O()) : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === attrName) ? $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$() : (($m_Lio_kaitai_struct_format_Identifier$().SIZEOF$1 === attrName) ? $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$() : this.resolveMember__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_MemberSpec(inClass, attrName).dataTypeComposite__Lio_kaitai_struct_datatype_DataType())))))
20480
20502
  }
20481
20503
  });
20504
+ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.determineType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType = (function(inClass, attrId) {
20505
+ var nonLocalReturnKey1 = new $c_O().init___();
20506
+ try {
20507
+ if ((attrId instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
20508
+ var this$1 = inClass.seq$1;
20509
+ var these = this$1;
20510
+ while ((!these.isEmpty__Z())) {
20511
+ var arg1 = these.head__O();
20512
+ var el = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
20513
+ var x = el.id$1;
20514
+ if (((x === null) ? (attrId === null) : x.equals__O__Z(attrId))) {
20515
+ throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey1, $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(el))
20516
+ };
20517
+ var this$2 = these;
20518
+ these = this$2.tail__sci_List()
20519
+ }
20520
+ } else if ((attrId instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
20521
+ var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(attrId);
20522
+ var name = x2.name$2;
20523
+ return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name)
20524
+ } else if ((attrId instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
20525
+ var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(attrId);
20526
+ var name$2 = x3.name$2;
20527
+ return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name$2)
20528
+ } else if ((attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
20529
+ var x4 = $as_Lio_kaitai_struct_format_SpecialIdentifier(attrId);
20530
+ var name$3 = x4.name$2;
20531
+ return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name$3)
20532
+ };
20533
+ throw new $c_Lio_kaitai_struct_precompile_FieldNotFoundError().init___T__Lio_kaitai_struct_format_ClassSpec(attrId.humanReadable__T(), inClass)
20534
+ } catch (e) {
20535
+ if ((e instanceof $c_sr_NonLocalReturnControl)) {
20536
+ var ex = $as_sr_NonLocalReturnControl(e);
20537
+ if ((ex.key$2 === nonLocalReturnKey1)) {
20538
+ return $as_Lio_kaitai_struct_datatype_DataType(ex.value__O())
20539
+ } else {
20540
+ throw ex
20541
+ }
20542
+ } else {
20543
+ throw e
20544
+ }
20545
+ }
20546
+ });
20482
20547
  $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_datatype_DataType = (function(typeName) {
20483
20548
  return this.resolveClassSpec__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_format_ClassSpec(typeName).toDataType__Lio_kaitai_struct_datatype_DataType()
20484
20549
  });
@@ -20503,7 +20568,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveEnum__Lio_kaitai_struct_
20503
20568
  return this.resolveEnum__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_EnumSpec(this.resolveClassSpec__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_format_ClassSpec(inType), enumName)
20504
20569
  });
20505
20570
  $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_format_ClassSpec__T__Z = (function(inClass, attrName) {
20506
- var nonLocalReturnKey2 = new $c_O().init___();
20571
+ var nonLocalReturnKey3 = new $c_O().init___();
20507
20572
  try {
20508
20573
  var this$1 = inClass.seq$1;
20509
20574
  var these = this$1;
@@ -20513,7 +20578,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
20513
20578
  var x = el.id$1;
20514
20579
  var x$2 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
20515
20580
  if (((x !== null) && x.equals__O__Z(x$2))) {
20516
- throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey2, false)
20581
+ throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey3, false)
20517
20582
  };
20518
20583
  var this$2 = these;
20519
20584
  these = this$2.tail__sci_List()
@@ -20526,7 +20591,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
20526
20591
  var x$1 = el$3.id$1;
20527
20592
  var x$2$1 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
20528
20593
  if (((x$1 !== null) && x$1.equals__O__Z(x$2$1))) {
20529
- throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey2, false)
20594
+ throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey3, false)
20530
20595
  };
20531
20596
  var this$4 = these$1;
20532
20597
  these$1 = this$4.tail__sci_List()
@@ -20544,7 +20609,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
20544
20609
  } catch (e) {
20545
20610
  if ((e instanceof $c_sr_NonLocalReturnControl)) {
20546
20611
  var ex = $as_sr_NonLocalReturnControl(e);
20547
- if ((ex.key$2 === nonLocalReturnKey2)) {
20612
+ if ((ex.key$2 === nonLocalReturnKey3)) {
20548
20613
  return ex.value$mcZ$sp__Z()
20549
20614
  } else {
20550
20615
  throw ex
@@ -20607,7 +20672,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveClassSpec__Lio_kaitai_st
20607
20672
  }
20608
20673
  });
20609
20674
  $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_MemberSpec = (function(inClass, attrName) {
20610
- var nonLocalReturnKey1 = new $c_O().init___();
20675
+ var nonLocalReturnKey2 = new $c_O().init___();
20611
20676
  try {
20612
20677
  var this$1 = inClass.seq$1;
20613
20678
  var these = this$1;
@@ -20617,7 +20682,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
20617
20682
  var x = el.id$1;
20618
20683
  var x$2 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
20619
20684
  if (((x !== null) && x.equals__O__Z(x$2))) {
20620
- throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey1, el)
20685
+ throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey2, el)
20621
20686
  };
20622
20687
  var this$2 = these;
20623
20688
  these = this$2.tail__sci_List()
@@ -20630,7 +20695,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
20630
20695
  var x$1 = el$3.id$1;
20631
20696
  var x$2$1 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
20632
20697
  if (((x$1 !== null) && x$1.equals__O__Z(x$2$1))) {
20633
- throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey1, el$3)
20698
+ throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey2, el$3)
20634
20699
  };
20635
20700
  var this$4 = these$1;
20636
20701
  these$1 = this$4.tail__sci_List()
@@ -20665,7 +20730,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
20665
20730
  } catch (e) {
20666
20731
  if ((e instanceof $c_sr_NonLocalReturnControl)) {
20667
20732
  var ex = $as_sr_NonLocalReturnControl(e);
20668
- if ((ex.key$2 === nonLocalReturnKey1)) {
20733
+ if ((ex.key$2 === nonLocalReturnKey2)) {
20669
20734
  return $as_Lio_kaitai_struct_format_MemberSpec(ex.value__O())
20670
20735
  } else {
20671
20736
  throw ex
@@ -23756,7 +23821,7 @@ $c_Lio_kaitai_struct_problems_CompilationProblem.prototype.localizedInType__Lio_
23756
23821
  }
23757
23822
  });
23758
23823
  $c_Lio_kaitai_struct_problems_CompilationProblem.prototype.message__T = (function() {
23759
- return ((((this.coords__Lio_kaitai_struct_problems_ProblemCoords().message__T() + ": ") + this.severity__Lio_kaitai_struct_problems_ProblemSeverity().message__T()) + ": ") + this.text__T())
23824
+ return (((((this.coords__Lio_kaitai_struct_problems_ProblemCoords().message__T() + ":\n\t") + this.severity__Lio_kaitai_struct_problems_ProblemSeverity().message__T()) + ": ") + this.text__T()) + "\n")
23760
23825
  });
23761
23826
  function $as_Lio_kaitai_struct_problems_CompilationProblem(obj) {
23762
23827
  return (((obj instanceof $c_Lio_kaitai_struct_problems_CompilationProblem) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.problems.CompilationProblem"))
@@ -25086,6 +25151,15 @@ function $f_sc_Iterator__foreach__F1__V($thiz, f) {
25086
25151
  f.apply__O__O($thiz.next__O())
25087
25152
  }
25088
25153
  }
25154
+ function $f_sc_Iterator__find__F1__s_Option($thiz, p) {
25155
+ while ($thiz.hasNext__Z()) {
25156
+ var a = $thiz.next__O();
25157
+ if ($uZ(p.apply__O__O(a))) {
25158
+ return new $c_s_Some().init___O(a)
25159
+ }
25160
+ };
25161
+ return $m_s_None$()
25162
+ }
25089
25163
  function $f_sc_Iterator__toStream__sci_Stream($thiz) {
25090
25164
  if ($thiz.hasNext__Z()) {
25091
25165
  var hd = $thiz.next__O();
@@ -27984,85 +28058,40 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.opaquePlaceholder__sci_List__Li
27984
28058
  placeholder.name$1 = typeName;
27985
28059
  return placeholder
27986
28060
  });
27987
- $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupSeqInstIds__sci_List__sci_Map__V = (function(seq, instances) {
27988
- var f = (function($this) {
27989
- return (function(attr$2) {
27990
- var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
27991
- var x1 = attr.id$1;
27992
- if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
27993
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
27994
- var id = x2.name$2;
27995
- var xo = new $c_s_Some().init___O(new $c_T2().init___O__O(id, attr));
27996
- return xo.toList__sci_List()
27997
- } else {
27998
- var xo$1 = $m_s_None$();
27999
- return xo$1.toList__sci_List()
28000
- }
28001
- })
28002
- })(this);
28003
- var this$5 = $m_sci_List$();
28004
- var bf = this$5.ReusableCBFInstance$2;
28005
- if ((bf === $m_sci_List$().ReusableCBFInstance$2)) {
28006
- if ((seq === $m_sci_Nil$())) {
28007
- var jsx$1 = $m_sci_Nil$()
28061
+ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupMemberIds__sci_List__V = (function(attrs) {
28062
+ var attrIds = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
28063
+ var these = attrs;
28064
+ while ((!these.isEmpty__Z())) {
28065
+ var arg1 = these.head__O();
28066
+ var attr = $as_Lio_kaitai_struct_format_MemberSpec(arg1);
28067
+ var x1 = attr.id__Lio_kaitai_struct_format_Identifier();
28068
+ if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
28069
+ var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
28070
+ var name = x2.name$2;
28071
+ var idOpt = new $c_s_Some().init___O(name)
28072
+ } else if ((x1 instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
28073
+ var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(x1);
28074
+ var name$2 = x3.name$2;
28075
+ var idOpt = new $c_s_Some().init___O(name$2)
28008
28076
  } else {
28009
- var rest = seq;
28010
- var found = new $c_sr_BooleanRef().init___Z(false);
28011
- var h = new $c_sr_ObjectRef().init___O(null);
28012
- var t = new $c_sr_ObjectRef().init___O(null);
28013
- while ((rest !== $m_sci_Nil$())) {
28014
- var arg1 = rest.head__O();
28015
- $as_sc_GenTraversableOnce(f(arg1)).seq__sc_TraversableOnce().foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this$1, found$1, h$1, t$1) {
28016
- return (function(b$2) {
28017
- if ((!found$1.elem$1)) {
28018
- h$1.elem$1 = new $c_sci_$colon$colon().init___O__sci_List(b$2, $m_sci_Nil$());
28019
- t$1.elem$1 = $as_sci_$colon$colon(h$1.elem$1);
28020
- found$1.elem$1 = true
28021
- } else {
28022
- var nx = new $c_sci_$colon$colon().init___O__sci_List(b$2, $m_sci_Nil$());
28023
- $as_sci_$colon$colon(t$1.elem$1).tl$5 = nx;
28024
- t$1.elem$1 = nx
28025
- }
28026
- })
28027
- })(seq, found, h, t)));
28028
- var this$9 = rest;
28029
- rest = this$9.tail__sci_List()
28030
- };
28031
- var jsx$1 = ((!found.elem$1) ? $m_sci_Nil$() : $as_sci_$colon$colon(h.elem$1))
28032
- }
28033
- } else {
28034
- $m_sci_List$();
28035
- var b = new $c_scm_ListBuffer().init___();
28036
- var these = seq;
28037
- while ((!these.isEmpty__Z())) {
28038
- var arg1$1 = these.head__O();
28039
- var xs = $as_sc_GenTraversableOnce(f(arg1$1)).seq__sc_TraversableOnce();
28040
- b.$$plus$plus$eq__sc_TraversableOnce__scm_ListBuffer(xs);
28041
- var this$11 = these;
28042
- these = this$11.tail__sci_List()
28077
+ var idOpt = $m_s_None$()
28043
28078
  };
28044
- var jsx$1 = b.toList__sci_List()
28045
- };
28046
- var attrIds = $as_sc_TraversableOnce(jsx$1).toMap__s_Predef$$less$colon$less__sci_Map($m_s_Predef$().singleton$und$less$colon$less$2);
28047
- instances.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2$1, attrIds$1) {
28048
- return (function(x0$1$2) {
28049
- var x0$1 = $as_T2(x0$1$2);
28050
- if ((x0$1 !== null)) {
28051
- var id$1 = $as_Lio_kaitai_struct_format_InstanceIdentifier(x0$1.$$und1__O());
28052
- var instSpec = $as_Lio_kaitai_struct_format_InstanceSpec(x0$1.$$und2__O());
28053
- $m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds$1.get__O__s_Option(id$1.name$2), id$1.name$2, instSpec)
28054
- } else {
28055
- throw new $c_s_MatchError().init___O(x0$1)
28056
- }
28057
- })
28058
- })(this, attrIds)))
28079
+ if ((!idOpt.isEmpty__Z())) {
28080
+ var arg1$1 = idOpt.get__O();
28081
+ var id = $as_T(arg1$1);
28082
+ $m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds.get__O__s_Option(id), id, attr);
28083
+ attrIds.put__O__O__s_Option(id, attr)
28084
+ };
28085
+ var this$1 = these;
28086
+ these = this$1.tail__sci_List()
28087
+ }
28059
28088
  });
28060
28089
  $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V = (function(prevAttrOpt, id, nowAttr) {
28061
28090
  if ((prevAttrOpt instanceof $c_s_Some)) {
28062
28091
  var x2 = $as_s_Some(prevAttrOpt);
28063
- var prevAttr = $as_Lio_kaitai_struct_format_AttrSpec(x2.value$2);
28092
+ var prevAttr = $as_Lio_kaitai_struct_format_MemberSpec(x2.value$2);
28064
28093
  var jsx$1 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28065
- var this$1 = prevAttr.path$1;
28094
+ var this$1 = prevAttr.path__sci_List();
28066
28095
  throw jsx$1.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(((("duplicate attribute ID '" + id) + "', previously defined at /") + $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "/", "")), nowAttr.path__sci_List())
28067
28096
  } else {
28068
28097
  var x = $m_s_None$();
@@ -28149,12 +28178,12 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28149
28178
  };
28150
28179
  var seq = $m_sci_Nil$()
28151
28180
  };
28152
- var x1$3 = srcMap.get__O__s_Option("types");
28181
+ var x1$3 = srcMap.get__O__s_Option("instances");
28153
28182
  if ((x1$3 instanceof $c_s_Some)) {
28154
28183
  var x2$3 = $as_s_Some(x1$3);
28155
28184
  var value$3 = x2$3.value$2;
28156
28185
  $m_sci_List$();
28157
- var array$3 = ["types"];
28186
+ var array$3 = ["instances"];
28158
28187
  var i$3 = (((-1) + $uI(array$3.length)) | 0);
28159
28188
  var result$3 = $m_sci_Nil$();
28160
28189
  while ((i$3 >= 0)) {
@@ -28166,38 +28195,43 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28166
28195
  };
28167
28196
  var jsx$4 = result$3;
28168
28197
  var this$23 = $m_sci_List$();
28169
- var types = this.typesFromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$3, fileName, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$4, this$23.ReusableCBFInstance$2)), meta)
28198
+ var instances = this.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$3, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$4, this$23.ReusableCBFInstance$2)), meta)
28170
28199
  } else {
28171
28200
  var x$5 = $m_s_None$();
28172
28201
  if ((!(x$5 === x1$3))) {
28173
28202
  throw new $c_s_MatchError().init___O(x1$3)
28174
28203
  };
28175
- var types = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28204
+ var instances = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28176
28205
  };
28177
- var x1$4 = srcMap.get__O__s_Option("instances");
28206
+ var this$24 = $m_sci_List$();
28207
+ var jsx$6 = $as_sci_List(params.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(seq, this$24.ReusableCBFInstance$2));
28208
+ var jsx$5 = instances.values__sc_Iterable();
28209
+ var this$25 = $m_sci_List$();
28210
+ this.checkDupMemberIds__sci_List__V($as_sci_List(jsx$6.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$25.ReusableCBFInstance$2)));
28211
+ var x1$4 = srcMap.get__O__s_Option("types");
28178
28212
  if ((x1$4 instanceof $c_s_Some)) {
28179
28213
  var x2$4 = $as_s_Some(x1$4);
28180
28214
  var value$4 = x2$4.value$2;
28181
28215
  $m_sci_List$();
28182
- var array$4 = ["instances"];
28216
+ var array$4 = ["types"];
28183
28217
  var i$4 = (((-1) + $uI(array$4.length)) | 0);
28184
28218
  var result$4 = $m_sci_Nil$();
28185
28219
  while ((i$4 >= 0)) {
28186
- var this$27 = result$4;
28220
+ var this$29 = result$4;
28187
28221
  var index$4 = i$4;
28188
28222
  var x$6 = array$4[index$4];
28189
- result$4 = new $c_sci_$colon$colon().init___O__sci_List(x$6, this$27);
28223
+ result$4 = new $c_sci_$colon$colon().init___O__sci_List(x$6, this$29);
28190
28224
  i$4 = (((-1) + i$4) | 0)
28191
28225
  };
28192
- var jsx$5 = result$4;
28193
- var this$28 = $m_sci_List$();
28194
- var instances = this.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$4, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$28.ReusableCBFInstance$2)), meta)
28226
+ var jsx$7 = result$4;
28227
+ var this$30 = $m_sci_List$();
28228
+ var types = this.typesFromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$4, fileName, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$7, this$30.ReusableCBFInstance$2)), meta)
28195
28229
  } else {
28196
28230
  var x$7 = $m_s_None$();
28197
28231
  if ((!(x$7 === x1$4))) {
28198
28232
  throw new $c_s_MatchError().init___O(x1$4)
28199
28233
  };
28200
- var instances = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28234
+ var types = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28201
28235
  };
28202
28236
  var x1$5 = srcMap.get__O__s_Option("enums");
28203
28237
  if ((x1$5 instanceof $c_s_Some)) {
@@ -28208,15 +28242,15 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28208
28242
  var i$5 = (((-1) + $uI(array$5.length)) | 0);
28209
28243
  var result$5 = $m_sci_Nil$();
28210
28244
  while ((i$5 >= 0)) {
28211
- var this$32 = result$5;
28245
+ var this$34 = result$5;
28212
28246
  var index$5 = i$5;
28213
28247
  var x$8 = array$5[index$5];
28214
- result$5 = new $c_sci_$colon$colon().init___O__sci_List(x$8, this$32);
28248
+ result$5 = new $c_sci_$colon$colon().init___O__sci_List(x$8, this$34);
28215
28249
  i$5 = (((-1) + i$5) | 0)
28216
28250
  };
28217
- var jsx$6 = result$5;
28218
- var this$33 = $m_sci_List$();
28219
- var enums = this.enumsFromYaml__O__sci_List__sci_Map(value$5, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$6, this$33.ReusableCBFInstance$2)))
28251
+ var jsx$8 = result$5;
28252
+ var this$35 = $m_sci_List$();
28253
+ var enums = this.enumsFromYaml__O__sci_List__sci_Map(value$5, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$8, this$35.ReusableCBFInstance$2)))
28220
28254
  } else {
28221
28255
  var x$9 = $m_s_None$();
28222
28256
  if ((!(x$9 === x1$5))) {
@@ -28224,27 +28258,26 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28224
28258
  };
28225
28259
  var enums = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28226
28260
  };
28227
- this.checkDupSeqInstIds__sci_List__sci_Map__V(seq, instances);
28228
28261
  var cs = new $c_Lio_kaitai_struct_format_ClassSpec().init___s_Option__sci_List__Z__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_DocSpec__s_Option__sci_List__sci_List__sci_Map__sci_Map__sci_Map(fileName, path, path.isEmpty__Z(), meta, doc, toStringExpr, params, seq, types, instances, enums);
28229
28262
  if (path.isEmpty__Z()) {
28230
28263
  var x1$6 = explicitMeta.id$1;
28231
28264
  var x$11 = $m_s_None$();
28232
28265
  if ((x$11 === x1$6)) {
28233
- var jsx$8 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28266
+ var jsx$10 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28234
28267
  $m_sci_List$();
28235
28268
  var array$6 = ["meta", "id"];
28236
28269
  var i$6 = (((-1) + $uI(array$6.length)) | 0);
28237
28270
  var result$6 = $m_sci_Nil$();
28238
28271
  while ((i$6 >= 0)) {
28239
- var this$37 = result$6;
28272
+ var this$39 = result$6;
28240
28273
  var index$6 = i$6;
28241
28274
  var x$10 = array$6[index$6];
28242
- result$6 = new $c_sci_$colon$colon().init___O__sci_List(x$10, this$37);
28275
+ result$6 = new $c_sci_$colon$colon().init___O__sci_List(x$10, this$39);
28243
28276
  i$6 = (((-1) + i$6) | 0)
28244
28277
  };
28245
- var jsx$7 = result$6;
28246
- var this$38 = $m_sci_List$();
28247
- throw jsx$8.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException("no `meta/id` encountered in top-level class spec", $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$7, this$38.ReusableCBFInstance$2)))
28278
+ var jsx$9 = result$6;
28279
+ var this$40 = $m_sci_List$();
28280
+ throw jsx$10.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException("no `meta/id` encountered in top-level class spec", $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$9, this$40.ReusableCBFInstance$2)))
28248
28281
  } else if ((x1$6 instanceof $c_s_Some)) {
28249
28282
  var x2$6 = $as_s_Some(x1$6);
28250
28283
  var id = $as_T(x2$6.value$2);
@@ -28253,10 +28286,10 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28253
28286
  var i$7 = (((-1) + $uI(array$7.length)) | 0);
28254
28287
  var result$7 = $m_sci_Nil$();
28255
28288
  while ((i$7 >= 0)) {
28256
- var this$42 = result$7;
28289
+ var this$44 = result$7;
28257
28290
  var index$7 = i$7;
28258
28291
  var x$12 = array$7[index$7];
28259
- result$7 = new $c_sci_$colon$colon().init___O__sci_List(x$12, this$42);
28292
+ result$7 = new $c_sci_$colon$colon().init___O__sci_List(x$12, this$44);
28260
28293
  i$7 = (((-1) + i$7) | 0)
28261
28294
  };
28262
28295
  cs.name$1 = result$7
@@ -28330,29 +28363,11 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.seqFromYaml__O__sci_List__Lio_k
28330
28363
  var jsx$3 = b.result__O()
28331
28364
  };
28332
28365
  var seq = $as_sci_List(jsx$3);
28333
- this.checkDupSeqIds__sci_List__V(seq);
28334
28366
  return seq
28335
28367
  } else {
28336
28368
  throw $m_Lio_kaitai_struct_problems_KSYParseError$().withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(("expected array, found " + src), path)
28337
28369
  }
28338
28370
  });
28339
- $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupSeqIds__sci_List__V = (function(seq) {
28340
- var attrIds = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
28341
- var these = seq;
28342
- while ((!these.isEmpty__Z())) {
28343
- var arg1 = these.head__O();
28344
- var attr = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
28345
- var x1 = attr.id$1;
28346
- if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
28347
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
28348
- var id = x2.name$2;
28349
- $m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds.get__O__s_Option(id), id, attr);
28350
- attrIds.put__O__O__s_Option(id, attr)
28351
- };
28352
- var this$1 = these;
28353
- these = this$1.tail__sci_List()
28354
- }
28355
- });
28356
28371
  $c_Lio_kaitai_struct_format_ClassSpec$.prototype.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map = (function(src, path, metaDef) {
28357
28372
  var srcMap = $m_Lio_kaitai_struct_format_ParseUtils$().asMap__O__sci_List__sci_Map(src, path);
28358
28373
  var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1, metaDef$1) {
@@ -28691,7 +28706,8 @@ $c_Lio_kaitai_struct_format_EnumSpec$.prototype.init___ = (function() {
28691
28706
  });
28692
28707
  $c_Lio_kaitai_struct_format_EnumSpec$.prototype.fromYaml__O__sci_List__Lio_kaitai_struct_format_EnumSpec = (function(src, path) {
28693
28708
  var srcMap = $m_Lio_kaitai_struct_format_ParseUtils$().asMap__O__sci_List__sci_Map(src, path);
28694
- var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1) {
28709
+ var memberNameMap = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
28710
+ var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1, memberNameMap$1) {
28695
28711
  return (function(x0$1$2) {
28696
28712
  var x0$1 = $as_T2(x0$1$2);
28697
28713
  if ((x0$1 !== null)) {
@@ -28715,14 +28731,52 @@ $c_Lio_kaitai_struct_format_EnumSpec$.prototype.fromYaml__O__sci_List__Lio_kaita
28715
28731
  var jsx$1 = result;
28716
28732
  var this$5 = $m_sci_List$();
28717
28733
  var value = jsx$2.fromYaml__O__sci_List__Lio_kaitai_struct_format_EnumValueSpec(desc, $as_sci_List(path$1.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$1, this$5.ReusableCBFInstance$2)));
28734
+ var this$6 = memberNameMap$1.get__O__s_Option(value.name$1);
28735
+ if ((!this$6.isEmpty__Z())) {
28736
+ var arg1 = this$6.get__O();
28737
+ var t$1 = $uJ(arg1);
28738
+ var lo$1 = t$1.lo$2;
28739
+ var hi$1 = t$1.hi$2;
28740
+ var jsx$7 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28741
+ var jsx$6 = value.name$1;
28742
+ $m_sci_List$();
28743
+ var array$1 = [$m_sjsr_RuntimeLong$().scala$scalajs$runtime$RuntimeLong$$toString__I__I__T(lo$1, hi$1)];
28744
+ var i$1 = (((-1) + $uI(array$1.length)) | 0);
28745
+ var result$1 = $m_sci_Nil$();
28746
+ while ((i$1 >= 0)) {
28747
+ var this$10 = result$1;
28748
+ var index$1 = i$1;
28749
+ var x$1 = array$1[index$1];
28750
+ result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$10);
28751
+ i$1 = (((-1) + i$1) | 0)
28752
+ };
28753
+ var jsx$5 = result$1;
28754
+ var this$11 = $m_sci_List$();
28755
+ var jsx$4 = $as_sc_TraversableOnce(path$1.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$11.ReusableCBFInstance$2)).mkString__T__T("/");
28756
+ $m_sci_List$();
28757
+ var array$2 = [$m_sjsr_RuntimeLong$().scala$scalajs$runtime$RuntimeLong$$toString__I__I__T(lo, hi)];
28758
+ var i$2 = (((-1) + $uI(array$2.length)) | 0);
28759
+ var result$2 = $m_sci_Nil$();
28760
+ while ((i$2 >= 0)) {
28761
+ var this$15 = result$2;
28762
+ var index$2 = i$2;
28763
+ var x$2 = array$2[index$2];
28764
+ result$2 = new $c_sci_$colon$colon().init___O__sci_List(x$2, this$15);
28765
+ i$2 = (((-1) + i$2) | 0)
28766
+ };
28767
+ var jsx$3 = result$2;
28768
+ var this$16 = $m_sci_List$();
28769
+ throw jsx$7.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(((("duplicate enum member ID: '" + jsx$6) + "', previously defined at /") + jsx$4), $as_sci_List(path$1.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$3, this$16.ReusableCBFInstance$2)))
28770
+ };
28771
+ memberNameMap$1.put__O__O__s_Option(value.name$1, new $c_sjsr_RuntimeLong().init___I__I(lo, hi));
28718
28772
  return new $c_T2().init___O__O(new $c_sjsr_RuntimeLong().init___I__I(lo, hi), value)
28719
28773
  } else {
28720
28774
  throw new $c_s_MatchError().init___O(x0$1)
28721
28775
  }
28722
28776
  })
28723
- })(this, path));
28777
+ })(this, path, memberNameMap));
28724
28778
  var bf = $m_sci_Map$().ReusableCBF$4;
28725
- return new $c_Lio_kaitai_struct_format_EnumSpec().init___sci_Map($as_sci_Map($f_sc_TraversableLike__map__F1__scg_CanBuildFrom__O(srcMap, f, bf)))
28779
+ return new $c_Lio_kaitai_struct_format_EnumSpec().init___sci_List__sci_Map(path, $as_sci_Map($f_sc_TraversableLike__map__F1__scg_CanBuildFrom__O(srcMap, f, bf)))
28726
28780
  });
28727
28781
  var $d_Lio_kaitai_struct_format_EnumSpec$ = new $TypeData().initClass({
28728
28782
  Lio_kaitai_struct_format_EnumSpec$: 0
@@ -29633,6 +29687,38 @@ $c_Lio_kaitai_struct_languages_CppCompiler$.prototype.combineSwitchType__Lio_kai
29633
29687
  })(this))).values__sc_Iterable());
29634
29688
  return (st.isOwning$2 ? ct1 : ct1.asNonOwning__Lio_kaitai_struct_datatype_DataType())
29635
29689
  });
29690
+ $c_Lio_kaitai_struct_languages_CppCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
29691
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
29692
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
29693
+ var name = x2.name$2;
29694
+ $m_Lio_kaitai_struct_Utils$();
29695
+ return name
29696
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
29697
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
29698
+ var name$2 = x3.name$2;
29699
+ $m_Lio_kaitai_struct_Utils$();
29700
+ return name$2
29701
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
29702
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
29703
+ var idx = x4.idx$2;
29704
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
29705
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
29706
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
29707
+ var name$3 = x5.name$2;
29708
+ $m_Lio_kaitai_struct_Utils$();
29709
+ return name$3
29710
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
29711
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
29712
+ var inner = x6.innerId$2;
29713
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
29714
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
29715
+ var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
29716
+ var inner$2 = x7.innerId$2;
29717
+ return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner$2))
29718
+ } else {
29719
+ throw new $c_s_MatchError().init___O(id)
29720
+ }
29721
+ });
29636
29722
  $c_Lio_kaitai_struct_languages_CppCompiler$.prototype.type2class__T__T = (function(name) {
29637
29723
  return (($m_Lio_kaitai_struct_Utils$(), name) + "_t")
29638
29724
  });
@@ -33830,9 +33916,6 @@ function $h_Lio_kaitai_struct_languages_JavaCompiler$() {
33830
33916
  /*<skip>*/
33831
33917
  }
33832
33918
  $h_Lio_kaitai_struct_languages_JavaCompiler$.prototype = $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype;
33833
- $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.init___ = (function() {
33834
- return this
33835
- });
33836
33919
  $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
33837
33920
  _kaitaiType2JavaTypePrim: while (true) {
33838
33921
  var rc74 = false;
@@ -34016,6 +34099,12 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypePrim__
34016
34099
  throw new $c_s_MatchError().init___O(x1)
34017
34100
  }
34018
34101
  });
34102
+ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.init___ = (function() {
34103
+ return this
34104
+ });
34105
+ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T = (function(attrType, isNullable) {
34106
+ return (isNullable ? this.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType) : this.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType))
34107
+ });
34019
34108
  $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.types2class__sci_List__T = (function(names) {
34020
34109
  var f = (function($this) {
34021
34110
  return (function(x$2) {
@@ -34056,12 +34145,34 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.types2class__sci_List__T
34056
34145
  };
34057
34146
  return $as_sc_TraversableOnce(jsx$1).mkString__T__T(".")
34058
34147
  });
34059
- $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T = (function(attrType, isNullable) {
34060
- return (isNullable ? this.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType) : this.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType))
34061
- });
34062
34148
  $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
34063
34149
  return new $c_Lio_kaitai_struct_languages_JavaCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
34064
34150
  });
34151
+ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
34152
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
34153
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
34154
+ var name = x2.name$2;
34155
+ return name
34156
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
34157
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
34158
+ var name$2 = x3.name$2;
34159
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
34160
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
34161
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
34162
+ var idx = x4.idx$2;
34163
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
34164
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
34165
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
34166
+ var name$3 = x5.name$2;
34167
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
34168
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
34169
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
34170
+ var innerId = x6.innerId$2;
34171
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
34172
+ } else {
34173
+ throw new $c_s_MatchError().init___O(id)
34174
+ }
34175
+ });
34065
34176
  $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
34066
34177
  _kaitaiType2JavaTypeBoxed: while (true) {
34067
34178
  var rc72 = false;
@@ -34286,6 +34397,33 @@ $c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.init___ = (function() {
34286
34397
  $c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
34287
34398
  return new $c_Lio_kaitai_struct_languages_RubyCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
34288
34399
  });
34400
+ $c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
34401
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
34402
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
34403
+ var name = x2.name$2;
34404
+ return name
34405
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
34406
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
34407
+ var name$2 = x3.name$2;
34408
+ $m_Lio_kaitai_struct_Utils$();
34409
+ return name$2
34410
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
34411
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
34412
+ var idx = x4.idx$2;
34413
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
34414
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
34415
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
34416
+ var name$3 = x5.name$2;
34417
+ $m_Lio_kaitai_struct_Utils$();
34418
+ return name$3
34419
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
34420
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
34421
+ var inner = x6.innerId$2;
34422
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
34423
+ } else {
34424
+ throw new $c_s_MatchError().init___O(id)
34425
+ }
34426
+ });
34289
34427
  $c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
34290
34428
  var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
34291
34429
  if ((x === err)) {
@@ -34694,9 +34832,22 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
34694
34832
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$EnumByLabel)) {
34695
34833
  var x3 = $as_Lio_kaitai_struct_exprlang_Ast$expr$EnumByLabel(v);
34696
34834
  var enumType$2 = x3.enumName$1;
34835
+ var label = x3.label$1;
34697
34836
  var inType$2 = x3.inType$1;
34698
- this.provider$2.resolveEnum__Lio_kaitai_struct_exprlang_Ast$typeId__T__Lio_kaitai_struct_format_EnumSpec(inType$2, enumType$2.name$1);
34699
- break matchEnd36
34837
+ var enumSpec = this.provider$2.resolveEnum__Lio_kaitai_struct_exprlang_Ast$typeId__T__Lio_kaitai_struct_format_EnumSpec(inType$2, enumType$2.name$1);
34838
+ if ((!enumSpec.map$1.values__sc_Iterable().exists__F1__Z(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, label$1) {
34839
+ return (function(x$1$2) {
34840
+ var x$1 = $as_Lio_kaitai_struct_format_EnumValueSpec(x$1$2);
34841
+ return (x$1.name$1 === label$1.name$1)
34842
+ })
34843
+ })(this, label))))) {
34844
+ var jsx$2 = label.name$1;
34845
+ var jsx$1 = enumType$2.name$1;
34846
+ var this$1 = enumSpec.path$1;
34847
+ throw new $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError().init___T__T__T(jsx$2, jsx$1, $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "/", ""))
34848
+ } else {
34849
+ break matchEnd36
34850
+ }
34700
34851
  };
34701
34852
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Name)) {
34702
34853
  var x4 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Name(v);
@@ -34751,10 +34902,10 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
34751
34902
  var op$4 = x8.op$1;
34752
34903
  var values = x8.values$1;
34753
34904
  if (((op$4 !== null) && (values !== null))) {
34754
- values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
34905
+ values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2) {
34755
34906
  return (function(v$2$2) {
34756
34907
  var v$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2$2);
34757
- $this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$2)
34908
+ this$2.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$2)
34758
34909
  })
34759
34910
  })(this)));
34760
34911
  break matchEnd36
@@ -34796,10 +34947,10 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
34796
34947
  var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
34797
34948
  var values$2 = x11.elts$1;
34798
34949
  if ((values$2 !== null)) {
34799
- values$2.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2) {
34950
+ values$2.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$3) {
34800
34951
  return (function(v$3$2) {
34801
34952
  var v$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$3$2);
34802
- this$2.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$3)
34953
+ this$3.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$3)
34803
34954
  })
34804
34955
  })(this)));
34805
34956
  break matchEnd36
@@ -40380,104 +40531,6 @@ var $d_Lio_kaitai_struct_format_DocSpec = new $TypeData().initClass({
40380
40531
  });
40381
40532
  $c_Lio_kaitai_struct_format_DocSpec.prototype.$classData = $d_Lio_kaitai_struct_format_DocSpec;
40382
40533
  /** @constructor */
40383
- function $c_Lio_kaitai_struct_format_EnumSpec() {
40384
- $c_O.call(this);
40385
- this.sortedSeq$1 = null;
40386
- this.map$1 = null;
40387
- this.name$1 = null;
40388
- this.bitmap$0$1 = false
40389
- }
40390
- $c_Lio_kaitai_struct_format_EnumSpec.prototype = new $h_O();
40391
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.constructor = $c_Lio_kaitai_struct_format_EnumSpec;
40392
- /** @constructor */
40393
- function $h_Lio_kaitai_struct_format_EnumSpec() {
40394
- /*<skip>*/
40395
- }
40396
- $h_Lio_kaitai_struct_format_EnumSpec.prototype = $c_Lio_kaitai_struct_format_EnumSpec.prototype;
40397
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productPrefix__T = (function() {
40398
- return "EnumSpec"
40399
- });
40400
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq__sc_Seq = (function() {
40401
- return ((!this.bitmap$0$1) ? this.sortedSeq$lzycompute__p1__sc_Seq() : this.sortedSeq$1)
40402
- });
40403
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productArity__I = (function() {
40404
- return 1
40405
- });
40406
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.equals__O__Z = (function(x$1) {
40407
- if ((this === x$1)) {
40408
- return true
40409
- } else if ((x$1 instanceof $c_Lio_kaitai_struct_format_EnumSpec)) {
40410
- var EnumSpec$1 = $as_Lio_kaitai_struct_format_EnumSpec(x$1);
40411
- var x = this.map$1;
40412
- var x$2 = EnumSpec$1.map$1;
40413
- return ((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))
40414
- } else {
40415
- return false
40416
- }
40417
- });
40418
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productElement__I__O = (function(x$1) {
40419
- switch (x$1) {
40420
- case 0: {
40421
- return this.map$1;
40422
- break
40423
- }
40424
- default: {
40425
- throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
40426
- }
40427
- }
40428
- });
40429
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.init___sci_Map = (function(map) {
40430
- this.map$1 = map;
40431
- this.name$1 = $m_sci_Nil$();
40432
- return this
40433
- });
40434
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.toString__T = (function() {
40435
- return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
40436
- });
40437
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.hashCode__I = (function() {
40438
- var this$2 = $m_s_util_hashing_MurmurHash3$();
40439
- return this$2.productHash__s_Product__I__I(this, (-889275714))
40440
- });
40441
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productIterator__sc_Iterator = (function() {
40442
- return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
40443
- });
40444
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq$lzycompute__p1__sc_Seq = (function() {
40445
- if ((!this.bitmap$0$1)) {
40446
- var this$1 = this.map$1;
40447
- var this$2 = $f_sc_MapLike__toSeq__sc_Seq(this$1);
40448
- var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
40449
- return (function(x$1$2) {
40450
- var x$1 = $as_T2(x$1$2);
40451
- return x$1.$$und1$mcJ$sp__J()
40452
- })
40453
- })(this));
40454
- var ord = $m_s_math_Ordering$Long$();
40455
- this.sortedSeq$1 = $as_sc_Seq($f_sc_SeqLike__sortBy__F1__s_math_Ordering__O(this$2, f, ord));
40456
- this.bitmap$0$1 = true
40457
- };
40458
- return this.sortedSeq$1
40459
- });
40460
- function $as_Lio_kaitai_struct_format_EnumSpec(obj) {
40461
- return (((obj instanceof $c_Lio_kaitai_struct_format_EnumSpec) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.format.EnumSpec"))
40462
- }
40463
- function $isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
40464
- return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_format_EnumSpec)))
40465
- }
40466
- function $asArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
40467
- return (($isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.format.EnumSpec;", depth))
40468
- }
40469
- var $d_Lio_kaitai_struct_format_EnumSpec = new $TypeData().initClass({
40470
- Lio_kaitai_struct_format_EnumSpec: 0
40471
- }, false, "io.kaitai.struct.format.EnumSpec", {
40472
- Lio_kaitai_struct_format_EnumSpec: 1,
40473
- O: 1,
40474
- s_Product: 1,
40475
- s_Equals: 1,
40476
- s_Serializable: 1,
40477
- Ljava_io_Serializable: 1
40478
- });
40479
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.$classData = $d_Lio_kaitai_struct_format_EnumSpec;
40480
- /** @constructor */
40481
40534
  function $c_Lio_kaitai_struct_format_EnumValueSpec() {
40482
40535
  $c_O.call(this);
40483
40536
  this.name$1 = null;
@@ -41022,6 +41075,33 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.ksErrorName__Lio_kaitai
41022
41075
  return err.name__T()
41023
41076
  }
41024
41077
  });
41078
+ $c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41079
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
41080
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
41081
+ var name = x2.name$2;
41082
+ return ("M" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name))
41083
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
41084
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
41085
+ var name$2 = x3.name$2;
41086
+ return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
41087
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
41088
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
41089
+ var idx = x4.idx$2;
41090
+ var x = $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1;
41091
+ var this$2 = new $c_sci_StringOps().init___T(x);
41092
+ return (($f_sci_StringLike__capitalize__T(this$2) + "_") + idx)
41093
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41094
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41095
+ var name$3 = x5.name$2;
41096
+ return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$3)
41097
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
41098
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
41099
+ var innerId = x6.innerId$2;
41100
+ return ("M_Raw" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
41101
+ } else {
41102
+ throw new $c_s_MatchError().init___O(id)
41103
+ }
41104
+ });
41025
41105
  $c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.types2class__sc_Iterable__T = (function(names) {
41026
41106
  var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
41027
41107
  return (function(name$2) {
@@ -41305,9 +41385,60 @@ $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.kaitaiType2NativeType__Lio_
41305
41385
  $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
41306
41386
  return new $c_Lio_kaitai_struct_languages_GoCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
41307
41387
  });
41388
+ $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41389
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
41390
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
41391
+ var name = x2.name$2;
41392
+ return name
41393
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
41394
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
41395
+ var name$2 = x3.name$2;
41396
+ return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
41397
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
41398
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
41399
+ var idx = x4.idx$2;
41400
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
41401
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41402
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41403
+ var name$3 = x5.name$2;
41404
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
41405
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
41406
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
41407
+ var innerId = x6.innerId$2;
41408
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
41409
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
41410
+ var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
41411
+ var innerId$2 = x7.innerId$2;
41412
+ return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
41413
+ } else {
41414
+ throw new $c_s_MatchError().init___O(id)
41415
+ }
41416
+ });
41308
41417
  $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
41309
41418
  return ("kaitai." + err.name__T())
41310
41419
  });
41420
+ $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41421
+ var x = $m_Lio_kaitai_struct_format_IoIdentifier$();
41422
+ if (x.equals__O__Z(id)) {
41423
+ return "_IO"
41424
+ } else {
41425
+ var x$3 = $m_Lio_kaitai_struct_format_RootIdentifier$();
41426
+ if (x$3.equals__O__Z(id)) {
41427
+ return "_Root"
41428
+ } else {
41429
+ var x$5 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
41430
+ if (x$5.equals__O__Z(id)) {
41431
+ return "_Parent"
41432
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41433
+ var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41434
+ var name = x2.name$2;
41435
+ return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
41436
+ } else {
41437
+ return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
41438
+ }
41439
+ }
41440
+ }
41441
+ });
41311
41442
  var $d_Lio_kaitai_struct_languages_GoCompiler$ = new $TypeData().initClass({
41312
41443
  Lio_kaitai_struct_languages_GoCompiler$: 0
41313
41444
  }, false, "io.kaitai.struct.languages.GoCompiler$", {
@@ -41383,6 +41514,31 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.types2class__sci_Li
41383
41514
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
41384
41515
  return new $c_Lio_kaitai_struct_languages_JavaScriptCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
41385
41516
  });
41517
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41518
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
41519
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
41520
+ var name = x2.name$2;
41521
+ return name
41522
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
41523
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
41524
+ var name$2 = x3.name$2;
41525
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
41526
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
41527
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
41528
+ var idx = x4.idx$2;
41529
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
41530
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41531
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41532
+ var name$3 = x5.name$2;
41533
+ return ("_m_" + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3))
41534
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
41535
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
41536
+ var innerId = x6.innerId$2;
41537
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
41538
+ } else {
41539
+ throw new $c_s_MatchError().init___O(id)
41540
+ }
41541
+ });
41386
41542
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
41387
41543
  var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
41388
41544
  if ((x === err)) {
@@ -41391,6 +41547,15 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.ksErrorName__Lio_ka
41391
41547
  return ("KaitaiStream." + err.name__T())
41392
41548
  }
41393
41549
  });
41550
+ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41551
+ if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41552
+ var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41553
+ var name = x2.name$2;
41554
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)
41555
+ } else {
41556
+ return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
41557
+ }
41558
+ });
41394
41559
  var $d_Lio_kaitai_struct_languages_JavaScriptCompiler$ = new $TypeData().initClass({
41395
41560
  Lio_kaitai_struct_languages_JavaScriptCompiler$: 0
41396
41561
  }, false, "io.kaitai.struct.languages.JavaScriptCompiler$", {
@@ -41466,6 +41631,40 @@ $c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.types2class__sci_List__T =
41466
41631
  $c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
41467
41632
  return new $c_Lio_kaitai_struct_languages_LuaCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
41468
41633
  });
41634
+ $c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41635
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
41636
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
41637
+ var name = x2.name$2;
41638
+ return name
41639
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
41640
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
41641
+ var name$2 = x3.name$2;
41642
+ return name$2
41643
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
41644
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
41645
+ var idx = x4.idx$2;
41646
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
41647
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41648
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41649
+ var name$3 = x5.name$2;
41650
+ return ("_m_" + name$3)
41651
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
41652
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
41653
+ var innerId = x6.innerId$2;
41654
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
41655
+ } else {
41656
+ throw new $c_s_MatchError().init___O(id)
41657
+ }
41658
+ });
41659
+ $c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
41660
+ if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
41661
+ var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
41662
+ var name = x2.name$2;
41663
+ return name
41664
+ } else {
41665
+ return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
41666
+ }
41667
+ });
41469
41668
  var $d_Lio_kaitai_struct_languages_LuaCompiler$ = new $TypeData().initClass({
41470
41669
  Lio_kaitai_struct_languages_LuaCompiler$: 0
41471
41670
  }, false, "io.kaitai.struct.languages.LuaCompiler$", {
@@ -41869,6 +42068,31 @@ $c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.init___ = (function() {
41869
42068
  $c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
41870
42069
  return new $c_Lio_kaitai_struct_languages_PHPCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
41871
42070
  });
42071
+ $c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
42072
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
42073
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
42074
+ var name = x2.name$2;
42075
+ return name
42076
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
42077
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
42078
+ var name$2 = x3.name$2;
42079
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
42080
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
42081
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
42082
+ var idx = x4.idx$2;
42083
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
42084
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
42085
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
42086
+ var name$3 = x5.name$2;
42087
+ return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
42088
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
42089
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
42090
+ var innerId = x6.innerId$2;
42091
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
42092
+ } else {
42093
+ throw new $c_s_MatchError().init___O(id)
42094
+ }
42095
+ });
41872
42096
  $c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.types2classRel__sci_List__T = (function(names) {
41873
42097
  var f = (function($this) {
41874
42098
  return (function(name$2) {
@@ -41993,6 +42217,31 @@ $c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.kstreamName__T = (functio
41993
42217
  $c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.kstructName__T = (function() {
41994
42218
  return "IO::KaitaiStruct::Struct"
41995
42219
  });
42220
+ $c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
42221
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
42222
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
42223
+ var name = x2.name$2;
42224
+ return name
42225
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
42226
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
42227
+ var name$2 = x3.name$2;
42228
+ return name$2
42229
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
42230
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
42231
+ var idx = x4.idx$2;
42232
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
42233
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
42234
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
42235
+ var name$3 = x5.name$2;
42236
+ return name$3
42237
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
42238
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
42239
+ var inner = x6.innerId$2;
42240
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
42241
+ } else {
42242
+ throw new $c_s_MatchError().init___O(id)
42243
+ }
42244
+ });
41996
42245
  var $d_Lio_kaitai_struct_languages_PerlCompiler$ = new $TypeData().initClass({
41997
42246
  Lio_kaitai_struct_languages_PerlCompiler$: 0
41998
42247
  }, false, "io.kaitai.struct.languages.PerlCompiler$", {
@@ -42068,6 +42317,31 @@ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.types2class__sci_List__
42068
42317
  $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
42069
42318
  return new $c_Lio_kaitai_struct_languages_PythonCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
42070
42319
  });
42320
+ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
42321
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
42322
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
42323
+ var name = x2.name$2;
42324
+ return name
42325
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
42326
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
42327
+ var name$2 = x3.name$2;
42328
+ return name$2
42329
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
42330
+ var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
42331
+ var idx = x4.idx$2;
42332
+ return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
42333
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
42334
+ var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
42335
+ var name$3 = x5.name$2;
42336
+ return ("_m_" + name$3)
42337
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
42338
+ var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
42339
+ var innerId = x6.innerId$2;
42340
+ return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
42341
+ } else {
42342
+ throw new $c_s_MatchError().init___O(id)
42343
+ }
42344
+ });
42071
42345
  $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
42072
42346
  var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
42073
42347
  if ((x === err)) {
@@ -42076,6 +42350,15 @@ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.ksErrorName__Lio_kaitai
42076
42350
  return ("kaitaistruct." + err.name__T())
42077
42351
  }
42078
42352
  });
42353
+ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
42354
+ if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
42355
+ var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
42356
+ var name = x2.name$2;
42357
+ return name
42358
+ } else {
42359
+ return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
42360
+ }
42361
+ });
42079
42362
  var $d_Lio_kaitai_struct_languages_PythonCompiler$ = new $TypeData().initClass({
42080
42363
  Lio_kaitai_struct_languages_PythonCompiler$: 0
42081
42364
  }, false, "io.kaitai.struct.languages.PythonCompiler$", {
@@ -48411,6 +48694,82 @@ var $d_Lio_kaitai_struct_exprlang_Ast$expr$IntNum = new $TypeData().initClass({
48411
48694
  });
48412
48695
  $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum.prototype.$classData = $d_Lio_kaitai_struct_exprlang_Ast$expr$IntNum;
48413
48696
  /** @constructor */
48697
+ function $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName() {
48698
+ $c_O.call(this);
48699
+ this.id$1 = null
48700
+ }
48701
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype = new $h_O();
48702
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.constructor = $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName;
48703
+ /** @constructor */
48704
+ function $h_Lio_kaitai_struct_exprlang_Ast$expr$InternalName() {
48705
+ /*<skip>*/
48706
+ }
48707
+ $h_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype = $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype;
48708
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productPrefix__T = (function() {
48709
+ return "InternalName"
48710
+ });
48711
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productArity__I = (function() {
48712
+ return 1
48713
+ });
48714
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.equals__O__Z = (function(x$1) {
48715
+ if ((this === x$1)) {
48716
+ return true
48717
+ } else if ((x$1 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
48718
+ var InternalName$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(x$1);
48719
+ var x = this.id$1;
48720
+ var x$2 = InternalName$1.id$1;
48721
+ return ((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))
48722
+ } else {
48723
+ return false
48724
+ }
48725
+ });
48726
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productElement__I__O = (function(x$1) {
48727
+ switch (x$1) {
48728
+ case 0: {
48729
+ return this.id$1;
48730
+ break
48731
+ }
48732
+ default: {
48733
+ throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
48734
+ }
48735
+ }
48736
+ });
48737
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.init___Lio_kaitai_struct_format_Identifier = (function(id) {
48738
+ this.id$1 = id;
48739
+ return this
48740
+ });
48741
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.toString__T = (function() {
48742
+ return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
48743
+ });
48744
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.hashCode__I = (function() {
48745
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
48746
+ return this$2.productHash__s_Product__I__I(this, (-889275714))
48747
+ });
48748
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productIterator__sc_Iterator = (function() {
48749
+ return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
48750
+ });
48751
+ function $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj) {
48752
+ return (((obj instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.exprlang.Ast$expr$InternalName"))
48753
+ }
48754
+ function $isArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) {
48755
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_exprlang_Ast$expr$InternalName)))
48756
+ }
48757
+ function $asArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) {
48758
+ return (($isArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.exprlang.Ast$expr$InternalName;", depth))
48759
+ }
48760
+ var $d_Lio_kaitai_struct_exprlang_Ast$expr$InternalName = new $TypeData().initClass({
48761
+ Lio_kaitai_struct_exprlang_Ast$expr$InternalName: 0
48762
+ }, false, "io.kaitai.struct.exprlang.Ast$expr$InternalName", {
48763
+ Lio_kaitai_struct_exprlang_Ast$expr$InternalName: 1,
48764
+ O: 1,
48765
+ Lio_kaitai_struct_exprlang_Ast$expr: 1,
48766
+ s_Product: 1,
48767
+ s_Equals: 1,
48768
+ s_Serializable: 1,
48769
+ Ljava_io_Serializable: 1
48770
+ });
48771
+ $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.$classData = $d_Lio_kaitai_struct_exprlang_Ast$expr$InternalName;
48772
+ /** @constructor */
48414
48773
  function $c_Lio_kaitai_struct_exprlang_Ast$expr$List() {
48415
48774
  $c_O.call(this);
48416
48775
  this.elts$1 = null
@@ -49879,6 +50238,120 @@ function $m_Lio_kaitai_struct_format_DynamicSized$() {
49879
50238
  return $n_Lio_kaitai_struct_format_DynamicSized$
49880
50239
  }
49881
50240
  /** @constructor */
50241
+ function $c_Lio_kaitai_struct_format_EnumSpec() {
50242
+ $c_O.call(this);
50243
+ this.sortedSeq$1 = null;
50244
+ this.path$1 = null;
50245
+ this.map$1 = null;
50246
+ this.name$1 = null;
50247
+ this.bitmap$0$1 = false
50248
+ }
50249
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype = new $h_O();
50250
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.constructor = $c_Lio_kaitai_struct_format_EnumSpec;
50251
+ /** @constructor */
50252
+ function $h_Lio_kaitai_struct_format_EnumSpec() {
50253
+ /*<skip>*/
50254
+ }
50255
+ $h_Lio_kaitai_struct_format_EnumSpec.prototype = $c_Lio_kaitai_struct_format_EnumSpec.prototype;
50256
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productPrefix__T = (function() {
50257
+ return "EnumSpec"
50258
+ });
50259
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq__sc_Seq = (function() {
50260
+ return ((!this.bitmap$0$1) ? this.sortedSeq$lzycompute__p1__sc_Seq() : this.sortedSeq$1)
50261
+ });
50262
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productArity__I = (function() {
50263
+ return 2
50264
+ });
50265
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.equals__O__Z = (function(x$1) {
50266
+ if ((this === x$1)) {
50267
+ return true
50268
+ } else if ((x$1 instanceof $c_Lio_kaitai_struct_format_EnumSpec)) {
50269
+ var EnumSpec$1 = $as_Lio_kaitai_struct_format_EnumSpec(x$1);
50270
+ var x = this.path$1;
50271
+ var x$2 = EnumSpec$1.path$1;
50272
+ if (((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))) {
50273
+ var x$3 = this.map$1;
50274
+ var x$4 = EnumSpec$1.map$1;
50275
+ return ((x$3 === null) ? (x$4 === null) : x$3.equals__O__Z(x$4))
50276
+ } else {
50277
+ return false
50278
+ }
50279
+ } else {
50280
+ return false
50281
+ }
50282
+ });
50283
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productElement__I__O = (function(x$1) {
50284
+ switch (x$1) {
50285
+ case 0: {
50286
+ return this.path$1;
50287
+ break
50288
+ }
50289
+ case 1: {
50290
+ return this.map$1;
50291
+ break
50292
+ }
50293
+ default: {
50294
+ throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
50295
+ }
50296
+ }
50297
+ });
50298
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.toString__T = (function() {
50299
+ return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
50300
+ });
50301
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.init___sci_List__sci_Map = (function(path, map) {
50302
+ this.path$1 = path;
50303
+ this.map$1 = map;
50304
+ this.name$1 = $m_sci_Nil$();
50305
+ return this
50306
+ });
50307
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.path__sci_List = (function() {
50308
+ return this.path$1
50309
+ });
50310
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.hashCode__I = (function() {
50311
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
50312
+ return this$2.productHash__s_Product__I__I(this, (-889275714))
50313
+ });
50314
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productIterator__sc_Iterator = (function() {
50315
+ return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
50316
+ });
50317
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq$lzycompute__p1__sc_Seq = (function() {
50318
+ if ((!this.bitmap$0$1)) {
50319
+ var this$1 = this.map$1;
50320
+ var this$2 = $f_sc_MapLike__toSeq__sc_Seq(this$1);
50321
+ var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
50322
+ return (function(x$1$2) {
50323
+ var x$1 = $as_T2(x$1$2);
50324
+ return x$1.$$und1$mcJ$sp__J()
50325
+ })
50326
+ })(this));
50327
+ var ord = $m_s_math_Ordering$Long$();
50328
+ this.sortedSeq$1 = $as_sc_Seq($f_sc_SeqLike__sortBy__F1__s_math_Ordering__O(this$2, f, ord));
50329
+ this.bitmap$0$1 = true
50330
+ };
50331
+ return this.sortedSeq$1
50332
+ });
50333
+ function $as_Lio_kaitai_struct_format_EnumSpec(obj) {
50334
+ return (((obj instanceof $c_Lio_kaitai_struct_format_EnumSpec) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.format.EnumSpec"))
50335
+ }
50336
+ function $isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
50337
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_format_EnumSpec)))
50338
+ }
50339
+ function $asArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
50340
+ return (($isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.format.EnumSpec;", depth))
50341
+ }
50342
+ var $d_Lio_kaitai_struct_format_EnumSpec = new $TypeData().initClass({
50343
+ Lio_kaitai_struct_format_EnumSpec: 0
50344
+ }, false, "io.kaitai.struct.format.EnumSpec", {
50345
+ Lio_kaitai_struct_format_EnumSpec: 1,
50346
+ O: 1,
50347
+ Lio_kaitai_struct_format_YAMLPath: 1,
50348
+ s_Product: 1,
50349
+ s_Equals: 1,
50350
+ s_Serializable: 1,
50351
+ Ljava_io_Serializable: 1
50352
+ });
50353
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.$classData = $d_Lio_kaitai_struct_format_EnumSpec;
50354
+ /** @constructor */
49882
50355
  function $c_Lio_kaitai_struct_format_FixedSized() {
49883
50356
  $c_O.call(this);
49884
50357
  this.n$1 = 0
@@ -57095,6 +57568,41 @@ function $m_Lio_kaitai_struct_format_RootIdentifier$() {
57095
57568
  return $n_Lio_kaitai_struct_format_RootIdentifier$
57096
57569
  }
57097
57570
  /** @constructor */
57571
+ function $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError() {
57572
+ $c_Lio_kaitai_struct_precompile_NotFoundError.call(this);
57573
+ this.label$6 = null;
57574
+ this.enum$6 = null;
57575
+ this.enumDefPath$6 = null
57576
+ }
57577
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype = new $h_Lio_kaitai_struct_precompile_NotFoundError();
57578
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype.constructor = $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError;
57579
+ /** @constructor */
57580
+ function $h_Lio_kaitai_struct_precompile_EnumMemberNotFoundError() {
57581
+ /*<skip>*/
57582
+ }
57583
+ $h_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype = $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype;
57584
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype.init___T__T__T = (function(label, $enum, enumDefPath) {
57585
+ this.label$6 = label;
57586
+ this.enum$6 = $enum;
57587
+ this.enumDefPath$6 = enumDefPath;
57588
+ var msg = (((((((("unable to find enum member '" + $enum) + "::") + label) + "' (enum '") + $enum) + "' defined at /") + enumDefPath) + ")");
57589
+ $c_jl_Throwable.prototype.init___T__jl_Throwable__Z__Z.call(this, msg, null, true, true);
57590
+ return this
57591
+ });
57592
+ var $d_Lio_kaitai_struct_precompile_EnumMemberNotFoundError = new $TypeData().initClass({
57593
+ Lio_kaitai_struct_precompile_EnumMemberNotFoundError: 0
57594
+ }, false, "io.kaitai.struct.precompile.EnumMemberNotFoundError", {
57595
+ Lio_kaitai_struct_precompile_EnumMemberNotFoundError: 1,
57596
+ Lio_kaitai_struct_precompile_NotFoundError: 1,
57597
+ Lio_kaitai_struct_precompile_ExpressionError: 1,
57598
+ jl_RuntimeException: 1,
57599
+ jl_Exception: 1,
57600
+ jl_Throwable: 1,
57601
+ O: 1,
57602
+ Ljava_io_Serializable: 1
57603
+ });
57604
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype.$classData = $d_Lio_kaitai_struct_precompile_EnumMemberNotFoundError;
57605
+ /** @constructor */
57098
57606
  function $c_Lio_kaitai_struct_precompile_EnumNotFoundError() {
57099
57607
  $c_Lio_kaitai_struct_precompile_NotFoundError.call(this);
57100
57608
  this.name$6 = null;
@@ -62693,9 +63201,6 @@ function $h_Lio_kaitai_struct_translators_BaseTranslator() {
62693
63201
  /*<skip>*/
62694
63202
  }
62695
63203
  $h_Lio_kaitai_struct_translators_BaseTranslator.prototype = $c_Lio_kaitai_struct_translators_BaseTranslator.prototype;
62696
- $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
62697
- return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
62698
- });
62699
63204
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
62700
63205
  return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
62701
63206
  });
@@ -62717,6 +63222,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.byteSizeOfValue__T__Li
62717
63222
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
62718
63223
  return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
62719
63224
  });
63225
+ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
63226
+ $m_s_Predef$().$$qmark$qmark$qmark__sr_Nothing$()
63227
+ });
62720
63228
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
62721
63229
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
62722
63230
  });
@@ -62910,10 +63418,17 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
62910
63418
  return ((name.name$1 === $m_Lio_kaitai_struct_format_Identifier$().SIZEOF$1) ? this.byteSizeOfClassSpec__Lio_kaitai_struct_format_ClassSpec__T(this.provider$2.nowClass$1) : this.doLocalName__T__T(name.name$1))
62911
63419
  }
62912
63420
  };
63421
+ if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
63422
+ var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
63423
+ var id$2 = x9.id$1;
63424
+ if ((id$2 !== null)) {
63425
+ return this.doInternalName__Lio_kaitai_struct_format_Identifier__T(id$2)
63426
+ }
63427
+ };
62913
63428
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
62914
- var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
62915
- var op = x9.op$1;
62916
- var inner = x9.operand$1;
63429
+ var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
63430
+ var op = x10.op$1;
63431
+ var inner = x10.operand$1;
62917
63432
  if ((op !== null)) {
62918
63433
  if ((inner !== null)) {
62919
63434
  var opStr = this.unaryOp__Lio_kaitai_struct_exprlang_Ast$unaryop__T(op);
@@ -62929,17 +63444,17 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
62929
63444
  }
62930
63445
  };
62931
63446
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
62932
- var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
62933
- var left = x10.left$1;
62934
- var op$2 = x10.ops$1;
62935
- var right = x10.right$1;
63447
+ var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
63448
+ var left = x11.left$1;
63449
+ var op$2 = x11.ops$1;
63450
+ var right = x11.right$1;
62936
63451
  if ((left !== null)) {
62937
63452
  if ((op$2 !== null)) {
62938
63453
  if ((right !== null)) {
62939
63454
  var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
62940
63455
  var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
62941
63456
  if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType))) {
62942
- return this.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op$2, right)
63457
+ return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op$2, right)
62943
63458
  };
62944
63459
  if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType))) {
62945
63460
  var x$3 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$();
@@ -62950,7 +63465,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
62950
63465
  var jsx$1 = (x$5 === op$2)
62951
63466
  };
62952
63467
  if (jsx$1) {
62953
- return this.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op$2, right)
63468
+ return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op$2, right)
62954
63469
  } else {
62955
63470
  throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((("can't compare booleans using " + op$2) + " operator"))
62956
63471
  }
@@ -62962,10 +63477,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
62962
63477
  return this.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op$2, right)
62963
63478
  };
62964
63479
  if ((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
62965
- var x18$2 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_1);
63480
+ var x18 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_1);
62966
63481
  if ((_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
62967
63482
  var x19$2 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_2);
62968
- var et1Spec = $as_Lio_kaitai_struct_format_EnumSpec(x18$2.enumSpec$1.get__O());
63483
+ var et1Spec = $as_Lio_kaitai_struct_format_EnumSpec(x18.enumSpec$1.get__O());
62969
63484
  var et2Spec = $as_Lio_kaitai_struct_format_EnumSpec(x19$2.enumSpec$1.get__O());
62970
63485
  if ((!((et1Spec === null) ? (et2Spec === null) : et1Spec.equals__O__Z(et2Spec)))) {
62971
63486
  var this$1 = et1Spec.name$1;
@@ -62983,10 +63498,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
62983
63498
  }
62984
63499
  };
62985
63500
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
62986
- var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
62987
- var left$2 = x11.left$1;
62988
- var op$3 = x11.op$1;
62989
- var right$2 = x11.right$1;
63501
+ var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
63502
+ var left$2 = x12.left$1;
63503
+ var op$3 = x12.op$1;
63504
+ var right$2 = x12.right$1;
62990
63505
  if ((left$2 !== null)) {
62991
63506
  if ((op$3 !== null)) {
62992
63507
  if ((right$2 !== null)) {
@@ -63016,9 +63531,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
63016
63531
  }
63017
63532
  };
63018
63533
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
63019
- var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
63020
- var op$4 = x12.op$1;
63021
- var values = x12.values$1;
63534
+ var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
63535
+ var op$4 = x13.op$1;
63536
+ var values = x13.values$1;
63022
63537
  if ((op$4 !== null)) {
63023
63538
  if ((values !== null)) {
63024
63539
  return $f_Lio_kaitai_struct_translators_CommonOps__doBooleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__sc_Seq__T(this, op$4, values)
@@ -63026,16 +63541,16 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
63026
63541
  }
63027
63542
  };
63028
63543
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
63029
- var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
63030
- var condition = x13.condition$1;
63031
- var ifTrue = x13.ifTrue$1;
63032
- var ifFalse = x13.ifFalse$1;
63544
+ var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
63545
+ var condition = x14.condition$1;
63546
+ var ifTrue = x14.ifTrue$1;
63547
+ var ifFalse = x14.ifFalse$1;
63033
63548
  return this.doIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(condition, ifTrue, ifFalse)
63034
63549
  };
63035
63550
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
63036
- var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
63037
- var container = x14.value$1;
63038
- var idx = x14.idx$1;
63551
+ var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
63552
+ var container = x15.value$1;
63553
+ var idx = x15.idx$1;
63039
63554
  if ((container !== null)) {
63040
63555
  if ((idx !== null)) {
63041
63556
  var x1$6 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(idx);
@@ -63055,32 +63570,32 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
63055
63570
  }
63056
63571
  };
63057
63572
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
63058
- var x31 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
63059
- return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x31))
63573
+ var x33 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
63574
+ return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x33))
63060
63575
  };
63061
63576
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
63062
- var x32 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
63063
- return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x32))
63577
+ var x34 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
63578
+ return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x34))
63064
63579
  };
63065
63580
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
63066
- var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
63067
- var values$2 = x15.elts$1;
63581
+ var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
63582
+ var values$2 = x16.elts$1;
63068
63583
  if ((values$2 !== null)) {
63069
63584
  return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doGuessArrayLiteral__sc_Seq__O(this, values$2))
63070
63585
  }
63071
63586
  };
63072
63587
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
63073
- var x34 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
63074
- return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x34))
63588
+ var x36 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
63589
+ return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x36))
63075
63590
  };
63076
63591
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
63077
- var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
63078
- var typeName = x16.typeName$1;
63592
+ var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
63593
+ var typeName = x17.typeName$1;
63079
63594
  return this.doByteSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__T(typeName)
63080
63595
  };
63081
63596
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType)) {
63082
- var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
63083
- var typeName$2 = x17.typeName$1;
63597
+ var x18$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
63598
+ var typeName$2 = x18$2.typeName$1;
63084
63599
  return this.doBitSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__T(typeName$2)
63085
63600
  };
63086
63601
  throw new $c_s_MatchError().init___O(v)
@@ -63379,12 +63894,12 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doByteArrayLiteral__sc_S
63379
63894
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value, num) {
63380
63895
  return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value, num)
63381
63896
  });
63382
- $c_Lio_kaitai_struct_translators_GoTranslator.prototype.trEnumByLabel__sci_List__T__Lio_kaitai_struct_translators_ResultString = (function(enumTypeAbs, label) {
63383
- return new $c_Lio_kaitai_struct_translators_ResultString().init___T($m_Lio_kaitai_struct_languages_GoCompiler$().enumToStr__sci_List__T__T(enumTypeAbs, label))
63384
- });
63385
63897
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
63386
63898
  return this.asciiCharQuoteMap$2
63387
63899
  });
63900
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.trEnumByLabel__sci_List__T__Lio_kaitai_struct_translators_ResultString = (function(enumTypeAbs, label) {
63901
+ return new $c_Lio_kaitai_struct_translators_ResultString().init___T($m_Lio_kaitai_struct_languages_GoCompiler$().enumToStr__sci_List__T__T(enumTypeAbs, label))
63902
+ });
63388
63903
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(s) {
63389
63904
  return new $c_Lio_kaitai_struct_translators_ResultString().init___T((("kaitai.StringReverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")"))
63390
63905
  });
@@ -63679,6 +64194,23 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doByteArrayNonLiteral__s
63679
64194
  var this$1 = $m_sc_Seq$();
63680
64195
  return new $c_Lio_kaitai_struct_translators_ResultString().init___T((("[]uint8{" + $as_sc_TraversableOnce(elts.map__F1__scg_CanBuildFrom__O(jsx$1, this$1.ReusableCBFInstance$2)).mkString__T__T(", ")) + "}"))
63681
64196
  });
64197
+ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.trInternalName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult = (function(id) {
64198
+ if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
64199
+ var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
64200
+ var name = x2.name$2;
64201
+ return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name)
64202
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
64203
+ var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
64204
+ var name$2 = x3.name$2;
64205
+ return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name$2)
64206
+ } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
64207
+ var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
64208
+ var name$3 = x4.name$2;
64209
+ return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name$3)
64210
+ } else {
64211
+ return new $c_Lio_kaitai_struct_translators_ResultString().init___T(("this." + $m_Lio_kaitai_struct_languages_GoCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id)))
64212
+ }
64213
+ });
63682
64214
  $c_Lio_kaitai_struct_translators_GoTranslator.prototype.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value, expr) {
63683
64215
  return this.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value, expr)
63684
64216
  });
@@ -63755,10 +64287,17 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
63755
64287
  return ((name.name$1 === $m_Lio_kaitai_struct_format_Identifier$().SIZEOF$1) ? this.byteSizeOfClassSpec__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_translators_TranslatorResult(this.provider$2.nowClass$1) : this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name.name$1))
63756
64288
  }
63757
64289
  };
64290
+ if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
64291
+ var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
64292
+ var id$2 = x9.id$1;
64293
+ if ((id$2 !== null)) {
64294
+ return this.trInternalName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult(id$2)
64295
+ }
64296
+ };
63758
64297
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
63759
- var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
63760
- var op = x9.op$1;
63761
- var inner = x9.operand$1;
64298
+ var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
64299
+ var op = x10.op$1;
64300
+ var inner = x10.operand$1;
63762
64301
  if ((op !== null)) {
63763
64302
  if ((inner !== null)) {
63764
64303
  var opStr = this.unaryOp__Lio_kaitai_struct_exprlang_Ast$unaryop__T(op);
@@ -63775,10 +64314,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
63775
64314
  }
63776
64315
  };
63777
64316
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
63778
- var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
63779
- var left = x10.left$1;
63780
- var op$2 = x10.ops$1;
63781
- var right = x10.right$1;
64317
+ var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
64318
+ var left = x11.left$1;
64319
+ var op$2 = x11.ops$1;
64320
+ var right = x11.right$1;
63782
64321
  var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
63783
64322
  var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
63784
64323
  if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType))) {
@@ -63796,10 +64335,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
63796
64335
  }
63797
64336
  };
63798
64337
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
63799
- var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
63800
- var left$2 = x11.left$1;
63801
- var op$3 = x11.op$1;
63802
- var right$2 = x11.right$1;
64338
+ var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
64339
+ var left$2 = x12.left$1;
64340
+ var op$3 = x12.op$1;
64341
+ var right$2 = x12.right$1;
63803
64342
  if ((left$2 !== null)) {
63804
64343
  if ((op$3 !== null)) {
63805
64344
  if ((right$2 !== null)) {
@@ -63829,49 +64368,49 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
63829
64368
  }
63830
64369
  };
63831
64370
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
63832
- var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
63833
- var op$4 = x12.op$1;
63834
- var values = x12.values$1;
64371
+ var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
64372
+ var op$4 = x13.op$1;
64373
+ var values = x13.values$1;
63835
64374
  return this.trBooleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__sc_Seq__Lio_kaitai_struct_translators_ResultString(op$4, values)
63836
64375
  };
63837
64376
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
63838
- var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
63839
- var condition = x13.condition$1;
63840
- var ifTrue = x13.ifTrue$1;
63841
- var ifFalse = x13.ifFalse$1;
64377
+ var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
64378
+ var condition = x14.condition$1;
64379
+ var ifTrue = x14.ifTrue$1;
64380
+ var ifFalse = x14.ifFalse$1;
63842
64381
  return this.trIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultLocalVar(condition, ifTrue, ifFalse)
63843
64382
  };
63844
64383
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
63845
- var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
63846
- var container = x14.value$1;
63847
- var idx = x14.idx$1;
64384
+ var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
64385
+ var container = x15.value$1;
64386
+ var idx = x15.idx$1;
63848
64387
  return this.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString(container, idx)
63849
64388
  };
63850
64389
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
63851
- var x24 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
63852
- return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x24))
64390
+ var x26 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
64391
+ return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x26))
63853
64392
  };
63854
64393
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
63855
- var x25 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
63856
- return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x25))
64394
+ var x27 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
64395
+ return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x27))
63857
64396
  };
63858
64397
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
63859
- var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
63860
- var elts = x15.elts$1;
64398
+ var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
64399
+ var elts = x16.elts$1;
63861
64400
  return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doGuessArrayLiteral__sc_Seq__O(this, elts))
63862
64401
  };
63863
64402
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
63864
- var x26 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
63865
- return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x26))
64403
+ var x28 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
64404
+ return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x28))
63866
64405
  };
63867
64406
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
63868
- var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
63869
- var typeName = x16.typeName$1;
64407
+ var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
64408
+ var typeName = x17.typeName$1;
63870
64409
  return this.doByteSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_translators_TranslatorResult(typeName)
63871
64410
  };
63872
64411
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType)) {
63873
- var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
63874
- var typeName$2 = x17.typeName$1;
64412
+ var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
64413
+ var typeName$2 = x18.typeName$1;
63875
64414
  return this.doBitSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_translators_TranslatorResult(typeName$2)
63876
64415
  };
63877
64416
  throw new $c_s_MatchError().init___O(v)
@@ -65812,6 +66351,9 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.enumClass__sci_List_
65812
66351
  var enumTypeRel = $m_Lio_kaitai_struct_Utils$().relClass__sci_List__sci_List__sci_List(enumTypeAbs, this.provider$2.nowClass$1.name$1);
65813
66352
  return $m_Lio_kaitai_struct_languages_CSharpCompiler$().types2class__sc_Iterable__T(enumTypeRel)
65814
66353
  });
66354
+ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
66355
+ return ("" + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
66356
+ });
65815
66357
  $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
65816
66358
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
65817
66359
  });
@@ -66070,6 +66612,9 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strSubstring__Li
66070
66612
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
66071
66613
  return (("Array.from(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ").reverse().join('')")
66072
66614
  });
66615
+ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
66616
+ return ("this." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
66617
+ });
66073
66618
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
66074
66619
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
66075
66620
  });
@@ -66098,12 +66643,12 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_ka
66098
66643
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(condition, ifTrue, ifFalse) {
66099
66644
  return (((((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(condition)) + " ? ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(ifTrue)) + " : ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(ifFalse)) + ")")
66100
66645
  });
66101
- $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
66102
- return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
66103
- });
66104
66646
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
66105
66647
  return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " | 0)")
66106
66648
  });
66649
+ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
66650
+ return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
66651
+ });
66107
66652
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
66108
66653
  return this.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
66109
66654
  });
@@ -66139,12 +66684,12 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arrayMax__Lio_ka
66139
66684
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i, base) {
66140
66685
  return (((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").toString(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base)) + ")")
66141
66686
  });
66142
- $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
66143
- return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + ".isEof()")
66144
- });
66145
66687
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doName__T__T = (function(s) {
66146
66688
  return (((s === "_root") || ((s === "_parent") || (s === "_io"))) ? s : $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s))
66147
66689
  });
66690
+ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
66691
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + ".isEof()")
66692
+ });
66148
66693
  $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, base) {
66149
66694
  return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
66150
66695
  });
@@ -66388,6 +66933,10 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.enumClass__sci_List__T
66388
66933
  };
66389
66934
  return $as_sc_TraversableOnce(jsx$1).mkString__T__T(".")
66390
66935
  });
66936
+ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
66937
+ var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
66938
+ return (this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id) + "()")
66939
+ });
66391
66940
  $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
66392
66941
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
66393
66942
  });
@@ -66452,12 +67001,12 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.arraySubscript__Lio_ka
66452
67001
  $c_Lio_kaitai_struct_translators_JavaTranslator.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) {
66453
67002
  return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + ".substring(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + ")")
66454
67003
  });
66455
- $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
66456
- return (("KaitaiStream.byteArrayMax(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ")")
66457
- });
66458
67004
  $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
66459
67005
  return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b) + "[(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ").length - 1]")
66460
67006
  });
67007
+ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67008
+ return (("KaitaiStream.byteArrayMax(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ")")
67009
+ });
66461
67010
  $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doByteArrayNonLiteral__sc_Seq__T = (function(elts) {
66462
67011
  var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
66463
67012
  return (function(v$2) {
@@ -66499,7 +67048,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesSubscript__Lio_ka
66499
67048
  return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
66500
67049
  });
66501
67050
  $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doName__T__T = (function(s) {
66502
- return (($m_Lio_kaitai_struct_format_Identifier$().ROOT$1 === s) ? s : (($m_Lio_kaitai_struct_format_Identifier$().PARENT$1 === s) ? "_parent()" : (($m_Lio_kaitai_struct_format_Identifier$().IO$1 === s) ? "_io()" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === s) ? "_it" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 === s) ? "_buf" : (($m_Lio_kaitai_struct_format_Identifier$().SWITCH$undON$1 === s) ? "on" : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? "i" : ($m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s) + "()"))))))))
67051
+ return (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === s) ? "_it" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 === s) ? "_buf" : (($m_Lio_kaitai_struct_format_Identifier$().SWITCH$undON$1 === s) ? "on" : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? "i" : ($m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s) + "()")))))
66503
67052
  });
66504
67053
  $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, base) {
66505
67054
  return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
@@ -66940,10 +67489,12 @@ function $h_Lio_kaitai_struct_translators_PerlTranslator() {
66940
67489
  $h_Lio_kaitai_struct_translators_PerlTranslator.prototype = $c_Lio_kaitai_struct_translators_PerlTranslator.prototype;
66941
67490
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, base) {
66942
67491
  var baseStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base);
66943
- if ((baseStr === "8")) {
67492
+ if ((baseStr === "2")) {
67493
+ return (("oct('0b' . " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
67494
+ } else if ((baseStr === "8")) {
66944
67495
  return (("oct(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
66945
67496
  } else if ((baseStr === "10")) {
66946
- return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
67497
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + " + 0")
66947
67498
  } else if ((baseStr === "16")) {
66948
67499
  return (("hex(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
66949
67500
  } else {
@@ -66959,9 +67510,19 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySize__Lio_kaitai_
66959
67510
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, from, to) {
66960
67511
  return this.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, from, to)
66961
67512
  });
67513
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67514
+ return this.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67515
+ });
67516
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67517
+ return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67518
+ });
66962
67519
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
66963
67520
  return (("scalar(reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + "))")
66964
67521
  });
67522
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
67523
+ var this$1 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
67524
+ return (("$self->" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "()")
67525
+ });
66965
67526
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
66966
67527
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
66967
67528
  });
@@ -66971,12 +67532,15 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_
66971
67532
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
66972
67533
  return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
66973
67534
  });
66974
- $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
66975
- return (("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(a)) + "}[-1]")
67535
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67536
+ return (("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ", 0, 1))")
66976
67537
  });
66977
67538
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
66978
67539
  return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
66979
67540
  });
67541
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
67542
+ return (("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(a)) + "}[-1]")
67543
+ });
66980
67544
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
66981
67545
  return this.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
66982
67546
  });
@@ -67047,6 +67611,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doIfExp__Lio_kaitai_st
67047
67611
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
67048
67612
  return this.asciiCharQuoteMap$3
67049
67613
  });
67614
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(container, idx) {
67615
+ return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(container, idx)
67616
+ });
67050
67617
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__T = (function(t, value) {
67051
67618
  var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
67052
67619
  return (function(v$2) {
@@ -67064,7 +67631,15 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySubscript__Lio_ka
67064
67631
  return (((("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container)) + "}[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
67065
67632
  });
67066
67633
  $c_Lio_kaitai_struct_translators_PerlTranslator.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) {
67067
- return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ":") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + "]")
67634
+ return (((((((("substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ", (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + ") - (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + "))")
67635
+ });
67636
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67637
+ return (("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ", -1, 1))")
67638
+ });
67639
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67640
+ var this$1 = this.importList$3;
67641
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "List::Util");
67642
+ return (("List::Util::max(unpack('C*', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + "))")
67068
67643
  });
67069
67644
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral__sc_Seq__T = (function(elts) {
67070
67645
  var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
@@ -67079,12 +67654,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral_
67079
67654
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
67080
67655
  return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
67081
67656
  });
67082
- $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
67083
- return (("length(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")")
67084
- });
67085
67657
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doLocalName__T__T = (function(s) {
67086
67658
  return (((s === "_") || (s === "_on")) ? ("$" + s) : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? this.doName__T__T(s) : ("$self->" + this.doName__T__T(s))))
67087
67659
  });
67660
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
67661
+ return (("length(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")")
67662
+ });
67088
67663
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayLiteral__sc_Seq__O = (function(arr) {
67089
67664
  return this.doByteArrayLiteral__sc_Seq__T(arr)
67090
67665
  });
@@ -67098,9 +67673,14 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMax__Lio_kaitai_s
67098
67673
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
67099
67674
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->size()")
67100
67675
  });
67676
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67677
+ return this.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67678
+ });
67101
67679
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i, base) {
67102
67680
  var baseStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base);
67103
- if ((baseStr === "8")) {
67681
+ if ((baseStr === "2")) {
67682
+ var format = "%b"
67683
+ } else if ((baseStr === "8")) {
67104
67684
  var format = "%o"
67105
67685
  } else if ((baseStr === "10")) {
67106
67686
  var format = "%d"
@@ -67112,6 +67692,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_s
67112
67692
  };
67113
67693
  return (((("sprintf('" + format) + "', ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
67114
67694
  });
67695
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
67696
+ return (((("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + ", 1))")
67697
+ });
67115
67698
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doName__T__T = (function(s) {
67116
67699
  return (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === s) ? "$_" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 === s) ? "$_buf" : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? "$i" : (s + "()"))))
67117
67700
  });
@@ -67123,12 +67706,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesToStr__T__Lio_kai
67123
67706
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "Encode");
67124
67707
  return (((("Encode::decode(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(encoding)) + ", ") + bytesExpr) + ")")
67125
67708
  });
67126
- $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(value, attrName) {
67127
- return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->") + this.doName__T__T(attrName))
67128
- });
67129
67709
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O = (function(value, et) {
67130
67710
  return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
67131
67711
  });
67712
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(value, attrName) {
67713
+ return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->") + this.doName__T__T(attrName))
67714
+ });
67132
67715
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67133
67716
  return this.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67134
67717
  });
@@ -67168,6 +67751,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doStrCompareOp__Lio_ka
67168
67751
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
67169
67752
  return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
67170
67753
  });
67754
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67755
+ return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67756
+ });
67171
67757
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
67172
67758
  return this.doStrCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op, right)
67173
67759
  });
@@ -67206,6 +67792,11 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doArrayLiteral__Lio_ka
67206
67792
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67207
67793
  return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67208
67794
  });
67795
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67796
+ var this$1 = this.importList$3;
67797
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "List::Util");
67798
+ return (("List::Util::min(unpack('C*', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + "))")
67799
+ });
67209
67800
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67210
67801
  return this.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67211
67802
  });
@@ -67326,6 +67917,9 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesLast__Lio_kaita
67326
67917
  $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
67327
67918
  return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")[::-1]")
67328
67919
  });
67920
+ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
67921
+ return ("self." + $m_Lio_kaitai_struct_languages_PythonCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
67922
+ });
67329
67923
  $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
67330
67924
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
67331
67925
  });
@@ -67623,6 +68217,10 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.strReverse__Lio_kaitai
67623
68217
  $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67624
68218
  return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67625
68219
  });
68220
+ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
68221
+ var this$1 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
68222
+ return this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
68223
+ });
67626
68224
  $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
67627
68225
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
67628
68226
  });
@@ -70128,6 +70726,10 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.strReverse__Lio_kaitai_
70128
70726
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
70129
70727
  return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
70130
70728
  });
70729
+ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
70730
+ var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
70731
+ return (this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id) + "()")
70732
+ });
70131
70733
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
70132
70734
  return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
70133
70735
  });
@@ -70355,6 +70957,9 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.doStrCompareOp__Lio_kai
70355
70957
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
70356
70958
  return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
70357
70959
  });
70960
+ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
70961
+ return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
70962
+ });
70358
70963
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.doByteArrayLiteral__sc_Seq__T = (function(arr) {
70359
70964
  return (((("std::string(\"" + $m_Lio_kaitai_struct_Utils$().hexEscapeByteArray__sc_Seq__T(arr)) + "\", ") + arr.length__I()) + ")")
70360
70965
  });
@@ -70377,9 +70982,6 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.numericBinOp__Lio_kaita
70377
70982
  return $f_Lio_kaitai_struct_translators_CommonOps__numericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$operator__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
70378
70983
  }
70379
70984
  });
70380
- $c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
70381
- return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
70382
- });
70383
70985
  $c_Lio_kaitai_struct_translators_CppTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__O = (function(t, value) {
70384
70986
  return this.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__T(t, value)
70385
70987
  });
@@ -70442,34 +71044,6 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strToInt__Lio_kaitai_st
70442
71044
  var add = ((baseStr === "10") ? "" : (", " + baseStr));
70443
71045
  return ((("tonumber(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + add) + ")")
70444
71046
  });
70445
- $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
70446
- var f = (function($this) {
70447
- return (function(n$2) {
70448
- var n = $uZ(n$2);
70449
- return (n ? "1" : "0")
70450
- })
70451
- })(this);
70452
- if ((left instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70453
- var x4 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(left);
70454
- var l = x4.n$1;
70455
- if ((right instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70456
- var x5 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(right);
70457
- var r = x5.n$1;
70458
- return ((((f(l) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + f(r))
70459
- }
70460
- };
70461
- if ((left instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70462
- var x7 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(left);
70463
- var l$2 = x7.n$1;
70464
- return ((((f(l$2) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(right))
70465
- };
70466
- if ((right instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70467
- var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(right);
70468
- var r$3 = x9.n$1;
70469
- return ((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(left) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + f(r$3))
70470
- };
70471
- return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
70472
- });
70473
71047
  $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
70474
71048
  return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
70475
71049
  });
@@ -70507,6 +71081,9 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesLast__Lio_kaitai_s
70507
71081
  $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
70508
71082
  return (("string.reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
70509
71083
  });
71084
+ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
71085
+ return ("self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
71086
+ });
70510
71087
  $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
70511
71088
  return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
70512
71089
  });
@@ -70966,6 +71543,10 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.init___Lio_kaitai_struc
70966
71543
  this.namespaceRef$3 = ((thiz === "") ? "" : ("\\" + config.phpNamespace$1));
70967
71544
  return this
70968
71545
  });
71546
+ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
71547
+ var this$1 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
71548
+ return (("$this->" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "()")
71549
+ });
70969
71550
  $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
70970
71551
  return this.doByteArrayNonLiteral__sc_Seq__T(elts)
70971
71552
  });
@@ -71140,6 +71721,9 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.arraySize__Lio_kaitai_s
71140
71721
  $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
71141
71722
  return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
71142
71723
  });
71724
+ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
71725
+ return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
71726
+ });
71143
71727
  $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doByteArrayLiteral__sc_Seq__T = (function(arr) {
71144
71728
  return (("\"" + $m_Lio_kaitai_struct_Utils$().hexEscapeByteArray__sc_Seq__T(arr)) + "\"")
71145
71729
  });
@@ -71176,9 +71760,6 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.numericBinOp__Lio_kaita
71176
71760
  }
71177
71761
  }
71178
71762
  });
71179
- $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
71180
- return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
71181
- });
71182
71763
  $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
71183
71764
  return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
71184
71765
  });
@@ -72439,7 +73020,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.newVector__Lio_kaitai_struc
72439
73020
  }
72440
73021
  });
72441
73022
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
72442
- return ("p_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
73023
+ return ("p_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
72443
73024
  });
72444
73025
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.PrivateAccess$lzycompute$1__p2__V = (function() {
72445
73026
  if ((this.PrivateAccess$module$2 === null)) {
@@ -72491,10 +73072,17 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchCasesUsingIf__Lio_kai
72491
73072
  });
72492
73073
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
72493
73074
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
72494
- this.outHdr$2.puts__T__V((((this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false) + " ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "();"));
72495
- var this$1 = this.outSrc$2;
72496
- this$1.sb$2.append__T__scm_StringBuilder("\n");
72497
- this.outSrc$2.puts__T__V((((((this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), true) + " ") + $m_Lio_kaitai_struct_languages_CppCompiler$().types2class__sci_List__T(className)) + "::") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
73075
+ var jsx$2 = this.outHdr$2;
73076
+ var jsx$1 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false);
73077
+ var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
73078
+ jsx$2.puts__T__V((((jsx$1 + " ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "();"));
73079
+ var this$2 = this.outSrc$2;
73080
+ this$2.sb$2.append__T__scm_StringBuilder("\n");
73081
+ var jsx$5 = this.outSrc$2;
73082
+ var jsx$4 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), true);
73083
+ var jsx$3 = $m_Lio_kaitai_struct_languages_CppCompiler$().types2class__sci_List__T(className);
73084
+ var this$3 = $m_Lio_kaitai_struct_languages_CppCompiler$();
73085
+ jsx$5.puts__T__V((((((jsx$4 + " ") + jsx$3) + "::") + this$3.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
72498
73086
  this.outSrc$2.inc__V()
72499
73087
  });
72500
73088
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructMember__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__Lio_kaitai_struct_datatype_NeedRaw__V = (function(id, innerType, isArray, needRaw) {
@@ -72544,7 +73132,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructVector__T__T__V = (
72544
73132
  this.outSrc$2.puts__T__V("}")
72545
73133
  });
72546
73134
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
72547
- return ("m_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
73135
+ return ("m_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
72548
73136
  });
72549
73137
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
72550
73138
  this.outSrc$2.puts__T__V("{");
@@ -73018,38 +73606,6 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrInit__Lio_kaitai_struct
73018
73606
  this.outSrc$2.puts__T__V((((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attr.id__Lio_kaitai_struct_format_Identifier()) + " = ") + this.nullPtr__T()) + ";"))
73019
73607
  }
73020
73608
  });
73021
- $c_Lio_kaitai_struct_languages_CppCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
73022
- if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
73023
- var x2 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
73024
- var inner = x2.innerId$2;
73025
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
73026
- } else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
73027
- var x3 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
73028
- var inner$2 = x3.innerId$2;
73029
- return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner$2))
73030
- } else if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
73031
- var x5 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
73032
- $m_Lio_kaitai_struct_Utils$();
73033
- var s = x5.name$2;
73034
- return s
73035
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
73036
- var x6 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
73037
- $m_Lio_kaitai_struct_Utils$();
73038
- var s$1 = x6.name$2;
73039
- return s$1
73040
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
73041
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
73042
- var idx = x4.idx$2;
73043
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
73044
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
73045
- var x7 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
73046
- $m_Lio_kaitai_struct_Utils$();
73047
- var s$2 = x7.name$2;
73048
- return s$2
73049
- } else {
73050
- throw new $c_s_MatchError().init___O(id)
73051
- }
73052
- });
73053
73609
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.classDestructorHeader__sci_List__Lio_kaitai_struct_datatype_DataType__sci_List__V = (function(name, parentType, topClassName) {
73054
73610
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$());
73055
73611
  this.outHdr$2.puts__T__V("void _clean_up();");
@@ -73102,13 +73658,13 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructWithSafeguardHeader
73102
73658
  this.outSrc$2.inc__V()
73103
73659
  });
73104
73660
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
73105
- var lenVar = ("l_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id));
73661
+ var lenVar = ("l_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
73106
73662
  this.outSrc$2.puts__T__V((((("const int " + lenVar) + " = ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ";"));
73107
73663
  this.outSrc$2.puts__T__V((("for (int i = 0; i < " + lenVar) + "; i++) {"));
73108
73664
  this.outSrc$2.inc__V()
73109
73665
  });
73110
73666
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
73111
- return ("_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
73667
+ return ("_t_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
73112
73668
  });
73113
73669
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$ = (function() {
73114
73670
  if ((this.PrivateAccess$module$2 === null)) {
@@ -73725,7 +74281,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrProcess__Lio_kaitai_str
73725
74281
  var jsx$1 = b.result__O()
73726
74282
  };
73727
74283
  var procClass = $as_sc_TraversableOnce(jsx$1).mkString__T__T("::");
73728
- var procName$2 = ("_process_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
74284
+ var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
73729
74285
  this.importListSrc$2.addLocal__T__V(this.outFileNameHeader__T__T($as_T($f_sc_LinearSeqOptimized__last__O(name))));
73730
74286
  var jsx$2 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2$1) {
73731
74287
  return (function(e$2) {
@@ -73748,7 +74304,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrProcess__Lio_kaitai_str
73748
74304
  $f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, varDest, expr$2, rep, false)
73749
74305
  });
73750
74306
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(ksName) {
73751
- return ("f_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
74307
+ return ("f_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
73752
74308
  });
73753
74309
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.translator__Lio_kaitai_struct_translators_BaseTranslator = (function() {
73754
74310
  return this.translator$2
@@ -73789,7 +74345,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.allocateIO__Lio_kaitai_stru
73789
74345
  var ioName = (this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(ioId) + ".get()")
73790
74346
  }
73791
74347
  } else {
73792
- var localIO = ("io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id));
74348
+ var localIO = ("io_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
73793
74349
  this.outSrc$2.puts__T__V((((("kaitai::kstream* " + localIO) + " = ") + newStreamRaw) + ";"));
73794
74350
  var x$9 = this.config$1.cppConfig$1.pointers$1;
73795
74351
  var x$10 = $m_Lio_kaitai_struct_CppRuntimeConfig$UniqueAndRawPointers$();
@@ -73806,7 +74362,10 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.declareNullFlag__Lio_kaitai
73806
74362
  if (isNullable) {
73807
74363
  this.outHdr$2.puts__T__V((("bool " + this.nullFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"));
73808
74364
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
73809
- this.outHdr$2.puts__T__V((((((("bool _is_null_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "(); return ") + this.nullFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; };"));
74365
+ var jsx$2 = this.outHdr$2;
74366
+ var jsx$1 = $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName);
74367
+ var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
74368
+ jsx$2.puts__T__V((((((("bool _is_null_" + jsx$1) + "() { ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "(); return ") + this.nullFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; };"));
73810
74369
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$())
73811
74370
  }
73812
74371
  });
@@ -73888,10 +74447,13 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.fileHeader__T__V = (functio
73888
74447
  });
73889
74448
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
73890
74449
  this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
73891
- this.outHdr$2.puts__T__V((((((this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false) + " ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() const { return ") + this.nonOwningPointer__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T(attrName, attrType)) + "; }"))
74450
+ var jsx$2 = this.outHdr$2;
74451
+ var jsx$1 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false);
74452
+ var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
74453
+ jsx$2.puts__T__V((((((jsx$1 + " ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() const { return ") + this.nonOwningPointer__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T(attrName, attrType)) + "; }"))
73892
74454
  });
73893
74455
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.nullFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(ksName) {
73894
- return ("n_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
74456
+ return ("n_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
73895
74457
  });
73896
74458
  $c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
73897
74459
  this.outSrc$2.puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
@@ -73996,6 +74558,25 @@ function $f_sc_IndexedSeqOptimized__reverse__O($thiz) {
73996
74558
  };
73997
74559
  return b.result__O()
73998
74560
  }
74561
+ function $f_sc_IndexedSeqOptimized__find__F1__s_Option($thiz, p) {
74562
+ var len = $thiz.length__I();
74563
+ var i = 0;
74564
+ while (true) {
74565
+ if ((i < len)) {
74566
+ var arg1 = $thiz.apply__I__O(i);
74567
+ var jsx$1 = (!$uZ(p.apply__O__O(arg1)))
74568
+ } else {
74569
+ var jsx$1 = false
74570
+ };
74571
+ if (jsx$1) {
74572
+ i = ((1 + i) | 0)
74573
+ } else {
74574
+ break
74575
+ }
74576
+ };
74577
+ var i$1 = i;
74578
+ return ((i$1 < $thiz.length__I()) ? new $c_s_Some().init___O($thiz.apply__I__O(i$1)) : $m_s_None$())
74579
+ }
73999
74580
  function $f_sc_IndexedSeqOptimized__last__O($thiz) {
74000
74581
  return (($thiz.length__I() > 0) ? $thiz.apply__I__O((((-1) + $thiz.length__I()) | 0)) : $f_sc_TraversableLike__last__O($thiz))
74001
74582
  }
@@ -74025,12 +74606,12 @@ function $f_sc_IndexedSeqOptimized__copyToArray__O__I__I__V($thiz, xs, start, le
74025
74606
  j = ((1 + j) | 0)
74026
74607
  }
74027
74608
  }
74028
- function $f_sc_IndexedSeqOptimized__takeRight__I__O($thiz, n) {
74029
- return $thiz.slice__I__I__O((($thiz.length__I() - ((n > 0) ? n : 0)) | 0), $thiz.length__I())
74030
- }
74031
74609
  function $f_sc_IndexedSeqOptimized__dropRight__I__O($thiz, n) {
74032
74610
  return $thiz.slice__I__I__O(0, (($thiz.length__I() - ((n > 0) ? n : 0)) | 0))
74033
74611
  }
74612
+ function $f_sc_IndexedSeqOptimized__takeRight__I__O($thiz, n) {
74613
+ return $thiz.slice__I__I__O((($thiz.length__I() - ((n > 0) ? n : 0)) | 0), $thiz.length__I())
74614
+ }
74034
74615
  function $f_sc_IndexedSeqOptimized__reduceLeft__F2__O($thiz, op) {
74035
74616
  if (($thiz.length__I() > 0)) {
74036
74617
  var start = 1;
@@ -74105,6 +74686,16 @@ function $f_sc_LinearSeqOptimized__foldLeft__O__F2__O($thiz, z, op) {
74105
74686
  };
74106
74687
  return acc
74107
74688
  }
74689
+ function $f_sc_LinearSeqOptimized__find__F1__s_Option($thiz, p) {
74690
+ var these = $thiz;
74691
+ while ((!these.isEmpty__Z())) {
74692
+ if ($uZ(p.apply__O__O(these.head__O()))) {
74693
+ return new $c_s_Some().init___O(these.head__O())
74694
+ };
74695
+ these = $as_sc_LinearSeqOptimized(these.tail__O())
74696
+ };
74697
+ return $m_s_None$()
74698
+ }
74108
74699
  function $f_sc_LinearSeqOptimized__length__I($thiz) {
74109
74700
  var these = $thiz;
74110
74701
  var len = 0;
@@ -74139,13 +74730,6 @@ function $f_sc_LinearSeqOptimized__contains__O__Z($thiz, elem) {
74139
74730
  function $f_sc_LinearSeqOptimized__isDefinedAt__I__Z($thiz, x) {
74140
74731
  return ((x >= 0) && ($f_sc_LinearSeqOptimized__lengthCompare__I__I($thiz, x) > 0))
74141
74732
  }
74142
- function $f_sc_LinearSeqOptimized__reduceLeft__F2__O($thiz, op) {
74143
- if ($thiz.isEmpty__Z()) {
74144
- throw new $c_jl_UnsupportedOperationException().init___T("empty.reduceLeft")
74145
- } else {
74146
- return $as_sc_LinearSeqOptimized($thiz.tail__O()).foldLeft__O__F2__O($thiz.head__O(), op)
74147
- }
74148
- }
74149
74733
  function $f_sc_LinearSeqOptimized__loop$1__psc_LinearSeqOptimized__I__sc_LinearSeqOptimized__I__I($thiz, i, xs, len$1) {
74150
74734
  _loop: while (true) {
74151
74735
  if ((i === len$1)) {
@@ -74161,6 +74745,13 @@ function $f_sc_LinearSeqOptimized__loop$1__psc_LinearSeqOptimized__I__sc_LinearS
74161
74745
  }
74162
74746
  }
74163
74747
  }
74748
+ function $f_sc_LinearSeqOptimized__reduceLeft__F2__O($thiz, op) {
74749
+ if ($thiz.isEmpty__Z()) {
74750
+ throw new $c_jl_UnsupportedOperationException().init___T("empty.reduceLeft")
74751
+ } else {
74752
+ return $as_sc_LinearSeqOptimized($thiz.tail__O()).foldLeft__O__F2__O($thiz.head__O(), op)
74753
+ }
74754
+ }
74164
74755
  function $is_sc_LinearSeqOptimized(obj) {
74165
74756
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sc_LinearSeqOptimized)))
74166
74757
  }
@@ -74413,7 +75004,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.switchEnd__V = (function() {
74413
75004
  });
74414
75005
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
74415
75006
  this.out$2.puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName) + " bool"));
74416
- this.out$2.puts__T__V(((this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + " ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(attrType)))
75007
+ this.out$2.puts__T__V((($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + " ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(attrType)))
74417
75008
  });
74418
75009
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
74419
75010
  this.out$2.puts__T__V("for i := 1;; i++ {");
@@ -74454,12 +75045,12 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrParseHybrid__F0__F0__V =
74454
75045
  this.out$2.puts__T__V("}")
74455
75046
  });
74456
75047
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
74457
- this.out$2.puts__T__V((((((("func (this *" + $m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T(className)) + ") ") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "() (v ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)) + ", err error) {"));
75048
+ this.out$2.puts__T__V((((((("func (this *" + $m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T(className)) + ") ") + $m_Lio_kaitai_struct_languages_GoCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "() (v ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)) + ", err error) {"));
74458
75049
  this.out$2.inc__V();
74459
75050
  this.translator$2.returnRes$2 = new $c_s_Some().init___O(((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) ? "0" : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) ? "false" : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) ? "\"\"" : "nil"))))
74460
75051
  });
74461
75052
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
74462
- return ("this." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
75053
+ return ("this." + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
74463
75054
  });
74464
75055
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
74465
75056
  var this$1 = this.importList$2;
@@ -74531,6 +75122,13 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateExpr__Lio_kaitai
74531
75122
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatEosFooter__V = (function() {
74532
75123
  this.universalFooter__V()
74533
75124
  });
75125
+ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.blockScopeHeader__V = (function() {
75126
+ this.out$2.puts__T__V("{");
75127
+ this.out$2.inc__V()
75128
+ });
75129
+ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.blockScopeFooter__V = (function() {
75130
+ this.universalFooter__V()
75131
+ });
74534
75132
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.pushPos__T__V = (function(io) {
74535
75133
  this.out$2.puts__T__V((("_pos, err := " + io) + ".Pos()"));
74536
75134
  this.translator$2.outAddErrCheck__V()
@@ -74584,9 +75182,10 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.classConstructorHeader__sci_
74584
75182
  var arg1$3 = these$1.head__O();
74585
75183
  var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
74586
75184
  var jsx$3 = this.out$2;
74587
- var jsx$2 = this.idToStr__Lio_kaitai_struct_format_Identifier__T(p$3.id$1);
74588
75185
  var id$1 = p$3.id$1;
74589
- jsx$3.puts__T__V((((jsx$2 + ": ") + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(id$1.humanReadable__T())) + ","));
75186
+ var jsx$2 = $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1);
75187
+ var id$2 = p$3.id$1;
75188
+ jsx$3.puts__T__V((((jsx$2 + ": ") + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(id$2.humanReadable__T())) + ","));
74590
75189
  var this$4 = these$1;
74591
75190
  these$1 = this$4.tail__sci_List()
74592
75191
  };
@@ -74675,36 +75274,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrParse2$default$7__s_Opti
74675
75274
  return $m_s_None$()
74676
75275
  });
74677
75276
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
74678
- $m_s_Predef$().$$qmark$qmark$qmark__sr_Nothing$()
74679
- });
74680
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
74681
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
74682
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
74683
- var name = x2.name$2;
74684
- return name
74685
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
74686
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
74687
- var name$2 = x3.name$2;
74688
- return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
74689
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
74690
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
74691
- var idx = x4.idx$2;
74692
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
74693
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
74694
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
74695
- var name$3 = x5.name$2;
74696
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
74697
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
74698
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
74699
- var innerId = x6.innerId$2;
74700
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
74701
- } else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
74702
- var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
74703
- var innerId$2 = x7.innerId$2;
74704
- return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
74705
- } else {
74706
- throw new $c_s_MatchError().init___O(id)
74707
- }
75277
+ this.out$2.puts__T__V(((id + " := ") + expr))
74708
75278
  });
74709
75279
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
74710
75280
  this.out$2.puts__T__V((("for i := 0; i < int(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + "); i++ {"));
@@ -74737,7 +75307,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.type2class__T__T = (function
74737
75307
  return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
74738
75308
  });
74739
75309
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attributeDeclaration__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
74740
- this.out$2.puts__T__V(((this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + " ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(attrType)));
75310
+ this.out$2.puts__T__V((($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + " ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(attrType)));
74741
75311
  this.translator$2.returnRes$2 = $m_s_None$()
74742
75312
  });
74743
75313
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
@@ -74777,7 +75347,11 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.readHeader__s_Option__Z__V =
74777
75347
  var p5 = $as_Lio_kaitai_struct_datatype_Endianness(x2.value$2);
74778
75348
  var x$3 = $m_Lio_kaitai_struct_datatype_InheritedEndian$();
74779
75349
  if ((x$3 === p5)) {
74780
- this.out$2.puts__T__V((((((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_EndianIdentifier$()) + " = ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_ParentIdentifier$())) + ".") + "") + this.idToStr__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_EndianIdentifier$())));
75350
+ var jsx$6 = this.out$2;
75351
+ var jsx$5 = this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_EndianIdentifier$());
75352
+ var jsx$4 = this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_ParentIdentifier$());
75353
+ var id = $m_Lio_kaitai_struct_format_EndianIdentifier$();
75354
+ jsx$6.puts__T__V((((((jsx$5 + " = ") + jsx$4) + ".") + "") + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)));
74781
75355
  break matchEnd10
74782
75356
  }
74783
75357
  }
@@ -74922,7 +75496,9 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.classFooter__sci_List__V = (
74922
75496
  var jsx$1 = false
74923
75497
  };
74924
75498
  if (jsx$1) {
74925
- this.out$2.puts__T__V((this.idToStr__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_EndianIdentifier$()) + " int"))
75499
+ var jsx$2 = this.out$2;
75500
+ var id = $m_Lio_kaitai_struct_format_EndianIdentifier$();
75501
+ jsx$2.puts__T__V(($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id) + " int"))
74926
75502
  };
74927
75503
  this.universalFooter__V()
74928
75504
  });
@@ -74952,40 +75528,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugEnd__Lio_kaitai_str
74952
75528
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.castToType__p2__Lio_kaitai_struct_translators_TranslatorResult__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_TranslatorResult = (function(r, dataType) {
74953
75529
  return (((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntMultiType) || (dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatMultiType)) ? new $c_Lio_kaitai_struct_translators_ResultString().init___T(((($m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType) + "(") + this.translator$2.resToStr__Lio_kaitai_struct_translators_TranslatorResult__T(r)) + ")")) : r)
74954
75530
  });
74955
- $c_Lio_kaitai_struct_languages_GoCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
74956
- var x = $m_Lio_kaitai_struct_format_IoIdentifier$();
74957
- if (x.equals__O__Z(id)) {
74958
- return "_IO"
74959
- } else {
74960
- var x$3 = $m_Lio_kaitai_struct_format_RootIdentifier$();
74961
- if (x$3.equals__O__Z(id)) {
74962
- return "_Root"
74963
- } else {
74964
- var x$5 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
74965
- if (x$5.equals__O__Z(id)) {
74966
- return "_Parent"
74967
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
74968
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
74969
- var name = x2.name$2;
74970
- return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
74971
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
74972
- var x3 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
74973
- var idx = x3.idx$2;
74974
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
74975
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
74976
- var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
74977
- var name$2 = x4.name$2;
74978
- return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
74979
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
74980
- var x5 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
74981
- var innerId = x5.innerId$2;
74982
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
74983
- } else {
74984
- throw new $c_s_MatchError().init___O(id)
74985
- }
74986
- }
74987
- }
74988
- });
74989
75531
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.condIfFooter__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
74990
75532
  this.universalFooter__V()
74991
75533
  });
@@ -75089,7 +75631,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.handleAssignmentRepeatEos__L
75089
75631
  this.out$2.puts__T__V((((((name + " = append(") + name) + ", ") + expr) + ")"))
75090
75632
  });
75091
75633
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
75092
- return ("_f_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
75634
+ return ("_f_" + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
75093
75635
  });
75094
75636
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.translator__Lio_kaitai_struct_translators_AbstractTranslator = (function() {
75095
75637
  return this.translator$2
@@ -75173,7 +75715,8 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceCalculate__Lio_kaita
75173
75715
  });
75174
75716
  $c_Lio_kaitai_struct_languages_GoCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
75175
75717
  this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
75176
- var ioName = this.idToStr__Lio_kaitai_struct_format_Identifier__T(new $c_Lio_kaitai_struct_format_IoStorageIdentifier().init___Lio_kaitai_struct_format_Identifier(varName));
75718
+ var id = new $c_Lio_kaitai_struct_format_IoStorageIdentifier().init___Lio_kaitai_struct_format_Identifier(varName);
75719
+ var ioName = $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id);
75177
75720
  var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.specialName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep));
75178
75721
  var this$1 = this.importList$2;
75179
75722
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "bytes");
@@ -75293,7 +75836,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.condRepeatCommonInit
75293
75836
  };
75294
75837
  this.out$2.puts__T__V((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + " = [];"));
75295
75838
  if (this.config$1.readStoresPos$1) {
75296
- this.out$2.puts__T__V((("this._debug." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + ".arr = [];"))
75839
+ this.out$2.puts__T__V((("this._debug." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + ".arr = [];"))
75297
75840
  }
75298
75841
  });
75299
75842
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrParseHybrid__F0__F0__V = (function(leProc, beProc) {
@@ -75311,15 +75854,17 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.switchCasesUsingIf__
75311
75854
  $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCasesUsingIf__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__sci_Map__F1__F1__V(this, id, on, onType, cases, normalCaseProc, elseCaseProc)
75312
75855
  });
75313
75856
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
75314
- var jsx$1 = this.out$2;
75857
+ var jsx$2 = this.out$2;
75315
75858
  var name = $as_T($f_sc_LinearSeqOptimized__last__O(className));
75316
- jsx$1.puts__T__V((((("Object.defineProperty(" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)) + ".prototype, '") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "', {"));
75859
+ var jsx$1 = $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name);
75860
+ var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
75861
+ jsx$2.puts__T__V((((("Object.defineProperty(" + jsx$1) + ".prototype, '") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', {"));
75317
75862
  this.out$2.inc__V();
75318
75863
  this.out$2.puts__T__V("get: function() {");
75319
75864
  this.out$2.inc__V()
75320
75865
  });
75321
75866
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
75322
- return ("this." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
75867
+ return ("this." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
75323
75868
  });
75324
75869
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
75325
75870
  this.out$2.puts__T__V("{");
@@ -75397,7 +75942,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.classConstructorHead
75397
75942
  return (function(p$2) {
75398
75943
  var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
75399
75944
  var id = p.id$1;
75400
- return $this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
75945
+ return $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
75401
75946
  })
75402
75947
  })(this);
75403
75948
  var this$1 = $m_sci_List$();
@@ -75448,7 +75993,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.classConstructorHead
75448
75993
  var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
75449
75994
  var jsx$4 = p$3.id$1;
75450
75995
  var id$1 = p$3.id$1;
75451
- this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$4, this.idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
75996
+ this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$4, $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
75452
75997
  var this$4 = these$1;
75453
75998
  these$1 = this$4.tail__sci_List()
75454
75999
  };
@@ -75763,37 +76308,12 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrParse2$default$7
75763
76308
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
75764
76309
  this.out$2.puts__T__V((((("var " + id) + " = ") + expr) + ";"))
75765
76310
  });
75766
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
75767
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
75768
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
75769
- var name = x2.name$2;
75770
- return name
75771
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
75772
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
75773
- var name$2 = x3.name$2;
75774
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
75775
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
75776
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
75777
- var idx = x4.idx$2;
75778
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
75779
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
75780
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
75781
- var name$3 = x5.name$2;
75782
- return ("_m_" + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3))
75783
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
75784
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
75785
- var innerId = x6.innerId$2;
75786
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
75787
- } else {
75788
- throw new $c_s_MatchError().init___O(id)
75789
- }
75790
- });
75791
76311
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
75792
76312
  this.out$2.puts__T__V((("for (var i = 0; i < " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + "; i++) {"));
75793
76313
  this.out$2.inc__V()
75794
76314
  });
75795
76315
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
75796
- return ("_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
76316
+ return ("_t_" + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
75797
76317
  });
75798
76318
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.alignToByte__T__V = (function(io) {
75799
76319
  this.out$2.puts__T__V((io + ".alignToByte();"))
@@ -76009,19 +76529,6 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugEnd__Lio_ka
76009
76529
  var debugName = this.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T(attrId, rep, true);
76010
76530
  this.out$2.puts__T__V((((debugName + ".end = ") + io) + ".pos;"))
76011
76531
  });
76012
- $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
76013
- if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
76014
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
76015
- var name = x2.name$2;
76016
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)
76017
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
76018
- var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
76019
- var name$2 = x3.name$2;
76020
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
76021
- } else {
76022
- throw new $c_s_MatchError().init___O(id)
76023
- }
76024
- });
76025
76532
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
76026
76533
  if ((padRight instanceof $c_s_Some)) {
76027
76534
  var x2 = $as_s_Some(padRight);
@@ -76209,7 +76716,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugName__Lio_k
76209
76716
  };
76210
76717
  var arrIndexExpr = ((((".arr[" + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrId)) + ".length") + (end ? " - 1" : "")) + "]")
76211
76718
  };
76212
- return (("this._debug." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId)) + arrIndexExpr)
76719
+ return (("this._debug." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId)) + arrIndexExpr)
76213
76720
  });
76214
76721
  $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) {
76215
76722
  $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)
@@ -76218,7 +76725,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.outHeader__Lio_kaita
76218
76725
  return this.outHeader$2
76219
76726
  });
76220
76727
  $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
76221
- var langName = this.idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
76728
+ var langName = $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
76222
76729
  this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
76223
76730
  var ioName = ("_io_" + langName);
76224
76731
  var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep);
@@ -76321,7 +76828,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.condRepeatEosHeader__Lio_ka
76321
76828
  this.out$2.inc__V()
76322
76829
  });
76323
76830
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
76324
- return ("$" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
76831
+ return ("$" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
76325
76832
  });
76326
76833
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
76327
76834
  if ((attrType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
@@ -76402,7 +76909,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrParseHybrid__F0__F0__V
76402
76909
  this.out$2.puts__T__V("}")
76403
76910
  });
76404
76911
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
76405
- this.out$2.puts__T__V((("public function " + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
76912
+ this.out$2.puts__T__V((("public function " + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
76406
76913
  this.out$2.inc__V()
76407
76914
  });
76408
76915
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
@@ -76418,7 +76925,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.privateMemberName__Lio_kait
76418
76925
  if (x$5.equals__O__Z(id)) {
76419
76926
  return "$this->_parent"
76420
76927
  } else {
76421
- return ("$this->_m_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
76928
+ return ("$this->_m_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
76422
76929
  }
76423
76930
  }
76424
76931
  }
@@ -76688,31 +77195,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrParse2$default$7__s_Opt
76688
77195
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
76689
77196
  this.out$2.puts__T__V((((id + " = ") + expr) + ";"))
76690
77197
  });
76691
- $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
76692
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
76693
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
76694
- var name = x2.name$2;
76695
- return name
76696
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
76697
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
76698
- var name$2 = x3.name$2;
76699
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
76700
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
76701
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
76702
- var idx = x4.idx$2;
76703
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
76704
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
76705
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
76706
- var name$3 = x5.name$2;
76707
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
76708
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
76709
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
76710
- var innerId = x6.innerId$2;
76711
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
76712
- } else {
76713
- throw new $c_s_MatchError().init___O(id)
76714
- }
76715
- });
76716
77198
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
76717
77199
  this.out$2.puts__T__V((("$n = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ";"));
76718
77200
  this.out$2.puts__T__V("for ($i = 0; $i < $n; $i++) {");
@@ -76722,7 +77204,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.alignToByte__T__V = (functi
76722
77204
  this.out$2.puts__T__V((io + "->alignToByte();"))
76723
77205
  });
76724
77206
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
76725
- return ("$_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
77207
+ return ("$_t_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
76726
77208
  });
76727
77209
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
76728
77210
  return this.out$2
@@ -76753,7 +77235,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attributeDeclaration__Lio_k
76753
77235
  }
76754
77236
  };
76755
77237
  if ((!jsx$1)) {
76756
- this.out$2.puts__T__V((("protected $_m_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
77238
+ this.out$2.puts__T__V((("protected $_m_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
76757
77239
  }
76758
77240
  });
76759
77241
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.io$kaitai$struct$languages$components$SingleOutputFile$$undsetter$und$out$und$eq__Lio_kaitai_struct_StringLanguageOutputWriter__V = (function(x$1) {
@@ -77081,7 +77563,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceCalculate__Lio_kait
77081
77563
  });
77082
77564
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
77083
77565
  this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
77084
- var ioName = ("$_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id));
77566
+ var ioName = ("$_io_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
77085
77567
  var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doLocalName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep));
77086
77568
  this.out$2.puts__T__V((((ioName + " = new \\Kaitai\\Struct\\Stream(") + args) + ");"));
77087
77569
  return ioName
@@ -77095,7 +77577,9 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attributeReader__Lio_kaitai
77095
77577
  var jsx$1 = x$3.equals__O__Z(attrName)
77096
77578
  };
77097
77579
  if ((!jsx$1)) {
77098
- this.out$2.puts__T__V((((("public function " + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { return ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; }"))
77580
+ var jsx$2 = this.out$2;
77581
+ var this$1 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
77582
+ jsx$2.puts__T__V((((("public function " + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { return ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; }"))
77099
77583
  }
77100
77584
  });
77101
77585
  $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.fileHeader__T__V = (function(topClassName) {
@@ -77192,7 +77676,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.switchIfStart__Lio_kaitai_
77192
77676
  this.out$2.puts__T__V((("my $_on = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ";"))
77193
77677
  });
77194
77678
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
77195
- return (("$self->{" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "}")
77679
+ return (("$self->{" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "}")
77196
77680
  });
77197
77681
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
77198
77682
  this.out$2.puts__T__V((((io + "->seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ");"))
@@ -77359,32 +77843,8 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentTempVar__L
77359
77843
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attrParse2$default$7__s_Option = (function() {
77360
77844
  return $m_s_None$()
77361
77845
  });
77362
- $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
77363
- if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
77364
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
77365
- var name = x2.name$2;
77366
- return name
77367
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
77368
- var x3 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
77369
- var idx = x3.idx$2;
77370
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
77371
- } else if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
77372
- var x6 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
77373
- return x6.name$2
77374
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
77375
- var x4 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
77376
- var inner = x4.innerId$2;
77377
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
77378
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
77379
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
77380
- var name$2 = x5.name$2;
77381
- return name$2
77382
- } else {
77383
- throw new $c_s_MatchError().init___O(id)
77384
- }
77385
- });
77386
77846
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
77387
- var nVar = ("$n_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id));
77847
+ var nVar = ("$n_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
77388
77848
  this.out$2.puts__T__V((((("my " + nVar) + " = ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ";"));
77389
77849
  this.out$2.puts__T__V((("for (my $i = 0; $i < " + nVar) + "; $i++) {"));
77390
77850
  this.out$2.inc__V()
@@ -77393,7 +77853,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.alignToByte__T__V = (funct
77393
77853
  this.out$2.puts__T__V((io + "->align_to_byte();"))
77394
77854
  });
77395
77855
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
77396
- return ("$_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
77856
+ return ("$_t_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
77397
77857
  });
77398
77858
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
77399
77859
  return this.out$2
@@ -77706,7 +78166,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceCalculate__Lio_kai
77706
78166
  $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
77707
78167
  this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
77708
78168
  var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep));
77709
- var ioName = ("$io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id));
78169
+ var ioName = ("$io_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
77710
78170
  this.out$2.puts__T__V((((((("my " + ioName) + " = ") + $m_Lio_kaitai_struct_languages_PerlCompiler$().kstreamName__T()) + "->new(") + args) + ");"));
77711
78171
  return ioName
77712
78172
  });
@@ -77733,7 +78193,9 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attributeReader__Lio_kaita
77733
78193
  if ((!jsx$1)) {
77734
78194
  var this$1 = this.out$2;
77735
78195
  this$1.sb$2.append__T__scm_StringBuilder("\n");
77736
- this.out$2.puts__T__V((("sub " + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + " {"));
78196
+ var jsx$2 = this.out$2;
78197
+ var this$2 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
78198
+ jsx$2.puts__T__V((("sub " + this$2.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + " {"));
77737
78199
  this.out$2.inc__V();
77738
78200
  this.out$2.puts__T__V("my ($self) = @_;");
77739
78201
  this.out$2.puts__T__V((("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"));
@@ -78760,7 +79222,7 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.switchEnd__V = (function
78760
79222
  this.out$2.puts__T__V("}")
78761
79223
  });
78762
79224
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
78763
- this.out$2.puts__T__V(((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(dataType, isNullable)) + " ") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)));
79225
+ this.out$2.puts__T__V(((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(dataType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)));
78764
79226
  this.out$2.puts__T__V("{");
78765
79227
  this.out$2.inc__V();
78766
79228
  this.out$2.puts__T__V("get");
@@ -79321,33 +79783,6 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attributeDoc__Lio_kaitai
79321
79783
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrName, attrType, io, repeat) {
79322
79784
  /*<skip>*/
79323
79785
  });
79324
- $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
79325
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
79326
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
79327
- var name = x2.name$2;
79328
- return ("M" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name))
79329
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
79330
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
79331
- var name$2 = x3.name$2;
79332
- return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
79333
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
79334
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
79335
- var idx = x4.idx$2;
79336
- var x = $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1;
79337
- var this$2 = new $c_sci_StringOps().init___T(x);
79338
- return (($f_sci_StringLike__capitalize__T(this$2) + "_") + idx)
79339
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
79340
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
79341
- var name$3 = x5.name$2;
79342
- return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$3)
79343
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
79344
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
79345
- var innerId = x6.innerId$2;
79346
- return ("M_Raw" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
79347
- } else {
79348
- throw new $c_s_MatchError().init___O(id)
79349
- }
79350
- });
79351
79786
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
79352
79787
  if ((padRight instanceof $c_s_Some)) {
79353
79788
  var x2 = $as_s_Some(padRight);
@@ -79614,7 +80049,7 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.fileHeader__T__V = (func
79614
80049
  this.out$2.inc__V()
79615
80050
  });
79616
80051
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
79617
- this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + " { get { return ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; } }"))
80052
+ this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + " { get { return ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; } }"))
79618
80053
  });
79619
80054
  $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
79620
80055
  this.out$2.puts__T__V((this.flagForInstName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
@@ -79665,8 +80100,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatUntilFooter__Lio_
79665
80100
  this.out$2.puts__T__V("end");
79666
80101
  this.out$2.puts__T__V("i = i + 1");
79667
80102
  this.out$2.dec__V();
79668
- this.out$2.puts__T__V("end");
79669
- this.out$2.dec__V()
80103
+ this.out$2.puts__T__V("end")
79670
80104
  });
79671
80105
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchEnd__V = (function() {
79672
80106
  /*<skip>*/
@@ -79707,12 +80141,12 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchCasesUsingIf__Lio_kai
79707
80141
  $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCasesUsingIf__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__sci_Map__F1__F1__V(this, id, on, onType, cases, normalCaseProc, elseCaseProc)
79708
80142
  });
79709
80143
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
79710
- this.out$2.puts__T__V(((($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className) + ".property.") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = {}"));
79711
- this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className)) + ".property.") + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ":get()"));
80144
+ this.out$2.puts__T__V(((($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className) + ".property.") + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = {}"));
80145
+ this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className)) + ".property.") + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ":get()"));
79712
80146
  this.out$2.inc__V()
79713
80147
  });
79714
80148
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
79715
- return ("self." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
80149
+ return ("self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
79716
80150
  });
79717
80151
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
79718
80152
  this.out$2.puts__T__V(("local _on = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)))
@@ -79799,7 +80233,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorHeader__sci
79799
80233
  return (function(p$2) {
79800
80234
  var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
79801
80235
  var id = p.id$1;
79802
- return $this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
80236
+ return $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
79803
80237
  })
79804
80238
  })(this);
79805
80239
  var this$1 = $m_sci_List$();
@@ -79848,7 +80282,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorHeader__sci
79848
80282
  var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
79849
80283
  var jsx$3 = p$3.id$1;
79850
80284
  var id$1 = p$3.id$1;
79851
- this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, this.idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
80285
+ this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
79852
80286
  var this$4 = these$1;
79853
80287
  these$1 = this$4.tail__sci_List()
79854
80288
  }
@@ -79883,7 +80317,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.parseExpr__Lio_kaitai_struc
79883
80317
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType1)) {
79884
80318
  var x4 = $as_Lio_kaitai_struct_datatype_DataType$BitsType1(dataType);
79885
80319
  var bitEndian = x4.bitEndian$2;
79886
- return (((io + ":read_bits_int_") + bitEndian.toSuffix__T()) + "(1)")
80320
+ return (((io + ":read_bits_int_") + bitEndian.toSuffix__T()) + "(1) ~= 0")
79887
80321
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType)) {
79888
80322
  var x5 = $as_Lio_kaitai_struct_datatype_DataType$BitsType(dataType);
79889
80323
  var width = x5.width$3;
@@ -79974,32 +80408,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrParse2$default$7__s_Opt
79974
80408
  return $m_s_None$()
79975
80409
  });
79976
80410
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
79977
- $m_s_Predef$().$$qmark$qmark$qmark__sr_Nothing$()
79978
- });
79979
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
79980
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
79981
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
79982
- var name = x2.name$2;
79983
- return name
79984
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
79985
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
79986
- var name$2 = x3.name$2;
79987
- return name$2
79988
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
79989
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
79990
- var idx = x4.idx$2;
79991
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
79992
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
79993
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
79994
- var name$3 = x5.name$2;
79995
- return ("_m_" + name$3)
79996
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
79997
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
79998
- var innerId = x6.innerId$2;
79999
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
80000
- } else {
80001
- throw new $c_s_MatchError().init___O(id)
80002
- }
80411
+ this.out$2.puts__T__V(((("local " + id) + " = ") + expr))
80003
80412
  });
80004
80413
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
80005
80414
  this.out$2.puts__T__V((("for i = 0, " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + " - 1 do"));
@@ -80009,7 +80418,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.alignToByte__T__V = (functi
80009
80418
  this.out$2.puts__T__V((io + ":align_to_byte()"))
80010
80419
  });
80011
80420
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
80012
- return ("_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
80421
+ return ("_t_" + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
80013
80422
  });
80014
80423
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
80015
80424
  return this.out$2
@@ -80022,7 +80431,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchCaseEnd__V = (functio
80022
80431
  });
80023
80432
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatUntil__Lio_kaitai_struct_format_Identifier__T__Z__V = (function(id, expr, isRaw) {
80024
80433
  var s = (isRaw ? $m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 : $m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1);
80025
- this.out$2.puts__T__V(((s + " = ") + expr));
80434
+ this.out$2.puts__T__V(((("local " + s) + " = ") + expr));
80026
80435
  this.out$2.puts__T__V(((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + "[i + 1] = ") + s))
80027
80436
  });
80028
80437
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.opaqueClassDeclaration__Lio_kaitai_struct_format_ClassSpec__V = (function(classSpec) {
@@ -80050,11 +80459,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatEos__
80050
80459
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatExpr__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
80051
80460
  this.out$2.puts__T__V(((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + "[i + 1] = ") + expr))
80052
80461
  });
80053
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classHeader__sci_List__V = (function(name) {
80054
- this.out$2.puts__T__V(($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(name) + " = class.class(KaitaiStruct)"));
80055
- var this$1 = this.out$2;
80056
- this$1.sb$2.append__T__scm_StringBuilder("\n")
80057
- });
80058
80462
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.readHeader__s_Option__Z__V = (function(endian, isEmpty) {
80059
80463
  if ((endian instanceof $c_s_Some)) {
80060
80464
  var x2 = $as_s_Some(endian);
@@ -80070,6 +80474,11 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.readHeader__s_Option__Z__V
80070
80474
  this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(this.typeProvider$1.nowClass$1.name$1)) + ":_read") + suffix) + "()"));
80071
80475
  this.out$2.inc__V()
80072
80476
  });
80477
+ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classHeader__sci_List__V = (function(name) {
80478
+ this.out$2.puts__T__V(($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(name) + " = class.class(KaitaiStruct)"));
80479
+ var this$1 = this.out$2;
80480
+ this$1.sb$2.append__T__scm_StringBuilder("\n")
80481
+ });
80073
80482
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.results__Lio_kaitai_struct_format_ClassSpec__sci_Map = (function(topClass) {
80074
80483
  return $f_Lio_kaitai_struct_languages_components_SingleOutputFile__results__Lio_kaitai_struct_format_ClassSpec__sci_Map(this, topClass)
80075
80484
  });
@@ -80253,27 +80662,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attributeDoc__Lio_kaitai_st
80253
80662
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrName, attrType, io, repeat) {
80254
80663
  /*<skip>*/
80255
80664
  });
80256
- $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
80257
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
80258
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
80259
- var name = x2.name$2;
80260
- return name
80261
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
80262
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
80263
- var name$2 = x3.name$2;
80264
- return name$2
80265
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
80266
- var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
80267
- var name$3 = x4.name$2;
80268
- return name$3
80269
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
80270
- var x5 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
80271
- var innerId = x5.innerId$2;
80272
- return ("_raw_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
80273
- } else {
80274
- throw new $c_s_MatchError().init___O(id)
80275
- }
80276
- });
80277
80665
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
80278
80666
  if ((padRight instanceof $c_s_Some)) {
80279
80667
  var x2 = $as_s_Some(padRight);
@@ -80348,7 +80736,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchIfCaseFirstStart__Lio
80348
80736
  this.out$2.inc__V()
80349
80737
  });
80350
80738
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
80351
- this.out$2.puts__T__V((("if self." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " ~= nil then"));
80739
+ this.out$2.puts__T__V((("if self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " ~= nil then"));
80352
80740
  this.out$2.inc__V();
80353
80741
  this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
80354
80742
  this.out$2.dec__V();
@@ -80394,7 +80782,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrProcess__Lio_kaitai_str
80394
80782
  var x4 = $as_Lio_kaitai_struct_format_ProcessCustom(proc);
80395
80783
  var name = x4.name$1;
80396
80784
  var args = x4.args$1;
80397
- var procName$2 = ("_process_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
80785
+ var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
80398
80786
  var this$1 = this.importList$2;
80399
80787
  var s = ((("require(\"" + "") + $f_sc_LinearSeqOptimized__last__O(name)) + "\")");
80400
80788
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, s);
@@ -81423,7 +81811,8 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.debugClassSequence__sci_Li
81423
81811
  var f = (function($this) {
81424
81812
  return (function(attr$2) {
81425
81813
  var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
81426
- return (("\"" + $this.idToStr__Lio_kaitai_struct_format_Identifier__T(attr.id$1)) + "\"")
81814
+ var id = attr.id$1;
81815
+ return (("\"" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
81427
81816
  })
81428
81817
  })(this);
81429
81818
  var this$1 = $m_sci_List$();
@@ -81552,7 +81941,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceHeader__sci_List__
81552
81941
  this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($f_sc_LinearSeqOptimized__last__O(className)), instName, dataType, isNullable)
81553
81942
  });
81554
81943
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
81555
- return ("@" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
81944
+ return ("@" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
81556
81945
  });
81557
81946
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
81558
81947
  this.out$2.puts__T__V((((io + ".seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ")"))
@@ -81719,7 +82108,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugStart__Lio_kaitai
81719
82108
  if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
81720
82109
  throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
81721
82110
  };
81722
- var name = this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
82111
+ var name = $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
81723
82112
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
81724
82113
  if ((x === rep)) {
81725
82114
  this.out$2.puts__T__V((((("(@_debug['" + name) + "'] ||= {})[:start] = ") + io) + ".pos"))
@@ -81805,32 +82194,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrParse2$default$7__s_Op
81805
82194
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
81806
82195
  this.out$2.puts__T__V(((id + " = ") + expr))
81807
82196
  });
81808
- $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
81809
- if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
81810
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
81811
- var name = x2.name$2;
81812
- $m_Lio_kaitai_struct_Utils$();
81813
- return name
81814
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
81815
- var x3 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
81816
- var idx = x3.idx$2;
81817
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
81818
- } else if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
81819
- var x6 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
81820
- return x6.name$2
81821
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
81822
- var x4 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
81823
- var inner = x4.innerId$2;
81824
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
81825
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
81826
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
81827
- var name$2 = x5.name$2;
81828
- $m_Lio_kaitai_struct_Utils$();
81829
- return name$2
81830
- } else {
81831
- throw new $c_s_MatchError().init___O(id)
81832
- }
81833
- });
81834
82197
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
81835
82198
  this.out$2.puts__T__V((("(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ").times { |i|"));
81836
82199
  this.out$2.inc__V()
@@ -81839,7 +82202,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.alignToByte__T__V = (funct
81839
82202
  this.out$2.puts__T__V((io + ".align_to_byte"))
81840
82203
  });
81841
82204
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
81842
- return ("_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
82205
+ return ("_t_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
81843
82206
  });
81844
82207
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
81845
82208
  return this.out$2
@@ -82009,7 +82372,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugEnd__Lio_kaitai_s
82009
82372
  if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
82010
82373
  return (void 0)
82011
82374
  };
82012
- var name = this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
82375
+ var name = $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
82013
82376
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
82014
82377
  if ((x === rep)) {
82015
82378
  this.out$2.puts__T__V((((("(@_debug['" + name) + "'] ||= {})[:end] = ") + io) + ".pos"))
@@ -82196,7 +82559,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.classConstructorHeader__T_
82196
82559
  return (function(p$2) {
82197
82560
  var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
82198
82561
  var id = p.id$1;
82199
- return $this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
82562
+ return $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
82200
82563
  })
82201
82564
  })(this);
82202
82565
  var this$1 = $m_sci_List$();
@@ -82243,7 +82606,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.classConstructorHeader__T_
82243
82606
  var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
82244
82607
  var jsx$3 = p$3.id$1;
82245
82608
  var id$1 = p$3.id$1;
82246
- this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, this.idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
82609
+ this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
82247
82610
  var this$4 = these$1;
82248
82611
  these$1 = this$4.tail__sci_List()
82249
82612
  };
@@ -82263,7 +82626,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceCalculate__Lio_kai
82263
82626
  });
82264
82627
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
82265
82628
  this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
82266
- var ioName = ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id));
82629
+ var ioName = ("_io_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
82267
82630
  var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep);
82268
82631
  this.out$2.puts__T__V((((ioName + " = Kaitai::Struct::Stream.new(") + args) + ")"));
82269
82632
  return ioName
@@ -82293,7 +82656,9 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attributeReader__Lio_kaita
82293
82656
  var jsx$1 = x$3.equals__O__Z(attrName)
82294
82657
  };
82295
82658
  if ((!jsx$1)) {
82296
- this.out$2.puts__T__V(("attr_reader :" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)))
82659
+ var jsx$2 = this.out$2;
82660
+ var this$1 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
82661
+ jsx$2.puts__T__V(("attr_reader :" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)))
82297
82662
  }
82298
82663
  });
82299
82664
  $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.enumValue__T__T__T = (function(enumName, enumLabel) {
@@ -82504,7 +82869,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatUntilFooter__Lio
82504
82869
  this.out$2.puts__T__V("}")
82505
82870
  });
82506
82871
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
82507
- this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType)) + " ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
82872
+ this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
82508
82873
  });
82509
82874
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.switchEnd__V = (function() {
82510
82875
  this.out$2.puts__T__V("}")
@@ -82513,7 +82878,8 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.debugClassSequence__sci_Li
82513
82878
  var f = (function($this) {
82514
82879
  return (function(attr$2) {
82515
82880
  var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
82516
- return (("\"" + $this.idToStr__Lio_kaitai_struct_format_Identifier__T(attr.id$1)) + "\"")
82881
+ var id = attr.id$1;
82882
+ return (("\"" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
82517
82883
  })
82518
82884
  })(this);
82519
82885
  var this$1 = $m_sci_List$();
@@ -82551,7 +82917,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.debugClassSequence__sci_Li
82551
82917
  this.out$2.puts__T__V((("public static String[] _seqFields = new String[] { " + seqStr) + " };"))
82552
82918
  });
82553
82919
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
82554
- this.out$2.puts__T__V((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(dataType)) + " ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
82920
+ this.out$2.puts__T__V((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(dataType)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
82555
82921
  this.out$2.inc__V()
82556
82922
  });
82557
82923
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
@@ -82650,7 +83016,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__sci_List__
82650
83016
  this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($f_sc_LinearSeqOptimized__last__O(className)), instName, dataType, isNullable)
82651
83017
  });
82652
83018
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
82653
- return ("this." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
83019
+ return ("this." + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
82654
83020
  });
82655
83021
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
82656
83022
  this.out$2.puts__T__V("{");
@@ -82867,7 +83233,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugStart__Lio_kaitai
82867
83233
  if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
82868
83234
  throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
82869
83235
  };
82870
- var name = this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
83236
+ var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
82871
83237
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
82872
83238
  if ((x === rep)) {
82873
83239
  this.out$2.puts__T__V((((("_attrStart.put(\"" + name) + "\", ") + io) + ".pos());"))
@@ -82974,31 +83340,6 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.handleAssignmentTempVar__L
82974
83340
  var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
82975
83341
  jsx$1.puts__T__V((((((this$1.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(dataType) + " ") + id) + " = ") + expr) + ";"))
82976
83342
  });
82977
- $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
82978
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
82979
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
82980
- var name = x2.name$2;
82981
- return name
82982
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
82983
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
82984
- var name$2 = x3.name$2;
82985
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
82986
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
82987
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
82988
- var idx = x4.idx$2;
82989
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
82990
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
82991
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
82992
- var name$3 = x5.name$2;
82993
- return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
82994
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
82995
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
82996
- var innerId = x6.innerId$2;
82997
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
82998
- } else {
82999
- throw new $c_s_MatchError().init___O(id)
83000
- }
83001
- });
83002
83343
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
83003
83344
  this.out$2.puts__T__V((("for (int i = 0; i < " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + "; i++) {"));
83004
83345
  this.out$2.inc__V();
@@ -83006,7 +83347,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatExprHeader__Lio_
83006
83347
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "java.util.ArrayList")
83007
83348
  });
83008
83349
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
83009
- return ("_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
83350
+ return ("_t_" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
83010
83351
  });
83011
83352
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.alignToByte__T__V = (function(io) {
83012
83353
  this.out$2.puts__T__V((io + ".alignToByte();"))
@@ -83041,7 +83382,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.type2class__T__T = (functi
83041
83382
  return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
83042
83383
  });
83043
83384
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeDeclaration__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
83044
- this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
83385
+ this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
83045
83386
  });
83046
83387
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
83047
83388
  return $m_sci_Nil$()
@@ -83114,7 +83455,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.popPos__T__V = (function(i
83114
83455
  this.out$2.puts__T__V((io + ".seek(_pos);"))
83115
83456
  });
83116
83457
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
83117
- var memberName = this.idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
83458
+ var memberName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
83118
83459
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
83119
83460
  if ((x === rep)) {
83120
83461
  return memberName
@@ -83222,7 +83563,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugEnd__Lio_kaitai_s
83222
83563
  if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
83223
83564
  return (void 0)
83224
83565
  };
83225
- var name = this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
83566
+ var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
83226
83567
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
83227
83568
  if ((x === rep)) {
83228
83569
  this.out$2.puts__T__V((((("_attrEnd.put(\"" + name) + "\", ") + io) + ".pos());"))
@@ -83404,7 +83745,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrProcess__Lio_kaitai_st
83404
83745
  };
83405
83746
  var name$1 = $as_T($f_sc_LinearSeqOptimized__last__O(name));
83406
83747
  var procClass = ((namespace + jsx$1) + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$1));
83407
- var procName = ("_process_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
83748
+ var procName = ("_process_" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
83408
83749
  var jsx$3 = this.out$2;
83409
83750
  var jsx$2 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
83410
83751
  return (function(e$2) {
@@ -83462,7 +83803,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
83462
83803
  var attrType = p.dataType$1;
83463
83804
  var jsx$2 = this$1.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType);
83464
83805
  var id = p.id$1;
83465
- return ((jsx$2 + " ") + $this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
83806
+ return ((jsx$2 + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
83466
83807
  })
83467
83808
  })(this);
83468
83809
  var this$2 = $m_sci_List$();
@@ -83515,7 +83856,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
83515
83856
  return (function(p$3$2) {
83516
83857
  var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(p$3$2);
83517
83858
  var id$1 = p$3.id$1;
83518
- return this$2$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id$1)
83859
+ return $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1)
83519
83860
  })
83520
83861
  })(this);
83521
83862
  var this$7 = $m_sci_List$();
@@ -83588,7 +83929,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
83588
83929
  var p$4 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$6);
83589
83930
  var jsx$13 = p$4.id$1;
83590
83931
  var id$2 = p$4.id$1;
83591
- this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$13, this.idToStr__Lio_kaitai_struct_format_Identifier__T(id$2));
83932
+ this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$13, $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$2));
83592
83933
  var this$15 = these$2;
83593
83934
  these$2 = this$15.tail__sci_List()
83594
83935
  }
@@ -83649,7 +83990,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.outHeader__Lio_kaitai_stru
83649
83990
  return this.outHeader$2
83650
83991
  });
83651
83992
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
83652
- var javaName = this.idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
83993
+ var javaName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
83653
83994
  var ioName = ("_io_" + javaName);
83654
83995
  var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep));
83655
83996
  var this$1 = this.importList$2;
@@ -83678,7 +84019,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.fileHeader__T__V = (functi
83678
84019
  this$6.sb$2.append__T__scm_StringBuilder("\n")
83679
84020
  });
83680
84021
  $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
83681
- this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { return ") + this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; }"))
84022
+ this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { return ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; }"))
83682
84023
  });
83683
84024
  var $d_Lio_kaitai_struct_languages_JavaCompiler = new $TypeData().initClass({
83684
84025
  Lio_kaitai_struct_languages_JavaCompiler: 0
@@ -83734,7 +84075,8 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.debugClassSequence__sci_
83734
84075
  var f = (function($this) {
83735
84076
  return (function(attr$2) {
83736
84077
  var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
83737
- return (("\"" + $this.idToStr__Lio_kaitai_struct_format_Identifier__T(attr.id$1)) + "\"")
84078
+ var id = attr.id$1;
84079
+ return (("\"" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
83738
84080
  })
83739
84081
  })(this);
83740
84082
  var this$1 = $m_sci_List$();
@@ -83781,7 +84123,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classToString__Lio_kaita
83781
84123
  });
83782
84124
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
83783
84125
  this.out$2.puts__T__V("@property");
83784
- this.out$2.puts__T__V((("def " + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "(self):"));
84126
+ this.out$2.puts__T__V((("def " + $m_Lio_kaitai_struct_languages_PythonCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "(self):"));
83785
84127
  this.out$2.inc__V()
83786
84128
  });
83787
84129
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
@@ -83826,7 +84168,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHeader__sci_List
83826
84168
  this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($f_sc_LinearSeqOptimized__last__O(className)), instName, dataType, isNullable)
83827
84169
  });
83828
84170
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
83829
- return ("self." + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
84171
+ return ("self." + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
83830
84172
  });
83831
84173
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
83832
84174
  this.out$2.puts__T__V(("_on = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)))
@@ -83835,7 +84177,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.seek__T__Lio_kaitai_stru
83835
84177
  this.out$2.puts__T__V((((io + ".seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ")"))
83836
84178
  });
83837
84179
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
83838
- this.out$2.puts__T__V((("return getattr(self, '" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', None)"))
84180
+ this.out$2.puts__T__V((("return getattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', None)"))
83839
84181
  });
83840
84182
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bool2Py__Z__T = (function(b) {
83841
84183
  return (b ? "True" : "False")
@@ -84005,7 +84347,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugStart__Lio_kait
84005
84347
  if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
84006
84348
  throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
84007
84349
  };
84008
- var name = this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
84350
+ var name = $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
84009
84351
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
84010
84352
  if ((x === rep)) {
84011
84353
  this.out$2.puts__T__V((((("self._debug['" + name) + "']['start'] = ") + io) + ".pos()"))
@@ -84064,31 +84406,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrParse2$default$7__s_
84064
84406
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
84065
84407
  this.out$2.puts__T__V(((id + " = ") + expr))
84066
84408
  });
84067
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
84068
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
84069
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
84070
- var name = x2.name$2;
84071
- return name
84072
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
84073
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
84074
- var name$2 = x3.name$2;
84075
- return name$2
84076
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
84077
- var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
84078
- var idx = x4.idx$2;
84079
- return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
84080
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
84081
- var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
84082
- var name$3 = x5.name$2;
84083
- return ("_m_" + name$3)
84084
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
84085
- var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
84086
- var innerId = x6.innerId$2;
84087
- return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
84088
- } else {
84089
- throw new $c_s_MatchError().init___O(id)
84090
- }
84091
- });
84092
84409
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.userType2class__Lio_kaitai_struct_datatype_DataType$UserType__T = (function(t) {
84093
84410
  var name = $as_Lio_kaitai_struct_format_ClassSpec(t.classSpec$3.get__O()).name$1;
84094
84411
  var firstName = $as_T(name.head__O());
@@ -84100,7 +84417,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.condRepeatExprHeader__Li
84100
84417
  this.out$2.inc__V()
84101
84418
  });
84102
84419
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
84103
- return ("_t_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(id))
84420
+ return ("_t_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
84104
84421
  });
84105
84422
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.alignToByte__T__V = (function(io) {
84106
84423
  this.out$2.puts__T__V((io + ".align_to_byte()"))
@@ -84343,7 +84660,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugEnd__Lio_kaitai
84343
84660
  if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
84344
84661
  return (void 0)
84345
84662
  };
84346
- var name = this.idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
84663
+ var name = $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
84347
84664
  var x = $m_Lio_kaitai_struct_format_NoRepeat$();
84348
84665
  if ((x === rep)) {
84349
84666
  this.out$2.puts__T__V((((("self._debug['" + name) + "']['end'] = ") + io) + ".pos()"))
@@ -84358,27 +84675,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugEnd__Lio_kaitai
84358
84675
  }
84359
84676
  }
84360
84677
  });
84361
- $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
84362
- if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
84363
- var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
84364
- var name = x2.name$2;
84365
- return name
84366
- } else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
84367
- var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
84368
- var name$2 = x3.name$2;
84369
- return name$2
84370
- } else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
84371
- var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
84372
- var name$3 = x4.name$2;
84373
- return name$3
84374
- } else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
84375
- var x5 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
84376
- var innerId = x5.innerId$2;
84377
- return ("_raw_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
84378
- } else {
84379
- throw new $c_s_MatchError().init___O(id)
84380
- }
84381
- });
84382
84678
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
84383
84679
  if ((padRight instanceof $c_s_Some)) {
84384
84680
  var x2 = $as_s_Some(padRight);
@@ -84458,7 +84754,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.switchIfCaseFirstStart__
84458
84754
  this.out$2.inc__V()
84459
84755
  });
84460
84756
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
84461
- this.out$2.puts__T__V((("if hasattr(self, '" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "'):"));
84757
+ this.out$2.puts__T__V((("if hasattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "'):"));
84462
84758
  this.out$2.inc__V();
84463
84759
  this.out$2.puts__T__V(("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)));
84464
84760
  this.out$2.dec__V();
@@ -84554,7 +84850,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
84554
84850
  return (function(p$2) {
84555
84851
  var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
84556
84852
  var id = p.id$1;
84557
- return $this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
84853
+ return $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
84558
84854
  })
84559
84855
  })(this);
84560
84856
  var this$1 = $m_sci_List$();
@@ -84603,7 +84899,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
84603
84899
  var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
84604
84900
  var jsx$3 = p$3.id$1;
84605
84901
  var id$1 = p$3.id$1;
84606
- this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, this.idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
84902
+ this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
84607
84903
  var this$4 = these$1;
84608
84904
  these$1 = this$4.tail__sci_List()
84609
84905
  };
@@ -84626,7 +84922,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCalculate__Lio_k
84626
84922
  });
84627
84923
  $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
84628
84924
  this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
84629
- var ioName = ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(varName));
84925
+ var ioName = ("_io_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName));
84630
84926
  var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep);
84631
84927
  this.out$2.puts__T__V((((ioName + " = KaitaiStream(BytesIO(") + args) + "))"));
84632
84928
  return ioName
@@ -84729,6 +85025,10 @@ $c_sc_AbstractIterable.prototype.foreach__F1__V = (function(f) {
84729
85025
  var this$1 = this.iterator__sc_Iterator();
84730
85026
  $f_sc_Iterator__foreach__F1__V(this$1, f)
84731
85027
  });
85028
+ $c_sc_AbstractIterable.prototype.find__F1__s_Option = (function(p) {
85029
+ var this$1 = this.iterator__sc_Iterator();
85030
+ return $f_sc_Iterator__find__F1__s_Option(this$1, p)
85031
+ });
84732
85032
  $c_sc_AbstractIterable.prototype.toStream__sci_Stream = (function() {
84733
85033
  return this.iterator__sc_Iterator().toStream__sci_Stream()
84734
85034
  });
@@ -85089,13 +85389,13 @@ function $h_scm_ArrayOps$ofRef() {
85089
85389
  /*<skip>*/
85090
85390
  }
85091
85391
  $h_scm_ArrayOps$ofRef.prototype = $c_scm_ArrayOps$ofRef.prototype;
85092
- $c_scm_ArrayOps$ofRef.prototype.copyToArray__O__I__V = (function(xs, start) {
85093
- $f_sc_TraversableOnce__copyToArray__O__I__V(this, xs, start)
85094
- });
85095
85392
  $c_scm_ArrayOps$ofRef.prototype.seq__sc_TraversableOnce = (function() {
85096
85393
  var $$this = this.repr$1;
85097
85394
  return new $c_scm_WrappedArray$ofRef().init___AO($$this)
85098
85395
  });
85396
+ $c_scm_ArrayOps$ofRef.prototype.copyToArray__O__I__V = (function(xs, start) {
85397
+ $f_sc_TraversableOnce__copyToArray__O__I__V(this, xs, start)
85398
+ });
85099
85399
  $c_scm_ArrayOps$ofRef.prototype.head__O = (function() {
85100
85400
  return $f_sc_IndexedSeqOptimized__head__O(this)
85101
85401
  });
@@ -85156,13 +85456,13 @@ $c_scm_ArrayOps$ofRef.prototype.toVector__sci_Vector = (function() {
85156
85456
  var cbf = $m_sc_IndexedSeq$().ReusableCBF$6;
85157
85457
  return $as_sci_Vector($f_sc_TraversableLike__to__scg_CanBuildFrom__O(this, cbf))
85158
85458
  });
85459
+ $c_scm_ArrayOps$ofRef.prototype.toBuffer__scm_Buffer = (function() {
85460
+ return $f_sc_IndexedSeqLike__toBuffer__scm_Buffer(this)
85461
+ });
85159
85462
  $c_scm_ArrayOps$ofRef.prototype.size__I = (function() {
85160
85463
  var $$this = this.repr$1;
85161
85464
  return $$this.u.length
85162
85465
  });
85163
- $c_scm_ArrayOps$ofRef.prototype.toBuffer__scm_Buffer = (function() {
85164
- return $f_sc_IndexedSeqLike__toBuffer__scm_Buffer(this)
85165
- });
85166
85466
  $c_scm_ArrayOps$ofRef.prototype.init___AO = (function(repr) {
85167
85467
  this.repr$1 = repr;
85168
85468
  return this
@@ -85481,33 +85781,33 @@ $c_sc_AbstractSeq.prototype.lengthCompare__I__I = (function(len) {
85481
85781
  $c_sc_AbstractSeq.prototype.indices__sci_Range = (function() {
85482
85782
  return $f_sc_SeqLike__indices__sci_Range(this)
85483
85783
  });
85484
- $c_sc_AbstractSeq.prototype.runWith__F1__F1 = (function(action) {
85485
- return $f_s_PartialFunction__runWith__F1__F1(this, action)
85486
- });
85487
85784
  $c_sc_AbstractSeq.prototype.isEmpty__Z = (function() {
85488
85785
  return $f_sc_SeqLike__isEmpty__Z(this)
85489
85786
  });
85787
+ $c_sc_AbstractSeq.prototype.runWith__F1__F1 = (function(action) {
85788
+ return $f_s_PartialFunction__runWith__F1__F1(this, action)
85789
+ });
85490
85790
  $c_sc_AbstractSeq.prototype.equals__O__Z = (function(that) {
85491
85791
  return $f_sc_GenSeqLike__equals__O__Z(this, that)
85492
85792
  });
85493
- $c_sc_AbstractSeq.prototype.toString__T = (function() {
85494
- return $f_sc_TraversableLike__toString__T(this)
85495
- });
85496
85793
  $c_sc_AbstractSeq.prototype.$$colon$plus__O__scg_CanBuildFrom__O = (function(elem, bf) {
85497
85794
  return $f_sc_SeqLike__$$colon$plus__O__scg_CanBuildFrom__O(this, elem, bf)
85498
85795
  });
85796
+ $c_sc_AbstractSeq.prototype.toString__T = (function() {
85797
+ return $f_sc_TraversableLike__toString__T(this)
85798
+ });
85499
85799
  $c_sc_AbstractSeq.prototype.size__I = (function() {
85500
85800
  return this.length__I()
85501
85801
  });
85502
85802
  $c_sc_AbstractSeq.prototype.thisCollection__sc_Seq = (function() {
85503
85803
  return this
85504
85804
  });
85505
- $c_sc_AbstractSeq.prototype.applyOrElse__O__F1__O = (function(x, $default) {
85506
- return $f_s_PartialFunction__applyOrElse__O__F1__O(this, x, $default)
85507
- });
85508
85805
  $c_sc_AbstractSeq.prototype.hashCode__I = (function() {
85509
85806
  return $m_s_util_hashing_MurmurHash3$().seqHash__sc_Seq__I(this.seq__sc_Seq())
85510
85807
  });
85808
+ $c_sc_AbstractSeq.prototype.applyOrElse__O__F1__O = (function(x, $default) {
85809
+ return $f_s_PartialFunction__applyOrElse__O__F1__O(this, x, $default)
85810
+ });
85511
85811
  function $is_sci_Seq(obj) {
85512
85812
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sci_Seq)))
85513
85813
  }
@@ -86236,6 +86536,9 @@ $c_sci_Set$Set1.prototype.iterator__sc_Iterator = (function() {
86236
86536
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86237
86537
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86238
86538
  });
86539
+ $c_sci_Set$Set1.prototype.find__F1__s_Option = (function(p) {
86540
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : $m_s_None$())
86541
+ });
86239
86542
  $c_sci_Set$Set1.prototype.empty__sc_Set = (function() {
86240
86543
  $m_sci_Set$();
86241
86544
  return $m_sci_Set$EmptySet$()
@@ -86357,6 +86660,9 @@ $c_sci_Set$Set2.prototype.iterator__sc_Iterator = (function() {
86357
86660
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86358
86661
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86359
86662
  });
86663
+ $c_sci_Set$Set2.prototype.find__F1__s_Option = (function(p) {
86664
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : ($uZ(p.apply__O__O(this.elem2$4)) ? new $c_s_Some().init___O(this.elem2$4) : $m_s_None$()))
86665
+ });
86360
86666
  $c_sci_Set$Set2.prototype.empty__sc_Set = (function() {
86361
86667
  $m_sci_Set$();
86362
86668
  return $m_sci_Set$EmptySet$()
@@ -86481,6 +86787,9 @@ $c_sci_Set$Set3.prototype.iterator__sc_Iterator = (function() {
86481
86787
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86482
86788
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86483
86789
  });
86790
+ $c_sci_Set$Set3.prototype.find__F1__s_Option = (function(p) {
86791
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : ($uZ(p.apply__O__O(this.elem2$4)) ? new $c_s_Some().init___O(this.elem2$4) : ($uZ(p.apply__O__O(this.elem3$4)) ? new $c_s_Some().init___O(this.elem3$4) : $m_s_None$())))
86792
+ });
86484
86793
  $c_sci_Set$Set3.prototype.empty__sc_Set = (function() {
86485
86794
  $m_sci_Set$();
86486
86795
  return $m_sci_Set$EmptySet$()
@@ -86601,6 +86910,9 @@ $c_sci_Set$Set4.prototype.iterator__sc_Iterator = (function() {
86601
86910
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86602
86911
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86603
86912
  });
86913
+ $c_sci_Set$Set4.prototype.find__F1__s_Option = (function(p) {
86914
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : ($uZ(p.apply__O__O(this.elem2$4)) ? new $c_s_Some().init___O(this.elem2$4) : ($uZ(p.apply__O__O(this.elem3$4)) ? new $c_s_Some().init___O(this.elem3$4) : ($uZ(p.apply__O__O(this.elem4$4)) ? new $c_s_Some().init___O(this.elem4$4) : $m_s_None$()))))
86915
+ });
86604
86916
  $c_sci_Set$Set4.prototype.empty__sc_Set = (function() {
86605
86917
  $m_sci_Set$();
86606
86918
  return $m_sci_Set$EmptySet$()
@@ -89687,6 +89999,9 @@ $c_sci_Stream.prototype.filterImpl__F1__Z__O = (function(p, isFlipped) {
89687
89999
  $c_sci_Stream.prototype.iterator__sc_Iterator = (function() {
89688
90000
  return new $c_sci_StreamIterator().init___sci_Stream(this)
89689
90001
  });
90002
+ $c_sci_Stream.prototype.find__F1__s_Option = (function(p) {
90003
+ return $f_sc_LinearSeqOptimized__find__F1__s_Option(this, p)
90004
+ });
89690
90005
  $c_sci_Stream.prototype.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O = (function(that, bf) {
89691
90006
  if ((bf.apply__O__scm_Builder(this) instanceof $c_sci_Stream$StreamBuilder)) {
89692
90007
  if (this.isEmpty__Z()) {
@@ -90459,6 +90774,9 @@ $c_sci_List.prototype.slice__I__I__sci_List = (function(from, until) {
90459
90774
  var lo = ((from > 0) ? from : 0);
90460
90775
  return (((until <= lo) || this.isEmpty__Z()) ? $m_sci_Nil$() : this.drop__I__sci_List(lo).take__I__sci_List(((until - lo) | 0)))
90461
90776
  });
90777
+ $c_sci_List.prototype.iterator__sc_Iterator = (function() {
90778
+ return new $c_sc_LinearSeqLike$$anon$1().init___sc_LinearSeqLike(this)
90779
+ });
90462
90780
  $c_sci_List.prototype.drop__I__sci_List = (function(n) {
90463
90781
  var these = this;
90464
90782
  var count = n;
@@ -90469,8 +90787,8 @@ $c_sci_List.prototype.drop__I__sci_List = (function(n) {
90469
90787
  };
90470
90788
  return these
90471
90789
  });
90472
- $c_sci_List.prototype.iterator__sc_Iterator = (function() {
90473
- return new $c_sc_LinearSeqLike$$anon$1().init___sc_LinearSeqLike(this)
90790
+ $c_sci_List.prototype.find__F1__s_Option = (function(p) {
90791
+ return $f_sc_LinearSeqOptimized__find__F1__s_Option(this, p)
90474
90792
  });
90475
90793
  $c_sci_List.prototype.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O = (function(that, bf) {
90476
90794
  return ((bf === $m_sci_List$().ReusableCBFInstance$2) ? that.seq__sc_TraversableOnce().toList__sci_List().$$colon$colon$colon__sci_List__sci_List(this) : $f_sc_TraversableLike__$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(this, that, bf))
@@ -91800,12 +92118,12 @@ $c_sci_WrappedString.prototype.apply__O__O = (function(v1) {
91800
92118
  $c_sci_WrappedString.prototype.exists__F1__Z = (function(p) {
91801
92119
  return $f_sc_IndexedSeqOptimized__exists__F1__Z(this, p)
91802
92120
  });
91803
- $c_sci_WrappedString.prototype.isEmpty__Z = (function() {
91804
- return $f_sc_IndexedSeqOptimized__isEmpty__Z(this)
91805
- });
91806
92121
  $c_sci_WrappedString.prototype.toList__sci_List = (function() {
91807
92122
  return $f_sc_IndexedSeqOptimized__toList__sci_List(this)
91808
92123
  });
92124
+ $c_sci_WrappedString.prototype.isEmpty__Z = (function() {
92125
+ return $f_sc_IndexedSeqOptimized__isEmpty__Z(this)
92126
+ });
91809
92127
  $c_sci_WrappedString.prototype.seq__sc_Iterable = (function() {
91810
92128
  return this
91811
92129
  });
@@ -91816,12 +92134,12 @@ $c_sci_WrappedString.prototype.apply__I__C = (function(n) {
91816
92134
  var thiz = this.self$4;
91817
92135
  return (65535 & $uI(thiz.charCodeAt(n)))
91818
92136
  });
91819
- $c_sci_WrappedString.prototype.companion__scg_GenericCompanion = (function() {
91820
- return $m_sci_IndexedSeq$()
91821
- });
91822
92137
  $c_sci_WrappedString.prototype.toString__T = (function() {
91823
92138
  return this.self$4
91824
92139
  });
92140
+ $c_sci_WrappedString.prototype.companion__scg_GenericCompanion = (function() {
92141
+ return $m_sci_IndexedSeq$()
92142
+ });
91825
92143
  $c_sci_WrappedString.prototype.foreach__F1__V = (function(f) {
91826
92144
  $f_sc_IndexedSeqOptimized__foreach__F1__V(this, f)
91827
92145
  });
@@ -91850,6 +92168,9 @@ $c_sci_WrappedString.prototype.iterator__sc_Iterator = (function() {
91850
92168
  var thiz = this.self$4;
91851
92169
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(this, 0, $uI(thiz.length))
91852
92170
  });
92171
+ $c_sci_WrappedString.prototype.find__F1__s_Option = (function(p) {
92172
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
92173
+ });
91853
92174
  $c_sci_WrappedString.prototype.mkString__T = (function() {
91854
92175
  return this.self$4
91855
92176
  });
@@ -91884,14 +92205,11 @@ $c_sci_WrappedString.prototype.init___T = (function(self) {
91884
92205
  this.self$4 = self;
91885
92206
  return this
91886
92207
  });
91887
- $c_sci_WrappedString.prototype.dropRight__I__O = (function(n) {
91888
- return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
91889
- });
91890
92208
  $c_sci_WrappedString.prototype.takeRight__I__O = (function(n) {
91891
92209
  return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
91892
92210
  });
91893
- $c_sci_WrappedString.prototype.toArray__s_reflect_ClassTag__O = (function(evidence$1) {
91894
- return $m_sjsr_RuntimeString$().toCharArray__T__AC(this.self$4)
92211
+ $c_sci_WrappedString.prototype.dropRight__I__O = (function(n) {
92212
+ return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
91895
92213
  });
91896
92214
  $c_sci_WrappedString.prototype.slice__I__I__sci_WrappedString = (function(from, until) {
91897
92215
  var start = ((from < 0) ? 0 : from);
@@ -91914,6 +92232,9 @@ $c_sci_WrappedString.prototype.slice__I__I__sci_WrappedString = (function(from,
91914
92232
  var thiz$3 = $m_s_Predef$().unwrapString__sci_WrappedString__T(this);
91915
92233
  return new $c_sci_WrappedString().init___T($as_T(thiz$3.substring(start, end)))
91916
92234
  });
92235
+ $c_sci_WrappedString.prototype.toArray__s_reflect_ClassTag__O = (function(evidence$1) {
92236
+ return $m_sjsr_RuntimeString$().toCharArray__T__AC(this.self$4)
92237
+ });
91917
92238
  $c_sci_WrappedString.prototype.reduceLeft__F2__O = (function(op) {
91918
92239
  return $f_sc_IndexedSeqOptimized__reduceLeft__F2__O(this, op)
91919
92240
  });
@@ -93117,6 +93438,9 @@ $c_scm_WrappedArray.prototype.seq__scm_Seq = (function() {
93117
93438
  $c_scm_WrappedArray.prototype.iterator__sc_Iterator = (function() {
93118
93439
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(this, 0, this.length__I())
93119
93440
  });
93441
+ $c_scm_WrappedArray.prototype.find__F1__s_Option = (function(p) {
93442
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
93443
+ });
93120
93444
  $c_scm_WrappedArray.prototype.seq__sc_Seq = (function() {
93121
93445
  return this
93122
93446
  });
@@ -93252,6 +93576,9 @@ $c_scm_ArraySeq.prototype.iterator__sc_Iterator = (function() {
93252
93576
  $c_scm_ArraySeq.prototype.seq__scm_Seq = (function() {
93253
93577
  return this
93254
93578
  });
93579
+ $c_scm_ArraySeq.prototype.find__F1__s_Option = (function(p) {
93580
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
93581
+ });
93255
93582
  $c_scm_ArraySeq.prototype.init___I = (function(length) {
93256
93583
  this.length$5 = length;
93257
93584
  this.array$5 = $newArrayObject($d_O.getArrayOf(), [length]);
@@ -93288,12 +93615,12 @@ $c_scm_ArraySeq.prototype.copyToArray__O__I__I__V = (function(xs, start, len) {
93288
93615
  $c_scm_ArraySeq.prototype.hashCode__I = (function() {
93289
93616
  return $m_s_util_hashing_MurmurHash3$().seqHash__sc_Seq__I(this)
93290
93617
  });
93291
- $c_scm_ArraySeq.prototype.takeRight__I__O = (function(n) {
93292
- return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
93293
- });
93294
93618
  $c_scm_ArraySeq.prototype.dropRight__I__O = (function(n) {
93295
93619
  return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
93296
93620
  });
93621
+ $c_scm_ArraySeq.prototype.takeRight__I__O = (function(n) {
93622
+ return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
93623
+ });
93297
93624
  $c_scm_ArraySeq.prototype.reduceLeft__F2__O = (function(op) {
93298
93625
  return $f_sc_IndexedSeqOptimized__reduceLeft__F2__O(this, op)
93299
93626
  });
@@ -95005,6 +95332,10 @@ function $h_scm_ListBuffer() {
95005
95332
  /*<skip>*/
95006
95333
  }
95007
95334
  $h_scm_ListBuffer.prototype = $c_scm_ListBuffer.prototype;
95335
+ $c_scm_ListBuffer.prototype.copyToArray__O__I__V = (function(xs, start) {
95336
+ var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
95337
+ $f_sc_TraversableOnce__copyToArray__O__I__V(this$1, xs, start)
95338
+ });
95008
95339
  $c_scm_ListBuffer.prototype.copy__p6__V = (function() {
95009
95340
  if (this.isEmpty__Z()) {
95010
95341
  return (void 0)
@@ -95019,10 +95350,6 @@ $c_scm_ListBuffer.prototype.copy__p6__V = (function() {
95019
95350
  cursor = this$2.tail__sci_List()
95020
95351
  }
95021
95352
  });
95022
- $c_scm_ListBuffer.prototype.copyToArray__O__I__V = (function(xs, start) {
95023
- var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
95024
- $f_sc_TraversableOnce__copyToArray__O__I__V(this$1, xs, start)
95025
- });
95026
95353
  $c_scm_ListBuffer.prototype.head__O = (function() {
95027
95354
  return this.scala$collection$mutable$ListBuffer$$start$6.head__O()
95028
95355
  });
@@ -95134,6 +95461,10 @@ $c_scm_ListBuffer.prototype.iterator__sc_Iterator = (function() {
95134
95461
  $c_scm_ListBuffer.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95135
95462
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95136
95463
  });
95464
+ $c_scm_ListBuffer.prototype.find__F1__s_Option = (function(p) {
95465
+ var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
95466
+ return $f_sc_LinearSeqOptimized__find__F1__s_Option(this$1, p)
95467
+ });
95137
95468
  $c_scm_ListBuffer.prototype.mkString__T = (function() {
95138
95469
  var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
95139
95470
  return $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "", "")
@@ -95430,6 +95761,9 @@ $c_scm_StringBuilder.prototype.seq__scm_Seq = (function() {
95430
95761
  $c_scm_StringBuilder.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95431
95762
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95432
95763
  });
95764
+ $c_scm_StringBuilder.prototype.find__F1__s_Option = (function(p) {
95765
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
95766
+ });
95433
95767
  $c_scm_StringBuilder.prototype.init___I__T = (function(initCapacity, initValue) {
95434
95768
  var this$2 = new $c_jl_StringBuilder().init___I((($uI(initValue.length) + initCapacity) | 0));
95435
95769
  this$2.java$lang$StringBuilder$$content$f = (("" + this$2.java$lang$StringBuilder$$content$f) + initValue);
@@ -95486,12 +95820,12 @@ $c_scm_StringBuilder.prototype.copyToArray__O__I__I__V = (function(xs, start, le
95486
95820
  $c_scm_StringBuilder.prototype.hashCode__I = (function() {
95487
95821
  return $m_s_util_hashing_MurmurHash3$().seqHash__sc_Seq__I(this)
95488
95822
  });
95489
- $c_scm_StringBuilder.prototype.takeRight__I__O = (function(n) {
95490
- return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
95491
- });
95492
95823
  $c_scm_StringBuilder.prototype.dropRight__I__O = (function(n) {
95493
95824
  return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
95494
95825
  });
95826
+ $c_scm_StringBuilder.prototype.takeRight__I__O = (function(n) {
95827
+ return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
95828
+ });
95495
95829
  $c_scm_StringBuilder.prototype.toArray__s_reflect_ClassTag__O = (function(evidence$1) {
95496
95830
  return $m_sjsr_RuntimeString$().toCharArray__T__AC(this.underlying$5.java$lang$StringBuilder$$content$f)
95497
95831
  });
@@ -95657,6 +95991,9 @@ $c_sjs_js_WrappedArray.prototype.seq__scm_Seq = (function() {
95657
95991
  $c_sjs_js_WrappedArray.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95658
95992
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95659
95993
  });
95994
+ $c_sjs_js_WrappedArray.prototype.find__F1__s_Option = (function(p) {
95995
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
95996
+ });
95660
95997
  $c_sjs_js_WrappedArray.prototype.length__I = (function() {
95661
95998
  return $uI(this.array$6.length)
95662
95999
  });
@@ -95871,6 +96208,9 @@ $c_scm_ArrayBuffer.prototype.seq__scm_Seq = (function() {
95871
96208
  $c_scm_ArrayBuffer.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95872
96209
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95873
96210
  });
96211
+ $c_scm_ArrayBuffer.prototype.find__F1__s_Option = (function(p) {
96212
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
96213
+ });
95874
96214
  $c_scm_ArrayBuffer.prototype.init___I = (function(initialSize) {
95875
96215
  this.initialSize$6 = initialSize;
95876
96216
  $f_scm_ResizableArray__$$init$__V(this);