kaitai-struct-compiler 0.10.0-SNAPSHOT20220505.181132.b0125311 → 0.10.0-SNAPSHOT20220617.120542.c053fb7d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kaitai-struct-compiler.js +802 -613
- package/package.json +1 -1
|
@@ -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-
|
|
4434
|
-
this.gitCommit$1 = "
|
|
4435
|
-
this.gitTime$1 = "2022-
|
|
4433
|
+
this.version$1 = "0.10-SNAPSHOT20220617.120542.c053fb7d";
|
|
4434
|
+
this.gitCommit$1 = "c053fb7d";
|
|
4435
|
+
this.gitTime$1 = "2022-06-17T12:05:42+00:00";
|
|
4436
4436
|
return this
|
|
4437
4437
|
});
|
|
4438
4438
|
var $d_Lio_kaitai_struct_Version$ = new $TypeData().initClass({
|
|
@@ -9309,20 +9309,19 @@ function $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCases__Lio
|
|
|
9309
9309
|
}
|
|
9310
9310
|
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
9311
|
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$
|
|
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$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId), op, expected);
|
|
9313
9313
|
$m_sci_List$();
|
|
9314
|
-
var jsx$2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9315
|
-
var
|
|
9316
|
-
var
|
|
9317
|
-
var
|
|
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, "/", "/", ""))];
|
|
9314
|
+
var jsx$2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
|
|
9315
|
+
var jsx$1 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
|
|
9316
|
+
var this$1 = attr.path__sci_List();
|
|
9317
|
+
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
9318
|
var i = (((-1) + $uI(array.length)) | 0);
|
|
9320
9319
|
var result = $m_sci_Nil$();
|
|
9321
9320
|
while ((i >= 0)) {
|
|
9322
|
-
var this$
|
|
9321
|
+
var this$5 = result;
|
|
9323
9322
|
var index = i;
|
|
9324
9323
|
var x = array[index];
|
|
9325
|
-
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$
|
|
9324
|
+
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$5);
|
|
9326
9325
|
i = (((-1) + i) | 0)
|
|
9327
9326
|
};
|
|
9328
9327
|
$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 +9362,7 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
|
|
|
9363
9362
|
var f = (function($this, attrId$1) {
|
|
9364
9363
|
return (function(expected$2$2) {
|
|
9365
9364
|
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$
|
|
9365
|
+
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
9366
|
})
|
|
9368
9367
|
})($thiz, attrId);
|
|
9369
9368
|
var this$1 = $m_sci_List$();
|
|
@@ -9401,18 +9400,17 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
|
|
|
9401
9400
|
var jsx$6 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
|
|
9402
9401
|
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
9402
|
$m_sci_List$();
|
|
9404
|
-
var jsx$4 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9405
|
-
var
|
|
9406
|
-
var
|
|
9407
|
-
var
|
|
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, "/", "/", ""))];
|
|
9403
|
+
var jsx$4 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
|
|
9404
|
+
var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
|
|
9405
|
+
var this$4 = attr.path__sci_List();
|
|
9406
|
+
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
9407
|
var i = (((-1) + $uI(array.length)) | 0);
|
|
9410
9408
|
var result = $m_sci_Nil$();
|
|
9411
9409
|
while ((i >= 0)) {
|
|
9412
|
-
var this$
|
|
9410
|
+
var this$8 = result;
|
|
9413
9411
|
var index = i;
|
|
9414
9412
|
var x = array[index];
|
|
9415
|
-
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$
|
|
9413
|
+
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$8);
|
|
9416
9414
|
i = (((-1) + i) | 0)
|
|
9417
9415
|
};
|
|
9418
9416
|
$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 +9419,21 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
|
|
|
9421
9419
|
var expr = x7.checkExpr$1;
|
|
9422
9420
|
$thiz.blockScopeHeader__V();
|
|
9423
9421
|
$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$
|
|
9422
|
+
$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
9423
|
var jsx$10 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
|
|
9426
9424
|
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
9425
|
$m_sci_List$();
|
|
9428
|
-
var jsx$8 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9429
|
-
var
|
|
9430
|
-
var
|
|
9431
|
-
var
|
|
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, "/", "/", ""))];
|
|
9426
|
+
var jsx$8 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
|
|
9427
|
+
var jsx$7 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
|
|
9428
|
+
var this$9 = attr.path__sci_List();
|
|
9429
|
+
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
9430
|
var i$1 = (((-1) + $uI(array$1.length)) | 0);
|
|
9434
9431
|
var result$1 = $m_sci_Nil$();
|
|
9435
9432
|
while ((i$1 >= 0)) {
|
|
9436
|
-
var this$
|
|
9433
|
+
var this$13 = result$1;
|
|
9437
9434
|
var index$1 = i$1;
|
|
9438
9435
|
var x$1 = array$1[index$1];
|
|
9439
|
-
result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$
|
|
9436
|
+
result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$13);
|
|
9440
9437
|
i$1 = (((-1) + i$1) | 0)
|
|
9441
9438
|
};
|
|
9442
9439
|
$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 +11235,16 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11238
11235
|
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
11236
|
}
|
|
11240
11237
|
};
|
|
11238
|
+
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
11239
|
+
var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
|
|
11240
|
+
var id = x14.id$1;
|
|
11241
|
+
var this$13 = this.provider$1;
|
|
11242
|
+
return this$13.determineType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType(this$13.nowClass$1, id)
|
|
11243
|
+
};
|
|
11241
11244
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
|
|
11242
|
-
var
|
|
11243
|
-
var op =
|
|
11244
|
-
var v$2 =
|
|
11245
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
|
|
11246
|
+
var op = x15.op$1;
|
|
11247
|
+
var v$2 = x15.operand$1;
|
|
11245
11248
|
if ((op !== null)) {
|
|
11246
11249
|
if ((v$2 !== null)) {
|
|
11247
11250
|
var t$3 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(v$2);
|
|
@@ -11296,10 +11299,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11296
11299
|
}
|
|
11297
11300
|
};
|
|
11298
11301
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
|
|
11299
|
-
var
|
|
11300
|
-
var left =
|
|
11301
|
-
var op$2 =
|
|
11302
|
-
var right =
|
|
11302
|
+
var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
|
|
11303
|
+
var left = x16.left$1;
|
|
11304
|
+
var op$2 = x16.ops$1;
|
|
11305
|
+
var right = x16.right$1;
|
|
11303
11306
|
if ((left !== null)) {
|
|
11304
11307
|
if ((op$2 !== null)) {
|
|
11305
11308
|
if ((right !== null)) {
|
|
@@ -11312,10 +11315,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11312
11315
|
}
|
|
11313
11316
|
};
|
|
11314
11317
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
|
|
11315
|
-
var
|
|
11316
|
-
var left$2 =
|
|
11317
|
-
var op$3 =
|
|
11318
|
-
var right$2 =
|
|
11318
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
|
|
11319
|
+
var left$2 = x17.left$1;
|
|
11320
|
+
var op$3 = x17.op$1;
|
|
11321
|
+
var right$2 = x17.right$1;
|
|
11319
11322
|
if ((left$2 !== null)) {
|
|
11320
11323
|
if ((op$3 !== null)) {
|
|
11321
11324
|
if ((right$2 !== null)) {
|
|
@@ -11347,17 +11350,17 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11347
11350
|
}
|
|
11348
11351
|
};
|
|
11349
11352
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
|
|
11350
|
-
var
|
|
11351
|
-
var op$4 =
|
|
11352
|
-
var values =
|
|
11353
|
+
var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
|
|
11354
|
+
var op$4 = x18.op$1;
|
|
11355
|
+
var values = x18.values$1;
|
|
11353
11356
|
if ((op$4 !== null)) {
|
|
11354
11357
|
if ((values !== null)) {
|
|
11355
|
-
values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this,
|
|
11358
|
+
values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, x38) {
|
|
11356
11359
|
return (function(v$3$2) {
|
|
11357
11360
|
var v$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$3$2);
|
|
11358
11361
|
var t$1 = $this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(v$3);
|
|
11359
11362
|
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 ") +
|
|
11363
|
+
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((((("unable to use " + t$1) + " argument in ") + x38) + " boolean expression"))
|
|
11361
11364
|
}
|
|
11362
11365
|
})
|
|
11363
11366
|
})(this, op$4)));
|
|
@@ -11366,10 +11369,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11366
11369
|
}
|
|
11367
11370
|
};
|
|
11368
11371
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
|
|
11369
|
-
var
|
|
11370
|
-
var condition =
|
|
11371
|
-
var ifTrue =
|
|
11372
|
-
var ifFalse =
|
|
11372
|
+
var x19 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
|
|
11373
|
+
var condition = x19.condition$1;
|
|
11374
|
+
var ifTrue = x19.ifTrue$1;
|
|
11375
|
+
var ifFalse = x19.ifFalse$1;
|
|
11373
11376
|
if ((condition !== null)) {
|
|
11374
11377
|
if ((ifTrue !== null)) {
|
|
11375
11378
|
if ((ifFalse !== null)) {
|
|
@@ -11386,9 +11389,9 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11386
11389
|
}
|
|
11387
11390
|
};
|
|
11388
11391
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
11389
|
-
var
|
|
11390
|
-
var container =
|
|
11391
|
-
var idx =
|
|
11392
|
+
var x20 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
|
|
11393
|
+
var container = x20.value$1;
|
|
11394
|
+
var idx = x20.idx$1;
|
|
11392
11395
|
if ((container !== null)) {
|
|
11393
11396
|
if ((idx !== null)) {
|
|
11394
11397
|
var x1$5 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(container);
|
|
@@ -11429,9 +11432,9 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11429
11432
|
}
|
|
11430
11433
|
};
|
|
11431
11434
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
11432
|
-
var
|
|
11433
|
-
var value =
|
|
11434
|
-
var attr =
|
|
11435
|
+
var x21 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
|
|
11436
|
+
var value = x21.value$1;
|
|
11437
|
+
var attr = x21.attr$1;
|
|
11435
11438
|
if ((value !== null)) {
|
|
11436
11439
|
if ((attr !== null)) {
|
|
11437
11440
|
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 +11442,20 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11439
11442
|
}
|
|
11440
11443
|
};
|
|
11441
11444
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
11442
|
-
var
|
|
11443
|
-
return this.detectCallType__Lio_kaitai_struct_exprlang_Ast$expr$Call__Lio_kaitai_struct_datatype_DataType(
|
|
11445
|
+
var x47 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
|
|
11446
|
+
return this.detectCallType__Lio_kaitai_struct_exprlang_Ast$expr$Call__Lio_kaitai_struct_datatype_DataType(x47).asNonOwning__Lio_kaitai_struct_datatype_DataType()
|
|
11444
11447
|
};
|
|
11445
11448
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
11446
|
-
var
|
|
11447
|
-
var values$2 =
|
|
11449
|
+
var x22 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
|
|
11450
|
+
var values$2 = x22.elts$1;
|
|
11448
11451
|
if ((values$2 !== null)) {
|
|
11449
11452
|
var x1$8 = this.detectArrayType__sc_Seq__Lio_kaitai_struct_datatype_DataType(values$2);
|
|
11450
11453
|
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
11454
|
}
|
|
11452
11455
|
};
|
|
11453
11456
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
11454
|
-
var
|
|
11455
|
-
var typeName =
|
|
11457
|
+
var x23 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
|
|
11458
|
+
var typeName = x23.typeName$1;
|
|
11456
11459
|
return this.detectCastType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_datatype_DataType(typeName)
|
|
11457
11460
|
};
|
|
11458
11461
|
if (((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType) || (v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType))) {
|
|
@@ -20479,6 +20482,49 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.determineType__Lio_kaitai_struc
|
|
|
20479
20482
|
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
20483
|
}
|
|
20481
20484
|
});
|
|
20485
|
+
$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) {
|
|
20486
|
+
var nonLocalReturnKey1 = new $c_O().init___();
|
|
20487
|
+
try {
|
|
20488
|
+
if ((attrId instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
20489
|
+
var this$1 = inClass.seq$1;
|
|
20490
|
+
var these = this$1;
|
|
20491
|
+
while ((!these.isEmpty__Z())) {
|
|
20492
|
+
var arg1 = these.head__O();
|
|
20493
|
+
var el = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
|
|
20494
|
+
var x = el.id$1;
|
|
20495
|
+
if (((x === null) ? (attrId === null) : x.equals__O__Z(attrId))) {
|
|
20496
|
+
throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey1, $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(el))
|
|
20497
|
+
};
|
|
20498
|
+
var this$2 = these;
|
|
20499
|
+
these = this$2.tail__sci_List()
|
|
20500
|
+
}
|
|
20501
|
+
} else if ((attrId instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
20502
|
+
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(attrId);
|
|
20503
|
+
var name = x2.name$2;
|
|
20504
|
+
return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name)
|
|
20505
|
+
} else if ((attrId instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
20506
|
+
var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(attrId);
|
|
20507
|
+
var name$2 = x3.name$2;
|
|
20508
|
+
return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name$2)
|
|
20509
|
+
} else if ((attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
20510
|
+
var x4 = $as_Lio_kaitai_struct_format_SpecialIdentifier(attrId);
|
|
20511
|
+
var name$3 = x4.name$2;
|
|
20512
|
+
return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name$3)
|
|
20513
|
+
};
|
|
20514
|
+
throw new $c_Lio_kaitai_struct_precompile_FieldNotFoundError().init___T__Lio_kaitai_struct_format_ClassSpec(attrId.humanReadable__T(), inClass)
|
|
20515
|
+
} catch (e) {
|
|
20516
|
+
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
20517
|
+
var ex = $as_sr_NonLocalReturnControl(e);
|
|
20518
|
+
if ((ex.key$2 === nonLocalReturnKey1)) {
|
|
20519
|
+
return $as_Lio_kaitai_struct_datatype_DataType(ex.value__O())
|
|
20520
|
+
} else {
|
|
20521
|
+
throw ex
|
|
20522
|
+
}
|
|
20523
|
+
} else {
|
|
20524
|
+
throw e
|
|
20525
|
+
}
|
|
20526
|
+
}
|
|
20527
|
+
});
|
|
20482
20528
|
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_datatype_DataType = (function(typeName) {
|
|
20483
20529
|
return this.resolveClassSpec__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_format_ClassSpec(typeName).toDataType__Lio_kaitai_struct_datatype_DataType()
|
|
20484
20530
|
});
|
|
@@ -20503,7 +20549,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveEnum__Lio_kaitai_struct_
|
|
|
20503
20549
|
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
20550
|
});
|
|
20505
20551
|
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_format_ClassSpec__T__Z = (function(inClass, attrName) {
|
|
20506
|
-
var
|
|
20552
|
+
var nonLocalReturnKey3 = new $c_O().init___();
|
|
20507
20553
|
try {
|
|
20508
20554
|
var this$1 = inClass.seq$1;
|
|
20509
20555
|
var these = this$1;
|
|
@@ -20513,7 +20559,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
|
|
|
20513
20559
|
var x = el.id$1;
|
|
20514
20560
|
var x$2 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20515
20561
|
if (((x !== null) && x.equals__O__Z(x$2))) {
|
|
20516
|
-
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(
|
|
20562
|
+
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey3, false)
|
|
20517
20563
|
};
|
|
20518
20564
|
var this$2 = these;
|
|
20519
20565
|
these = this$2.tail__sci_List()
|
|
@@ -20526,7 +20572,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
|
|
|
20526
20572
|
var x$1 = el$3.id$1;
|
|
20527
20573
|
var x$2$1 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20528
20574
|
if (((x$1 !== null) && x$1.equals__O__Z(x$2$1))) {
|
|
20529
|
-
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(
|
|
20575
|
+
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey3, false)
|
|
20530
20576
|
};
|
|
20531
20577
|
var this$4 = these$1;
|
|
20532
20578
|
these$1 = this$4.tail__sci_List()
|
|
@@ -20544,7 +20590,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
|
|
|
20544
20590
|
} catch (e) {
|
|
20545
20591
|
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
20546
20592
|
var ex = $as_sr_NonLocalReturnControl(e);
|
|
20547
|
-
if ((ex.key$2 ===
|
|
20593
|
+
if ((ex.key$2 === nonLocalReturnKey3)) {
|
|
20548
20594
|
return ex.value$mcZ$sp__Z()
|
|
20549
20595
|
} else {
|
|
20550
20596
|
throw ex
|
|
@@ -20607,7 +20653,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveClassSpec__Lio_kaitai_st
|
|
|
20607
20653
|
}
|
|
20608
20654
|
});
|
|
20609
20655
|
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_MemberSpec = (function(inClass, attrName) {
|
|
20610
|
-
var
|
|
20656
|
+
var nonLocalReturnKey2 = new $c_O().init___();
|
|
20611
20657
|
try {
|
|
20612
20658
|
var this$1 = inClass.seq$1;
|
|
20613
20659
|
var these = this$1;
|
|
@@ -20617,7 +20663,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
|
|
|
20617
20663
|
var x = el.id$1;
|
|
20618
20664
|
var x$2 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20619
20665
|
if (((x !== null) && x.equals__O__Z(x$2))) {
|
|
20620
|
-
throw new $c_sr_NonLocalReturnControl().init___O__O(
|
|
20666
|
+
throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey2, el)
|
|
20621
20667
|
};
|
|
20622
20668
|
var this$2 = these;
|
|
20623
20669
|
these = this$2.tail__sci_List()
|
|
@@ -20630,7 +20676,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
|
|
|
20630
20676
|
var x$1 = el$3.id$1;
|
|
20631
20677
|
var x$2$1 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20632
20678
|
if (((x$1 !== null) && x$1.equals__O__Z(x$2$1))) {
|
|
20633
|
-
throw new $c_sr_NonLocalReturnControl().init___O__O(
|
|
20679
|
+
throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey2, el$3)
|
|
20634
20680
|
};
|
|
20635
20681
|
var this$4 = these$1;
|
|
20636
20682
|
these$1 = this$4.tail__sci_List()
|
|
@@ -20665,7 +20711,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
|
|
|
20665
20711
|
} catch (e) {
|
|
20666
20712
|
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
20667
20713
|
var ex = $as_sr_NonLocalReturnControl(e);
|
|
20668
|
-
if ((ex.key$2 ===
|
|
20714
|
+
if ((ex.key$2 === nonLocalReturnKey2)) {
|
|
20669
20715
|
return $as_Lio_kaitai_struct_format_MemberSpec(ex.value__O())
|
|
20670
20716
|
} else {
|
|
20671
20717
|
throw ex
|
|
@@ -29633,6 +29679,38 @@ $c_Lio_kaitai_struct_languages_CppCompiler$.prototype.combineSwitchType__Lio_kai
|
|
|
29633
29679
|
})(this))).values__sc_Iterable());
|
|
29634
29680
|
return (st.isOwning$2 ? ct1 : ct1.asNonOwning__Lio_kaitai_struct_datatype_DataType())
|
|
29635
29681
|
});
|
|
29682
|
+
$c_Lio_kaitai_struct_languages_CppCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
29683
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
29684
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
29685
|
+
var name = x2.name$2;
|
|
29686
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
29687
|
+
return name
|
|
29688
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
29689
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
29690
|
+
var name$2 = x3.name$2;
|
|
29691
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
29692
|
+
return name$2
|
|
29693
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
29694
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
29695
|
+
var idx = x4.idx$2;
|
|
29696
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
29697
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
29698
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
29699
|
+
var name$3 = x5.name$2;
|
|
29700
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
29701
|
+
return name$3
|
|
29702
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
29703
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
29704
|
+
var inner = x6.innerId$2;
|
|
29705
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
29706
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
29707
|
+
var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
29708
|
+
var inner$2 = x7.innerId$2;
|
|
29709
|
+
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner$2))
|
|
29710
|
+
} else {
|
|
29711
|
+
throw new $c_s_MatchError().init___O(id)
|
|
29712
|
+
}
|
|
29713
|
+
});
|
|
29636
29714
|
$c_Lio_kaitai_struct_languages_CppCompiler$.prototype.type2class__T__T = (function(name) {
|
|
29637
29715
|
return (($m_Lio_kaitai_struct_Utils$(), name) + "_t")
|
|
29638
29716
|
});
|
|
@@ -33830,9 +33908,6 @@ function $h_Lio_kaitai_struct_languages_JavaCompiler$() {
|
|
|
33830
33908
|
/*<skip>*/
|
|
33831
33909
|
}
|
|
33832
33910
|
$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
33911
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
|
|
33837
33912
|
_kaitaiType2JavaTypePrim: while (true) {
|
|
33838
33913
|
var rc74 = false;
|
|
@@ -34016,6 +34091,12 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypePrim__
|
|
|
34016
34091
|
throw new $c_s_MatchError().init___O(x1)
|
|
34017
34092
|
}
|
|
34018
34093
|
});
|
|
34094
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.init___ = (function() {
|
|
34095
|
+
return this
|
|
34096
|
+
});
|
|
34097
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T = (function(attrType, isNullable) {
|
|
34098
|
+
return (isNullable ? this.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType) : this.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType))
|
|
34099
|
+
});
|
|
34019
34100
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.types2class__sci_List__T = (function(names) {
|
|
34020
34101
|
var f = (function($this) {
|
|
34021
34102
|
return (function(x$2) {
|
|
@@ -34056,12 +34137,34 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.types2class__sci_List__T
|
|
|
34056
34137
|
};
|
|
34057
34138
|
return $as_sc_TraversableOnce(jsx$1).mkString__T__T(".")
|
|
34058
34139
|
});
|
|
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
34140
|
$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
34141
|
return new $c_Lio_kaitai_struct_languages_JavaCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
34064
34142
|
});
|
|
34143
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
34144
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
34145
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
34146
|
+
var name = x2.name$2;
|
|
34147
|
+
return name
|
|
34148
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
34149
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
34150
|
+
var name$2 = x3.name$2;
|
|
34151
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
34152
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
34153
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
34154
|
+
var idx = x4.idx$2;
|
|
34155
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
34156
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
34157
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
34158
|
+
var name$3 = x5.name$2;
|
|
34159
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
34160
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
34161
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
34162
|
+
var innerId = x6.innerId$2;
|
|
34163
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
34164
|
+
} else {
|
|
34165
|
+
throw new $c_s_MatchError().init___O(id)
|
|
34166
|
+
}
|
|
34167
|
+
});
|
|
34065
34168
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
|
|
34066
34169
|
_kaitaiType2JavaTypeBoxed: while (true) {
|
|
34067
34170
|
var rc72 = false;
|
|
@@ -34286,6 +34389,33 @@ $c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.init___ = (function() {
|
|
|
34286
34389
|
$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
34390
|
return new $c_Lio_kaitai_struct_languages_RubyCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
34288
34391
|
});
|
|
34392
|
+
$c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
34393
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
34394
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
34395
|
+
var name = x2.name$2;
|
|
34396
|
+
return name
|
|
34397
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
34398
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
34399
|
+
var name$2 = x3.name$2;
|
|
34400
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
34401
|
+
return name$2
|
|
34402
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
34403
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
34404
|
+
var idx = x4.idx$2;
|
|
34405
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
34406
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
34407
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
34408
|
+
var name$3 = x5.name$2;
|
|
34409
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
34410
|
+
return name$3
|
|
34411
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
34412
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
34413
|
+
var inner = x6.innerId$2;
|
|
34414
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
34415
|
+
} else {
|
|
34416
|
+
throw new $c_s_MatchError().init___O(id)
|
|
34417
|
+
}
|
|
34418
|
+
});
|
|
34289
34419
|
$c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
34290
34420
|
var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
|
|
34291
34421
|
if ((x === err)) {
|
|
@@ -41022,6 +41152,33 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.ksErrorName__Lio_kaitai
|
|
|
41022
41152
|
return err.name__T()
|
|
41023
41153
|
}
|
|
41024
41154
|
});
|
|
41155
|
+
$c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41156
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41157
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41158
|
+
var name = x2.name$2;
|
|
41159
|
+
return ("M" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name))
|
|
41160
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41161
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41162
|
+
var name$2 = x3.name$2;
|
|
41163
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
41164
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41165
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41166
|
+
var idx = x4.idx$2;
|
|
41167
|
+
var x = $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1;
|
|
41168
|
+
var this$2 = new $c_sci_StringOps().init___T(x);
|
|
41169
|
+
return (($f_sci_StringLike__capitalize__T(this$2) + "_") + idx)
|
|
41170
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41171
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41172
|
+
var name$3 = x5.name$2;
|
|
41173
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$3)
|
|
41174
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41175
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41176
|
+
var innerId = x6.innerId$2;
|
|
41177
|
+
return ("M_Raw" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41178
|
+
} else {
|
|
41179
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41180
|
+
}
|
|
41181
|
+
});
|
|
41025
41182
|
$c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.types2class__sc_Iterable__T = (function(names) {
|
|
41026
41183
|
var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
41027
41184
|
return (function(name$2) {
|
|
@@ -41305,9 +41462,60 @@ $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.kaitaiType2NativeType__Lio_
|
|
|
41305
41462
|
$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
41463
|
return new $c_Lio_kaitai_struct_languages_GoCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41307
41464
|
});
|
|
41465
|
+
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41466
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41467
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41468
|
+
var name = x2.name$2;
|
|
41469
|
+
return name
|
|
41470
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41471
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41472
|
+
var name$2 = x3.name$2;
|
|
41473
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
41474
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41475
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41476
|
+
var idx = x4.idx$2;
|
|
41477
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
41478
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41479
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41480
|
+
var name$3 = x5.name$2;
|
|
41481
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
41482
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41483
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41484
|
+
var innerId = x6.innerId$2;
|
|
41485
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41486
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
41487
|
+
var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
41488
|
+
var innerId$2 = x7.innerId$2;
|
|
41489
|
+
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
|
|
41490
|
+
} else {
|
|
41491
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41492
|
+
}
|
|
41493
|
+
});
|
|
41308
41494
|
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
41309
41495
|
return ("kaitai." + err.name__T())
|
|
41310
41496
|
});
|
|
41497
|
+
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41498
|
+
var x = $m_Lio_kaitai_struct_format_IoIdentifier$();
|
|
41499
|
+
if (x.equals__O__Z(id)) {
|
|
41500
|
+
return "_IO"
|
|
41501
|
+
} else {
|
|
41502
|
+
var x$3 = $m_Lio_kaitai_struct_format_RootIdentifier$();
|
|
41503
|
+
if (x$3.equals__O__Z(id)) {
|
|
41504
|
+
return "_Root"
|
|
41505
|
+
} else {
|
|
41506
|
+
var x$5 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
|
|
41507
|
+
if (x$5.equals__O__Z(id)) {
|
|
41508
|
+
return "_Parent"
|
|
41509
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41510
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41511
|
+
var name = x2.name$2;
|
|
41512
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
41513
|
+
} else {
|
|
41514
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
41515
|
+
}
|
|
41516
|
+
}
|
|
41517
|
+
}
|
|
41518
|
+
});
|
|
41311
41519
|
var $d_Lio_kaitai_struct_languages_GoCompiler$ = new $TypeData().initClass({
|
|
41312
41520
|
Lio_kaitai_struct_languages_GoCompiler$: 0
|
|
41313
41521
|
}, false, "io.kaitai.struct.languages.GoCompiler$", {
|
|
@@ -41383,6 +41591,31 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.types2class__sci_Li
|
|
|
41383
41591
|
$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
41592
|
return new $c_Lio_kaitai_struct_languages_JavaScriptCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41385
41593
|
});
|
|
41594
|
+
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41595
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41596
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41597
|
+
var name = x2.name$2;
|
|
41598
|
+
return name
|
|
41599
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41600
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41601
|
+
var name$2 = x3.name$2;
|
|
41602
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
41603
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41604
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41605
|
+
var idx = x4.idx$2;
|
|
41606
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
41607
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41608
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41609
|
+
var name$3 = x5.name$2;
|
|
41610
|
+
return ("_m_" + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3))
|
|
41611
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41612
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41613
|
+
var innerId = x6.innerId$2;
|
|
41614
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41615
|
+
} else {
|
|
41616
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41617
|
+
}
|
|
41618
|
+
});
|
|
41386
41619
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
41387
41620
|
var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
|
|
41388
41621
|
if ((x === err)) {
|
|
@@ -41391,6 +41624,15 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.ksErrorName__Lio_ka
|
|
|
41391
41624
|
return ("KaitaiStream." + err.name__T())
|
|
41392
41625
|
}
|
|
41393
41626
|
});
|
|
41627
|
+
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41628
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41629
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41630
|
+
var name = x2.name$2;
|
|
41631
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)
|
|
41632
|
+
} else {
|
|
41633
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
41634
|
+
}
|
|
41635
|
+
});
|
|
41394
41636
|
var $d_Lio_kaitai_struct_languages_JavaScriptCompiler$ = new $TypeData().initClass({
|
|
41395
41637
|
Lio_kaitai_struct_languages_JavaScriptCompiler$: 0
|
|
41396
41638
|
}, false, "io.kaitai.struct.languages.JavaScriptCompiler$", {
|
|
@@ -41466,6 +41708,40 @@ $c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.types2class__sci_List__T =
|
|
|
41466
41708
|
$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
41709
|
return new $c_Lio_kaitai_struct_languages_LuaCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41468
41710
|
});
|
|
41711
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41712
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41713
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41714
|
+
var name = x2.name$2;
|
|
41715
|
+
return name
|
|
41716
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41717
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41718
|
+
var name$2 = x3.name$2;
|
|
41719
|
+
return name$2
|
|
41720
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41721
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41722
|
+
var idx = x4.idx$2;
|
|
41723
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
41724
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41725
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41726
|
+
var name$3 = x5.name$2;
|
|
41727
|
+
return ("_m_" + name$3)
|
|
41728
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41729
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41730
|
+
var innerId = x6.innerId$2;
|
|
41731
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41732
|
+
} else {
|
|
41733
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41734
|
+
}
|
|
41735
|
+
});
|
|
41736
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41737
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41738
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41739
|
+
var name = x2.name$2;
|
|
41740
|
+
return name
|
|
41741
|
+
} else {
|
|
41742
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
41743
|
+
}
|
|
41744
|
+
});
|
|
41469
41745
|
var $d_Lio_kaitai_struct_languages_LuaCompiler$ = new $TypeData().initClass({
|
|
41470
41746
|
Lio_kaitai_struct_languages_LuaCompiler$: 0
|
|
41471
41747
|
}, false, "io.kaitai.struct.languages.LuaCompiler$", {
|
|
@@ -41869,6 +42145,31 @@ $c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.init___ = (function() {
|
|
|
41869
42145
|
$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
42146
|
return new $c_Lio_kaitai_struct_languages_PHPCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41871
42147
|
});
|
|
42148
|
+
$c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42149
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
42150
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
42151
|
+
var name = x2.name$2;
|
|
42152
|
+
return name
|
|
42153
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
42154
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
42155
|
+
var name$2 = x3.name$2;
|
|
42156
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
42157
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
42158
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
42159
|
+
var idx = x4.idx$2;
|
|
42160
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
42161
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42162
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42163
|
+
var name$3 = x5.name$2;
|
|
42164
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
42165
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
42166
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
42167
|
+
var innerId = x6.innerId$2;
|
|
42168
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
42169
|
+
} else {
|
|
42170
|
+
throw new $c_s_MatchError().init___O(id)
|
|
42171
|
+
}
|
|
42172
|
+
});
|
|
41872
42173
|
$c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.types2classRel__sci_List__T = (function(names) {
|
|
41873
42174
|
var f = (function($this) {
|
|
41874
42175
|
return (function(name$2) {
|
|
@@ -41993,6 +42294,31 @@ $c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.kstreamName__T = (functio
|
|
|
41993
42294
|
$c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.kstructName__T = (function() {
|
|
41994
42295
|
return "IO::KaitaiStruct::Struct"
|
|
41995
42296
|
});
|
|
42297
|
+
$c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42298
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
42299
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
42300
|
+
var name = x2.name$2;
|
|
42301
|
+
return name
|
|
42302
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
42303
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
42304
|
+
var name$2 = x3.name$2;
|
|
42305
|
+
return name$2
|
|
42306
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
42307
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
42308
|
+
var idx = x4.idx$2;
|
|
42309
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
42310
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42311
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42312
|
+
var name$3 = x5.name$2;
|
|
42313
|
+
return name$3
|
|
42314
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
42315
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
42316
|
+
var inner = x6.innerId$2;
|
|
42317
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
42318
|
+
} else {
|
|
42319
|
+
throw new $c_s_MatchError().init___O(id)
|
|
42320
|
+
}
|
|
42321
|
+
});
|
|
41996
42322
|
var $d_Lio_kaitai_struct_languages_PerlCompiler$ = new $TypeData().initClass({
|
|
41997
42323
|
Lio_kaitai_struct_languages_PerlCompiler$: 0
|
|
41998
42324
|
}, false, "io.kaitai.struct.languages.PerlCompiler$", {
|
|
@@ -42068,6 +42394,31 @@ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.types2class__sci_List__
|
|
|
42068
42394
|
$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
42395
|
return new $c_Lio_kaitai_struct_languages_PythonCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
42070
42396
|
});
|
|
42397
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42398
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
42399
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
42400
|
+
var name = x2.name$2;
|
|
42401
|
+
return name
|
|
42402
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
42403
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
42404
|
+
var name$2 = x3.name$2;
|
|
42405
|
+
return name$2
|
|
42406
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
42407
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
42408
|
+
var idx = x4.idx$2;
|
|
42409
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
42410
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42411
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42412
|
+
var name$3 = x5.name$2;
|
|
42413
|
+
return ("_m_" + name$3)
|
|
42414
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
42415
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
42416
|
+
var innerId = x6.innerId$2;
|
|
42417
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
42418
|
+
} else {
|
|
42419
|
+
throw new $c_s_MatchError().init___O(id)
|
|
42420
|
+
}
|
|
42421
|
+
});
|
|
42071
42422
|
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
42072
42423
|
var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
|
|
42073
42424
|
if ((x === err)) {
|
|
@@ -42076,6 +42427,15 @@ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.ksErrorName__Lio_kaitai
|
|
|
42076
42427
|
return ("kaitaistruct." + err.name__T())
|
|
42077
42428
|
}
|
|
42078
42429
|
});
|
|
42430
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42431
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42432
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42433
|
+
var name = x2.name$2;
|
|
42434
|
+
return name
|
|
42435
|
+
} else {
|
|
42436
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
42437
|
+
}
|
|
42438
|
+
});
|
|
42079
42439
|
var $d_Lio_kaitai_struct_languages_PythonCompiler$ = new $TypeData().initClass({
|
|
42080
42440
|
Lio_kaitai_struct_languages_PythonCompiler$: 0
|
|
42081
42441
|
}, false, "io.kaitai.struct.languages.PythonCompiler$", {
|
|
@@ -48411,6 +48771,82 @@ var $d_Lio_kaitai_struct_exprlang_Ast$expr$IntNum = new $TypeData().initClass({
|
|
|
48411
48771
|
});
|
|
48412
48772
|
$c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum.prototype.$classData = $d_Lio_kaitai_struct_exprlang_Ast$expr$IntNum;
|
|
48413
48773
|
/** @constructor */
|
|
48774
|
+
function $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName() {
|
|
48775
|
+
$c_O.call(this);
|
|
48776
|
+
this.id$1 = null
|
|
48777
|
+
}
|
|
48778
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype = new $h_O();
|
|
48779
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.constructor = $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName;
|
|
48780
|
+
/** @constructor */
|
|
48781
|
+
function $h_Lio_kaitai_struct_exprlang_Ast$expr$InternalName() {
|
|
48782
|
+
/*<skip>*/
|
|
48783
|
+
}
|
|
48784
|
+
$h_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype = $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype;
|
|
48785
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productPrefix__T = (function() {
|
|
48786
|
+
return "InternalName"
|
|
48787
|
+
});
|
|
48788
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productArity__I = (function() {
|
|
48789
|
+
return 1
|
|
48790
|
+
});
|
|
48791
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.equals__O__Z = (function(x$1) {
|
|
48792
|
+
if ((this === x$1)) {
|
|
48793
|
+
return true
|
|
48794
|
+
} else if ((x$1 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
48795
|
+
var InternalName$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(x$1);
|
|
48796
|
+
var x = this.id$1;
|
|
48797
|
+
var x$2 = InternalName$1.id$1;
|
|
48798
|
+
return ((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))
|
|
48799
|
+
} else {
|
|
48800
|
+
return false
|
|
48801
|
+
}
|
|
48802
|
+
});
|
|
48803
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productElement__I__O = (function(x$1) {
|
|
48804
|
+
switch (x$1) {
|
|
48805
|
+
case 0: {
|
|
48806
|
+
return this.id$1;
|
|
48807
|
+
break
|
|
48808
|
+
}
|
|
48809
|
+
default: {
|
|
48810
|
+
throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
|
|
48811
|
+
}
|
|
48812
|
+
}
|
|
48813
|
+
});
|
|
48814
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.init___Lio_kaitai_struct_format_Identifier = (function(id) {
|
|
48815
|
+
this.id$1 = id;
|
|
48816
|
+
return this
|
|
48817
|
+
});
|
|
48818
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.toString__T = (function() {
|
|
48819
|
+
return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
|
|
48820
|
+
});
|
|
48821
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.hashCode__I = (function() {
|
|
48822
|
+
var this$2 = $m_s_util_hashing_MurmurHash3$();
|
|
48823
|
+
return this$2.productHash__s_Product__I__I(this, (-889275714))
|
|
48824
|
+
});
|
|
48825
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productIterator__sc_Iterator = (function() {
|
|
48826
|
+
return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
|
|
48827
|
+
});
|
|
48828
|
+
function $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj) {
|
|
48829
|
+
return (((obj instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.exprlang.Ast$expr$InternalName"))
|
|
48830
|
+
}
|
|
48831
|
+
function $isArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) {
|
|
48832
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_exprlang_Ast$expr$InternalName)))
|
|
48833
|
+
}
|
|
48834
|
+
function $asArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) {
|
|
48835
|
+
return (($isArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.exprlang.Ast$expr$InternalName;", depth))
|
|
48836
|
+
}
|
|
48837
|
+
var $d_Lio_kaitai_struct_exprlang_Ast$expr$InternalName = new $TypeData().initClass({
|
|
48838
|
+
Lio_kaitai_struct_exprlang_Ast$expr$InternalName: 0
|
|
48839
|
+
}, false, "io.kaitai.struct.exprlang.Ast$expr$InternalName", {
|
|
48840
|
+
Lio_kaitai_struct_exprlang_Ast$expr$InternalName: 1,
|
|
48841
|
+
O: 1,
|
|
48842
|
+
Lio_kaitai_struct_exprlang_Ast$expr: 1,
|
|
48843
|
+
s_Product: 1,
|
|
48844
|
+
s_Equals: 1,
|
|
48845
|
+
s_Serializable: 1,
|
|
48846
|
+
Ljava_io_Serializable: 1
|
|
48847
|
+
});
|
|
48848
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.$classData = $d_Lio_kaitai_struct_exprlang_Ast$expr$InternalName;
|
|
48849
|
+
/** @constructor */
|
|
48414
48850
|
function $c_Lio_kaitai_struct_exprlang_Ast$expr$List() {
|
|
48415
48851
|
$c_O.call(this);
|
|
48416
48852
|
this.elts$1 = null
|
|
@@ -62717,6 +63153,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.byteSizeOfValue__T__Li
|
|
|
62717
63153
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
62718
63154
|
return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
62719
63155
|
});
|
|
63156
|
+
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
63157
|
+
$m_s_Predef$().$$qmark$qmark$qmark__sr_Nothing$()
|
|
63158
|
+
});
|
|
62720
63159
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
62721
63160
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
62722
63161
|
});
|
|
@@ -62910,10 +63349,17 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62910
63349
|
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
63350
|
}
|
|
62912
63351
|
};
|
|
63352
|
+
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
63353
|
+
var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
|
|
63354
|
+
var id$2 = x9.id$1;
|
|
63355
|
+
if ((id$2 !== null)) {
|
|
63356
|
+
return this.doInternalName__Lio_kaitai_struct_format_Identifier__T(id$2)
|
|
63357
|
+
}
|
|
63358
|
+
};
|
|
62913
63359
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
|
|
62914
|
-
var
|
|
62915
|
-
var op =
|
|
62916
|
-
var inner =
|
|
63360
|
+
var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
|
|
63361
|
+
var op = x10.op$1;
|
|
63362
|
+
var inner = x10.operand$1;
|
|
62917
63363
|
if ((op !== null)) {
|
|
62918
63364
|
if ((inner !== null)) {
|
|
62919
63365
|
var opStr = this.unaryOp__Lio_kaitai_struct_exprlang_Ast$unaryop__T(op);
|
|
@@ -62929,10 +63375,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62929
63375
|
}
|
|
62930
63376
|
};
|
|
62931
63377
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
|
|
62932
|
-
var
|
|
62933
|
-
var left =
|
|
62934
|
-
var op$2 =
|
|
62935
|
-
var right =
|
|
63378
|
+
var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
|
|
63379
|
+
var left = x11.left$1;
|
|
63380
|
+
var op$2 = x11.ops$1;
|
|
63381
|
+
var right = x11.right$1;
|
|
62936
63382
|
if ((left !== null)) {
|
|
62937
63383
|
if ((op$2 !== null)) {
|
|
62938
63384
|
if ((right !== null)) {
|
|
@@ -62962,10 +63408,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62962
63408
|
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
63409
|
};
|
|
62964
63410
|
if ((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
|
|
62965
|
-
var x18
|
|
63411
|
+
var x18 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_1);
|
|
62966
63412
|
if ((_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
|
|
62967
63413
|
var x19$2 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_2);
|
|
62968
|
-
var et1Spec = $as_Lio_kaitai_struct_format_EnumSpec(x18
|
|
63414
|
+
var et1Spec = $as_Lio_kaitai_struct_format_EnumSpec(x18.enumSpec$1.get__O());
|
|
62969
63415
|
var et2Spec = $as_Lio_kaitai_struct_format_EnumSpec(x19$2.enumSpec$1.get__O());
|
|
62970
63416
|
if ((!((et1Spec === null) ? (et2Spec === null) : et1Spec.equals__O__Z(et2Spec)))) {
|
|
62971
63417
|
var this$1 = et1Spec.name$1;
|
|
@@ -62983,10 +63429,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62983
63429
|
}
|
|
62984
63430
|
};
|
|
62985
63431
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
|
|
62986
|
-
var
|
|
62987
|
-
var left$2 =
|
|
62988
|
-
var op$3 =
|
|
62989
|
-
var right$2 =
|
|
63432
|
+
var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
|
|
63433
|
+
var left$2 = x12.left$1;
|
|
63434
|
+
var op$3 = x12.op$1;
|
|
63435
|
+
var right$2 = x12.right$1;
|
|
62990
63436
|
if ((left$2 !== null)) {
|
|
62991
63437
|
if ((op$3 !== null)) {
|
|
62992
63438
|
if ((right$2 !== null)) {
|
|
@@ -63016,9 +63462,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
63016
63462
|
}
|
|
63017
63463
|
};
|
|
63018
63464
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
|
|
63019
|
-
var
|
|
63020
|
-
var op$4 =
|
|
63021
|
-
var values =
|
|
63465
|
+
var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
|
|
63466
|
+
var op$4 = x13.op$1;
|
|
63467
|
+
var values = x13.values$1;
|
|
63022
63468
|
if ((op$4 !== null)) {
|
|
63023
63469
|
if ((values !== null)) {
|
|
63024
63470
|
return $f_Lio_kaitai_struct_translators_CommonOps__doBooleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__sc_Seq__T(this, op$4, values)
|
|
@@ -63026,16 +63472,16 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
63026
63472
|
}
|
|
63027
63473
|
};
|
|
63028
63474
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
|
|
63029
|
-
var
|
|
63030
|
-
var condition =
|
|
63031
|
-
var ifTrue =
|
|
63032
|
-
var ifFalse =
|
|
63475
|
+
var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
|
|
63476
|
+
var condition = x14.condition$1;
|
|
63477
|
+
var ifTrue = x14.ifTrue$1;
|
|
63478
|
+
var ifFalse = x14.ifFalse$1;
|
|
63033
63479
|
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
63480
|
};
|
|
63035
63481
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
63036
|
-
var
|
|
63037
|
-
var container =
|
|
63038
|
-
var idx =
|
|
63482
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
|
|
63483
|
+
var container = x15.value$1;
|
|
63484
|
+
var idx = x15.idx$1;
|
|
63039
63485
|
if ((container !== null)) {
|
|
63040
63486
|
if ((idx !== null)) {
|
|
63041
63487
|
var x1$6 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(idx);
|
|
@@ -63055,32 +63501,32 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
63055
63501
|
}
|
|
63056
63502
|
};
|
|
63057
63503
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
63058
|
-
var
|
|
63059
|
-
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this,
|
|
63504
|
+
var x33 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
|
|
63505
|
+
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x33))
|
|
63060
63506
|
};
|
|
63061
63507
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
63062
|
-
var
|
|
63063
|
-
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this,
|
|
63508
|
+
var x34 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
|
|
63509
|
+
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x34))
|
|
63064
63510
|
};
|
|
63065
63511
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
63066
|
-
var
|
|
63067
|
-
var values$2 =
|
|
63512
|
+
var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
|
|
63513
|
+
var values$2 = x16.elts$1;
|
|
63068
63514
|
if ((values$2 !== null)) {
|
|
63069
63515
|
return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doGuessArrayLiteral__sc_Seq__O(this, values$2))
|
|
63070
63516
|
}
|
|
63071
63517
|
};
|
|
63072
63518
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
63073
|
-
var
|
|
63074
|
-
return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this,
|
|
63519
|
+
var x36 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
|
|
63520
|
+
return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x36))
|
|
63075
63521
|
};
|
|
63076
63522
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
|
|
63077
|
-
var
|
|
63078
|
-
var typeName =
|
|
63523
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
|
|
63524
|
+
var typeName = x17.typeName$1;
|
|
63079
63525
|
return this.doByteSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__T(typeName)
|
|
63080
63526
|
};
|
|
63081
63527
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType)) {
|
|
63082
|
-
var
|
|
63083
|
-
var typeName$2 =
|
|
63528
|
+
var x18$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
|
|
63529
|
+
var typeName$2 = x18$2.typeName$1;
|
|
63084
63530
|
return this.doBitSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__T(typeName$2)
|
|
63085
63531
|
};
|
|
63086
63532
|
throw new $c_s_MatchError().init___O(v)
|
|
@@ -63379,12 +63825,12 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doByteArrayLiteral__sc_S
|
|
|
63379
63825
|
$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
63826
|
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value, num)
|
|
63381
63827
|
});
|
|
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
63828
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
|
|
63386
63829
|
return this.asciiCharQuoteMap$2
|
|
63387
63830
|
});
|
|
63831
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.trEnumByLabel__sci_List__T__Lio_kaitai_struct_translators_ResultString = (function(enumTypeAbs, label) {
|
|
63832
|
+
return new $c_Lio_kaitai_struct_translators_ResultString().init___T($m_Lio_kaitai_struct_languages_GoCompiler$().enumToStr__sci_List__T__T(enumTypeAbs, label))
|
|
63833
|
+
});
|
|
63388
63834
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(s) {
|
|
63389
63835
|
return new $c_Lio_kaitai_struct_translators_ResultString().init___T((("kaitai.StringReverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")"))
|
|
63390
63836
|
});
|
|
@@ -63679,6 +64125,23 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doByteArrayNonLiteral__s
|
|
|
63679
64125
|
var this$1 = $m_sc_Seq$();
|
|
63680
64126
|
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
64127
|
});
|
|
64128
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.trInternalName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult = (function(id) {
|
|
64129
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
64130
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
64131
|
+
var name = x2.name$2;
|
|
64132
|
+
return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name)
|
|
64133
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
64134
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
64135
|
+
var name$2 = x3.name$2;
|
|
64136
|
+
return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name$2)
|
|
64137
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
64138
|
+
var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
64139
|
+
var name$3 = x4.name$2;
|
|
64140
|
+
return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name$3)
|
|
64141
|
+
} else {
|
|
64142
|
+
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)))
|
|
64143
|
+
}
|
|
64144
|
+
});
|
|
63682
64145
|
$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
64146
|
return this.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value, expr)
|
|
63684
64147
|
});
|
|
@@ -63755,10 +64218,17 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63755
64218
|
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
64219
|
}
|
|
63757
64220
|
};
|
|
64221
|
+
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
64222
|
+
var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
|
|
64223
|
+
var id$2 = x9.id$1;
|
|
64224
|
+
if ((id$2 !== null)) {
|
|
64225
|
+
return this.trInternalName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult(id$2)
|
|
64226
|
+
}
|
|
64227
|
+
};
|
|
63758
64228
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
|
|
63759
|
-
var
|
|
63760
|
-
var op =
|
|
63761
|
-
var inner =
|
|
64229
|
+
var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
|
|
64230
|
+
var op = x10.op$1;
|
|
64231
|
+
var inner = x10.operand$1;
|
|
63762
64232
|
if ((op !== null)) {
|
|
63763
64233
|
if ((inner !== null)) {
|
|
63764
64234
|
var opStr = this.unaryOp__Lio_kaitai_struct_exprlang_Ast$unaryop__T(op);
|
|
@@ -63775,10 +64245,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63775
64245
|
}
|
|
63776
64246
|
};
|
|
63777
64247
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
|
|
63778
|
-
var
|
|
63779
|
-
var left =
|
|
63780
|
-
var op$2 =
|
|
63781
|
-
var right =
|
|
64248
|
+
var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
|
|
64249
|
+
var left = x11.left$1;
|
|
64250
|
+
var op$2 = x11.ops$1;
|
|
64251
|
+
var right = x11.right$1;
|
|
63782
64252
|
var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
|
|
63783
64253
|
var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
|
|
63784
64254
|
if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType))) {
|
|
@@ -63796,10 +64266,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63796
64266
|
}
|
|
63797
64267
|
};
|
|
63798
64268
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
|
|
63799
|
-
var
|
|
63800
|
-
var left$2 =
|
|
63801
|
-
var op$3 =
|
|
63802
|
-
var right$2 =
|
|
64269
|
+
var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
|
|
64270
|
+
var left$2 = x12.left$1;
|
|
64271
|
+
var op$3 = x12.op$1;
|
|
64272
|
+
var right$2 = x12.right$1;
|
|
63803
64273
|
if ((left$2 !== null)) {
|
|
63804
64274
|
if ((op$3 !== null)) {
|
|
63805
64275
|
if ((right$2 !== null)) {
|
|
@@ -63829,49 +64299,49 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63829
64299
|
}
|
|
63830
64300
|
};
|
|
63831
64301
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
|
|
63832
|
-
var
|
|
63833
|
-
var op$4 =
|
|
63834
|
-
var values =
|
|
64302
|
+
var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
|
|
64303
|
+
var op$4 = x13.op$1;
|
|
64304
|
+
var values = x13.values$1;
|
|
63835
64305
|
return this.trBooleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__sc_Seq__Lio_kaitai_struct_translators_ResultString(op$4, values)
|
|
63836
64306
|
};
|
|
63837
64307
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
|
|
63838
|
-
var
|
|
63839
|
-
var condition =
|
|
63840
|
-
var ifTrue =
|
|
63841
|
-
var ifFalse =
|
|
64308
|
+
var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
|
|
64309
|
+
var condition = x14.condition$1;
|
|
64310
|
+
var ifTrue = x14.ifTrue$1;
|
|
64311
|
+
var ifFalse = x14.ifFalse$1;
|
|
63842
64312
|
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
64313
|
};
|
|
63844
64314
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
63845
|
-
var
|
|
63846
|
-
var container =
|
|
63847
|
-
var idx =
|
|
64315
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
|
|
64316
|
+
var container = x15.value$1;
|
|
64317
|
+
var idx = x15.idx$1;
|
|
63848
64318
|
return this.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString(container, idx)
|
|
63849
64319
|
};
|
|
63850
64320
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
63851
|
-
var
|
|
63852
|
-
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this,
|
|
64321
|
+
var x26 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
|
|
64322
|
+
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
64323
|
};
|
|
63854
64324
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
63855
|
-
var
|
|
63856
|
-
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this,
|
|
64325
|
+
var x27 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
|
|
64326
|
+
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
64327
|
};
|
|
63858
64328
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
63859
|
-
var
|
|
63860
|
-
var elts =
|
|
64329
|
+
var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
|
|
64330
|
+
var elts = x16.elts$1;
|
|
63861
64331
|
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doGuessArrayLiteral__sc_Seq__O(this, elts))
|
|
63862
64332
|
};
|
|
63863
64333
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
63864
|
-
var
|
|
63865
|
-
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this,
|
|
64334
|
+
var x28 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
|
|
64335
|
+
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
64336
|
};
|
|
63867
64337
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
|
|
63868
|
-
var
|
|
63869
|
-
var typeName =
|
|
64338
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
|
|
64339
|
+
var typeName = x17.typeName$1;
|
|
63870
64340
|
return this.doByteSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_translators_TranslatorResult(typeName)
|
|
63871
64341
|
};
|
|
63872
64342
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType)) {
|
|
63873
|
-
var
|
|
63874
|
-
var typeName$2 =
|
|
64343
|
+
var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
|
|
64344
|
+
var typeName$2 = x18.typeName$1;
|
|
63875
64345
|
return this.doBitSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_translators_TranslatorResult(typeName$2)
|
|
63876
64346
|
};
|
|
63877
64347
|
throw new $c_s_MatchError().init___O(v)
|
|
@@ -65812,6 +66282,9 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.enumClass__sci_List_
|
|
|
65812
66282
|
var enumTypeRel = $m_Lio_kaitai_struct_Utils$().relClass__sci_List__sci_List__sci_List(enumTypeAbs, this.provider$2.nowClass$1.name$1);
|
|
65813
66283
|
return $m_Lio_kaitai_struct_languages_CSharpCompiler$().types2class__sc_Iterable__T(enumTypeRel)
|
|
65814
66284
|
});
|
|
66285
|
+
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
66286
|
+
return ("" + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
66287
|
+
});
|
|
65815
66288
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
65816
66289
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
65817
66290
|
});
|
|
@@ -66070,6 +66543,9 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strSubstring__Li
|
|
|
66070
66543
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
|
|
66071
66544
|
return (("Array.from(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ").reverse().join('')")
|
|
66072
66545
|
});
|
|
66546
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
66547
|
+
return ("this." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
66548
|
+
});
|
|
66073
66549
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
66074
66550
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
66075
66551
|
});
|
|
@@ -66098,12 +66574,12 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_ka
|
|
|
66098
66574
|
$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
66575
|
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
66576
|
});
|
|
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
66577
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
66105
66578
|
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " | 0)")
|
|
66106
66579
|
});
|
|
66580
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
|
|
66581
|
+
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
|
|
66582
|
+
});
|
|
66107
66583
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
66108
66584
|
return this.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
66109
66585
|
});
|
|
@@ -66139,12 +66615,12 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arrayMax__Lio_ka
|
|
|
66139
66615
|
$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
66616
|
return (((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").toString(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base)) + ")")
|
|
66141
66617
|
});
|
|
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
66618
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doName__T__T = (function(s) {
|
|
66146
66619
|
return (((s === "_root") || ((s === "_parent") || (s === "_io"))) ? s : $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s))
|
|
66147
66620
|
});
|
|
66621
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
66622
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + ".isEof()")
|
|
66623
|
+
});
|
|
66148
66624
|
$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
66625
|
return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
|
|
66150
66626
|
});
|
|
@@ -66388,6 +66864,10 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.enumClass__sci_List__T
|
|
|
66388
66864
|
};
|
|
66389
66865
|
return $as_sc_TraversableOnce(jsx$1).mkString__T__T(".")
|
|
66390
66866
|
});
|
|
66867
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
66868
|
+
var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
|
|
66869
|
+
return (this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id) + "()")
|
|
66870
|
+
});
|
|
66391
66871
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
66392
66872
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
66393
66873
|
});
|
|
@@ -66452,12 +66932,12 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.arraySubscript__Lio_ka
|
|
|
66452
66932
|
$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
66933
|
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
66934
|
});
|
|
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
66935
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
66459
66936
|
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b) + "[(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ").length - 1]")
|
|
66460
66937
|
});
|
|
66938
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
66939
|
+
return (("KaitaiStream.byteArrayMax(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ")")
|
|
66940
|
+
});
|
|
66461
66941
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doByteArrayNonLiteral__sc_Seq__T = (function(elts) {
|
|
66462
66942
|
var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
66463
66943
|
return (function(v$2) {
|
|
@@ -66499,7 +66979,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
66499
66979
|
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
|
|
66500
66980
|
});
|
|
66501
66981
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doName__T__T = (function(s) {
|
|
66502
|
-
return (($m_Lio_kaitai_struct_format_Identifier$().
|
|
66982
|
+
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
66983
|
});
|
|
66504
66984
|
$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
66985
|
return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
|
|
@@ -66962,6 +67442,10 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strSubstring__Lio_kait
|
|
|
66962
67442
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
66963
67443
|
return (("scalar(reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + "))")
|
|
66964
67444
|
});
|
|
67445
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
67446
|
+
var this$1 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
|
|
67447
|
+
return (("$self->" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "()")
|
|
67448
|
+
});
|
|
66965
67449
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
66966
67450
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
66967
67451
|
});
|
|
@@ -67079,12 +67563,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral_
|
|
|
67079
67563
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
67080
67564
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
67081
67565
|
});
|
|
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
67566
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doLocalName__T__T = (function(s) {
|
|
67086
67567
|
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
67568
|
});
|
|
67569
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
67570
|
+
return (("length(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")")
|
|
67571
|
+
});
|
|
67088
67572
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayLiteral__sc_Seq__O = (function(arr) {
|
|
67089
67573
|
return this.doByteArrayLiteral__sc_Seq__T(arr)
|
|
67090
67574
|
});
|
|
@@ -67326,6 +67810,9 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesLast__Lio_kaita
|
|
|
67326
67810
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
67327
67811
|
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")[::-1]")
|
|
67328
67812
|
});
|
|
67813
|
+
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
67814
|
+
return ("self." + $m_Lio_kaitai_struct_languages_PythonCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
67815
|
+
});
|
|
67329
67816
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
67330
67817
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
67331
67818
|
});
|
|
@@ -67623,6 +68110,10 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.strReverse__Lio_kaitai
|
|
|
67623
68110
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
67624
68111
|
return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
67625
68112
|
});
|
|
68113
|
+
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
68114
|
+
var this$1 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
|
|
68115
|
+
return this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
68116
|
+
});
|
|
67626
68117
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
67627
68118
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
67628
68119
|
});
|
|
@@ -70128,6 +70619,10 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.strReverse__Lio_kaitai_
|
|
|
70128
70619
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
70129
70620
|
return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
70130
70621
|
});
|
|
70622
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
70623
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
70624
|
+
return (this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id) + "()")
|
|
70625
|
+
});
|
|
70131
70626
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
70132
70627
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
70133
70628
|
});
|
|
@@ -70355,6 +70850,9 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.doStrCompareOp__Lio_kai
|
|
|
70355
70850
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
70356
70851
|
return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
70357
70852
|
});
|
|
70853
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
70854
|
+
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
70855
|
+
});
|
|
70358
70856
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.doByteArrayLiteral__sc_Seq__T = (function(arr) {
|
|
70359
70857
|
return (((("std::string(\"" + $m_Lio_kaitai_struct_Utils$().hexEscapeByteArray__sc_Seq__T(arr)) + "\", ") + arr.length__I()) + ")")
|
|
70360
70858
|
});
|
|
@@ -70377,9 +70875,6 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.numericBinOp__Lio_kaita
|
|
|
70377
70875
|
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
70876
|
}
|
|
70379
70877
|
});
|
|
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
70878
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__O = (function(t, value) {
|
|
70384
70879
|
return this.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__T(t, value)
|
|
70385
70880
|
});
|
|
@@ -70507,6 +71002,9 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesLast__Lio_kaitai_s
|
|
|
70507
71002
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
|
|
70508
71003
|
return (("string.reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
|
|
70509
71004
|
});
|
|
71005
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
71006
|
+
return ("self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
71007
|
+
});
|
|
70510
71008
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
70511
71009
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
70512
71010
|
});
|
|
@@ -70966,6 +71464,10 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.init___Lio_kaitai_struc
|
|
|
70966
71464
|
this.namespaceRef$3 = ((thiz === "") ? "" : ("\\" + config.phpNamespace$1));
|
|
70967
71465
|
return this
|
|
70968
71466
|
});
|
|
71467
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
71468
|
+
var this$1 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
|
|
71469
|
+
return (("$this->" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "()")
|
|
71470
|
+
});
|
|
70969
71471
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
70970
71472
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
70971
71473
|
});
|
|
@@ -71140,6 +71642,9 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.arraySize__Lio_kaitai_s
|
|
|
71140
71642
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
71141
71643
|
return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
71142
71644
|
});
|
|
71645
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
71646
|
+
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
71647
|
+
});
|
|
71143
71648
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doByteArrayLiteral__sc_Seq__T = (function(arr) {
|
|
71144
71649
|
return (("\"" + $m_Lio_kaitai_struct_Utils$().hexEscapeByteArray__sc_Seq__T(arr)) + "\"")
|
|
71145
71650
|
});
|
|
@@ -71176,9 +71681,6 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.numericBinOp__Lio_kaita
|
|
|
71176
71681
|
}
|
|
71177
71682
|
}
|
|
71178
71683
|
});
|
|
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
71684
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
|
|
71183
71685
|
return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
|
|
71184
71686
|
});
|
|
@@ -72439,7 +72941,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.newVector__Lio_kaitai_struc
|
|
|
72439
72941
|
}
|
|
72440
72942
|
});
|
|
72441
72943
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
72442
|
-
return ("p_" +
|
|
72944
|
+
return ("p_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
72443
72945
|
});
|
|
72444
72946
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.PrivateAccess$lzycompute$1__p2__V = (function() {
|
|
72445
72947
|
if ((this.PrivateAccess$module$2 === null)) {
|
|
@@ -72491,10 +72993,17 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchCasesUsingIf__Lio_kai
|
|
|
72491
72993
|
});
|
|
72492
72994
|
$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
72995
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
|
|
72494
|
-
|
|
72495
|
-
var
|
|
72496
|
-
this$1
|
|
72497
|
-
|
|
72996
|
+
var jsx$2 = this.outHdr$2;
|
|
72997
|
+
var jsx$1 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false);
|
|
72998
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
72999
|
+
jsx$2.puts__T__V((((jsx$1 + " ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "();"));
|
|
73000
|
+
var this$2 = this.outSrc$2;
|
|
73001
|
+
this$2.sb$2.append__T__scm_StringBuilder("\n");
|
|
73002
|
+
var jsx$5 = this.outSrc$2;
|
|
73003
|
+
var jsx$4 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), true);
|
|
73004
|
+
var jsx$3 = $m_Lio_kaitai_struct_languages_CppCompiler$().types2class__sci_List__T(className);
|
|
73005
|
+
var this$3 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
73006
|
+
jsx$5.puts__T__V((((((jsx$4 + " ") + jsx$3) + "::") + this$3.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
72498
73007
|
this.outSrc$2.inc__V()
|
|
72499
73008
|
});
|
|
72500
73009
|
$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 +73053,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructVector__T__T__V = (
|
|
|
72544
73053
|
this.outSrc$2.puts__T__V("}")
|
|
72545
73054
|
});
|
|
72546
73055
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
72547
|
-
return ("m_" +
|
|
73056
|
+
return ("m_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
72548
73057
|
});
|
|
72549
73058
|
$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
73059
|
this.outSrc$2.puts__T__V("{");
|
|
@@ -73018,38 +73527,6 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrInit__Lio_kaitai_struct
|
|
|
73018
73527
|
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
73528
|
}
|
|
73020
73529
|
});
|
|
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
73530
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.classDestructorHeader__sci_List__Lio_kaitai_struct_datatype_DataType__sci_List__V = (function(name, parentType, topClassName) {
|
|
73054
73531
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$());
|
|
73055
73532
|
this.outHdr$2.puts__T__V("void _clean_up();");
|
|
@@ -73102,13 +73579,13 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructWithSafeguardHeader
|
|
|
73102
73579
|
this.outSrc$2.inc__V()
|
|
73103
73580
|
});
|
|
73104
73581
|
$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_" +
|
|
73582
|
+
var lenVar = ("l_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
73106
73583
|
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
73584
|
this.outSrc$2.puts__T__V((("for (int i = 0; i < " + lenVar) + "; i++) {"));
|
|
73108
73585
|
this.outSrc$2.inc__V()
|
|
73109
73586
|
});
|
|
73110
73587
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
73111
|
-
return ("_t_" +
|
|
73588
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
73112
73589
|
});
|
|
73113
73590
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$ = (function() {
|
|
73114
73591
|
if ((this.PrivateAccess$module$2 === null)) {
|
|
@@ -73725,7 +74202,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
73725
74202
|
var jsx$1 = b.result__O()
|
|
73726
74203
|
};
|
|
73727
74204
|
var procClass = $as_sc_TraversableOnce(jsx$1).mkString__T__T("::");
|
|
73728
|
-
var procName$2 = ("_process_" +
|
|
74205
|
+
var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
|
|
73729
74206
|
this.importListSrc$2.addLocal__T__V(this.outFileNameHeader__T__T($as_T($f_sc_LinearSeqOptimized__last__O(name))));
|
|
73730
74207
|
var jsx$2 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2$1) {
|
|
73731
74208
|
return (function(e$2) {
|
|
@@ -73748,7 +74225,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
73748
74225
|
$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
74226
|
});
|
|
73750
74227
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(ksName) {
|
|
73751
|
-
return ("f_" +
|
|
74228
|
+
return ("f_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
|
|
73752
74229
|
});
|
|
73753
74230
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.translator__Lio_kaitai_struct_translators_BaseTranslator = (function() {
|
|
73754
74231
|
return this.translator$2
|
|
@@ -73789,7 +74266,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.allocateIO__Lio_kaitai_stru
|
|
|
73789
74266
|
var ioName = (this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(ioId) + ".get()")
|
|
73790
74267
|
}
|
|
73791
74268
|
} else {
|
|
73792
|
-
var localIO = ("io_" +
|
|
74269
|
+
var localIO = ("io_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
73793
74270
|
this.outSrc$2.puts__T__V((((("kaitai::kstream* " + localIO) + " = ") + newStreamRaw) + ";"));
|
|
73794
74271
|
var x$9 = this.config$1.cppConfig$1.pointers$1;
|
|
73795
74272
|
var x$10 = $m_Lio_kaitai_struct_CppRuntimeConfig$UniqueAndRawPointers$();
|
|
@@ -73806,7 +74283,10 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.declareNullFlag__Lio_kaitai
|
|
|
73806
74283
|
if (isNullable) {
|
|
73807
74284
|
this.outHdr$2.puts__T__V((("bool " + this.nullFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"));
|
|
73808
74285
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
|
|
73809
|
-
|
|
74286
|
+
var jsx$2 = this.outHdr$2;
|
|
74287
|
+
var jsx$1 = $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName);
|
|
74288
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
74289
|
+
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
74290
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$())
|
|
73811
74291
|
}
|
|
73812
74292
|
});
|
|
@@ -73888,10 +74368,13 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.fileHeader__T__V = (functio
|
|
|
73888
74368
|
});
|
|
73889
74369
|
$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
74370
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
|
|
73891
|
-
|
|
74371
|
+
var jsx$2 = this.outHdr$2;
|
|
74372
|
+
var jsx$1 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false);
|
|
74373
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
74374
|
+
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
74375
|
});
|
|
73893
74376
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.nullFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(ksName) {
|
|
73894
|
-
return ("n_" +
|
|
74377
|
+
return ("n_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
|
|
73895
74378
|
});
|
|
73896
74379
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
73897
74380
|
this.outSrc$2.puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
|
|
@@ -74413,7 +74896,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.switchEnd__V = (function() {
|
|
|
74413
74896
|
});
|
|
74414
74897
|
$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
74898
|
this.out$2.puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName) + " bool"));
|
|
74416
|
-
this.out$2.puts__T__V(((
|
|
74899
|
+
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
74900
|
});
|
|
74418
74901
|
$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
74902
|
this.out$2.puts__T__V("for i := 1;; i++ {");
|
|
@@ -74454,12 +74937,12 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrParseHybrid__F0__F0__V =
|
|
|
74454
74937
|
this.out$2.puts__T__V("}")
|
|
74455
74938
|
});
|
|
74456
74939
|
$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)) + ") ") +
|
|
74940
|
+
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
74941
|
this.out$2.inc__V();
|
|
74459
74942
|
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
74943
|
});
|
|
74461
74944
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
74462
|
-
return ("this." +
|
|
74945
|
+
return ("this." + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
74463
74946
|
});
|
|
74464
74947
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
|
|
74465
74948
|
var this$1 = this.importList$2;
|
|
@@ -74531,6 +75014,13 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateExpr__Lio_kaitai
|
|
|
74531
75014
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatEosFooter__V = (function() {
|
|
74532
75015
|
this.universalFooter__V()
|
|
74533
75016
|
});
|
|
75017
|
+
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.blockScopeHeader__V = (function() {
|
|
75018
|
+
this.out$2.puts__T__V("{");
|
|
75019
|
+
this.out$2.inc__V()
|
|
75020
|
+
});
|
|
75021
|
+
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.blockScopeFooter__V = (function() {
|
|
75022
|
+
this.universalFooter__V()
|
|
75023
|
+
});
|
|
74534
75024
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.pushPos__T__V = (function(io) {
|
|
74535
75025
|
this.out$2.puts__T__V((("_pos, err := " + io) + ".Pos()"));
|
|
74536
75026
|
this.translator$2.outAddErrCheck__V()
|
|
@@ -74584,9 +75074,10 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.classConstructorHeader__sci_
|
|
|
74584
75074
|
var arg1$3 = these$1.head__O();
|
|
74585
75075
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
74586
75076
|
var jsx$3 = this.out$2;
|
|
74587
|
-
var jsx$2 = this.idToStr__Lio_kaitai_struct_format_Identifier__T(p$3.id$1);
|
|
74588
75077
|
var id$1 = p$3.id$1;
|
|
74589
|
-
jsx$
|
|
75078
|
+
var jsx$2 = $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1);
|
|
75079
|
+
var id$2 = p$3.id$1;
|
|
75080
|
+
jsx$3.puts__T__V((((jsx$2 + ": ") + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(id$2.humanReadable__T())) + ","));
|
|
74590
75081
|
var this$4 = these$1;
|
|
74591
75082
|
these$1 = this$4.tail__sci_List()
|
|
74592
75083
|
};
|
|
@@ -74675,36 +75166,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrParse2$default$7__s_Opti
|
|
|
74675
75166
|
return $m_s_None$()
|
|
74676
75167
|
});
|
|
74677
75168
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
74678
|
-
$
|
|
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
|
-
}
|
|
75169
|
+
this.out$2.puts__T__V(((id + " := ") + expr))
|
|
74708
75170
|
});
|
|
74709
75171
|
$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
75172
|
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 +75199,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.type2class__T__T = (function
|
|
|
74737
75199
|
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
74738
75200
|
});
|
|
74739
75201
|
$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(((
|
|
75202
|
+
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
75203
|
this.translator$2.returnRes$2 = $m_s_None$()
|
|
74742
75204
|
});
|
|
74743
75205
|
$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 +75239,11 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.readHeader__s_Option__Z__V =
|
|
|
74777
75239
|
var p5 = $as_Lio_kaitai_struct_datatype_Endianness(x2.value$2);
|
|
74778
75240
|
var x$3 = $m_Lio_kaitai_struct_datatype_InheritedEndian$();
|
|
74779
75241
|
if ((x$3 === p5)) {
|
|
74780
|
-
|
|
75242
|
+
var jsx$6 = this.out$2;
|
|
75243
|
+
var jsx$5 = this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_EndianIdentifier$());
|
|
75244
|
+
var jsx$4 = this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_ParentIdentifier$());
|
|
75245
|
+
var id = $m_Lio_kaitai_struct_format_EndianIdentifier$();
|
|
75246
|
+
jsx$6.puts__T__V((((((jsx$5 + " = ") + jsx$4) + ".") + "") + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)));
|
|
74781
75247
|
break matchEnd10
|
|
74782
75248
|
}
|
|
74783
75249
|
}
|
|
@@ -74922,7 +75388,9 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.classFooter__sci_List__V = (
|
|
|
74922
75388
|
var jsx$1 = false
|
|
74923
75389
|
};
|
|
74924
75390
|
if (jsx$1) {
|
|
74925
|
-
this.out$2
|
|
75391
|
+
var jsx$2 = this.out$2;
|
|
75392
|
+
var id = $m_Lio_kaitai_struct_format_EndianIdentifier$();
|
|
75393
|
+
jsx$2.puts__T__V(($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id) + " int"))
|
|
74926
75394
|
};
|
|
74927
75395
|
this.universalFooter__V()
|
|
74928
75396
|
});
|
|
@@ -74952,40 +75420,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugEnd__Lio_kaitai_str
|
|
|
74952
75420
|
$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
75421
|
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
75422
|
});
|
|
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
75423
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.condIfFooter__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
|
|
74990
75424
|
this.universalFooter__V()
|
|
74991
75425
|
});
|
|
@@ -75089,7 +75523,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.handleAssignmentRepeatEos__L
|
|
|
75089
75523
|
this.out$2.puts__T__V((((((name + " = append(") + name) + ", ") + expr) + ")"))
|
|
75090
75524
|
});
|
|
75091
75525
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75092
|
-
return ("_f_" +
|
|
75526
|
+
return ("_f_" + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
75093
75527
|
});
|
|
75094
75528
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.translator__Lio_kaitai_struct_translators_AbstractTranslator = (function() {
|
|
75095
75529
|
return this.translator$2
|
|
@@ -75173,7 +75607,8 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceCalculate__Lio_kaita
|
|
|
75173
75607
|
});
|
|
75174
75608
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
75175
75609
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
75176
|
-
var
|
|
75610
|
+
var id = new $c_Lio_kaitai_struct_format_IoStorageIdentifier().init___Lio_kaitai_struct_format_Identifier(varName);
|
|
75611
|
+
var ioName = $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id);
|
|
75177
75612
|
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
75613
|
var this$1 = this.importList$2;
|
|
75179
75614
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "bytes");
|
|
@@ -75293,7 +75728,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.condRepeatCommonInit
|
|
|
75293
75728
|
};
|
|
75294
75729
|
this.out$2.puts__T__V((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + " = [];"));
|
|
75295
75730
|
if (this.config$1.readStoresPos$1) {
|
|
75296
|
-
this.out$2.puts__T__V((("this._debug." +
|
|
75731
|
+
this.out$2.puts__T__V((("this._debug." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + ".arr = [];"))
|
|
75297
75732
|
}
|
|
75298
75733
|
});
|
|
75299
75734
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrParseHybrid__F0__F0__V = (function(leProc, beProc) {
|
|
@@ -75311,15 +75746,17 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.switchCasesUsingIf__
|
|
|
75311
75746
|
$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
75747
|
});
|
|
75313
75748
|
$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$
|
|
75749
|
+
var jsx$2 = this.out$2;
|
|
75315
75750
|
var name = $as_T($f_sc_LinearSeqOptimized__last__O(className));
|
|
75316
|
-
jsx$1
|
|
75751
|
+
var jsx$1 = $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name);
|
|
75752
|
+
var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
|
|
75753
|
+
jsx$2.puts__T__V((((("Object.defineProperty(" + jsx$1) + ".prototype, '") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', {"));
|
|
75317
75754
|
this.out$2.inc__V();
|
|
75318
75755
|
this.out$2.puts__T__V("get: function() {");
|
|
75319
75756
|
this.out$2.inc__V()
|
|
75320
75757
|
});
|
|
75321
75758
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75322
|
-
return ("this." +
|
|
75759
|
+
return ("this." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
75323
75760
|
});
|
|
75324
75761
|
$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
75762
|
this.out$2.puts__T__V("{");
|
|
@@ -75397,7 +75834,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.classConstructorHead
|
|
|
75397
75834
|
return (function(p$2) {
|
|
75398
75835
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
75399
75836
|
var id = p.id$1;
|
|
75400
|
-
return $
|
|
75837
|
+
return $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
75401
75838
|
})
|
|
75402
75839
|
})(this);
|
|
75403
75840
|
var this$1 = $m_sci_List$();
|
|
@@ -75448,7 +75885,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.classConstructorHead
|
|
|
75448
75885
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
75449
75886
|
var jsx$4 = p$3.id$1;
|
|
75450
75887
|
var id$1 = p$3.id$1;
|
|
75451
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$4,
|
|
75888
|
+
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
75889
|
var this$4 = these$1;
|
|
75453
75890
|
these$1 = this$4.tail__sci_List()
|
|
75454
75891
|
};
|
|
@@ -75763,37 +76200,12 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrParse2$default$7
|
|
|
75763
76200
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
75764
76201
|
this.out$2.puts__T__V((((("var " + id) + " = ") + expr) + ";"))
|
|
75765
76202
|
});
|
|
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
76203
|
$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
76204
|
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
76205
|
this.out$2.inc__V()
|
|
75794
76206
|
});
|
|
75795
76207
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75796
|
-
return ("_t_" +
|
|
76208
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
75797
76209
|
});
|
|
75798
76210
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.alignToByte__T__V = (function(io) {
|
|
75799
76211
|
this.out$2.puts__T__V((io + ".alignToByte();"))
|
|
@@ -76009,19 +76421,6 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugEnd__Lio_ka
|
|
|
76009
76421
|
var debugName = this.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T(attrId, rep, true);
|
|
76010
76422
|
this.out$2.puts__T__V((((debugName + ".end = ") + io) + ".pos;"))
|
|
76011
76423
|
});
|
|
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
76424
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
76026
76425
|
if ((padRight instanceof $c_s_Some)) {
|
|
76027
76426
|
var x2 = $as_s_Some(padRight);
|
|
@@ -76209,7 +76608,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugName__Lio_k
|
|
|
76209
76608
|
};
|
|
76210
76609
|
var arrIndexExpr = ((((".arr[" + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrId)) + ".length") + (end ? " - 1" : "")) + "]")
|
|
76211
76610
|
};
|
|
76212
|
-
return (("this._debug." +
|
|
76611
|
+
return (("this._debug." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId)) + arrIndexExpr)
|
|
76213
76612
|
});
|
|
76214
76613
|
$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
76614
|
$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 +76617,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.outHeader__Lio_kaita
|
|
|
76218
76617
|
return this.outHeader$2
|
|
76219
76618
|
});
|
|
76220
76619
|
$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 =
|
|
76620
|
+
var langName = $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
76222
76621
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
76223
76622
|
var ioName = ("_io_" + langName);
|
|
76224
76623
|
var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep);
|
|
@@ -76321,7 +76720,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.condRepeatEosHeader__Lio_ka
|
|
|
76321
76720
|
this.out$2.inc__V()
|
|
76322
76721
|
});
|
|
76323
76722
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
76324
|
-
return ("$" +
|
|
76723
|
+
return ("$" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
76325
76724
|
});
|
|
76326
76725
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
|
|
76327
76726
|
if ((attrType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
|
|
@@ -76402,7 +76801,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrParseHybrid__F0__F0__V
|
|
|
76402
76801
|
this.out$2.puts__T__V("}")
|
|
76403
76802
|
});
|
|
76404
76803
|
$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 " +
|
|
76804
|
+
this.out$2.puts__T__V((("public function " + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
76406
76805
|
this.out$2.inc__V()
|
|
76407
76806
|
});
|
|
76408
76807
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
@@ -76418,7 +76817,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.privateMemberName__Lio_kait
|
|
|
76418
76817
|
if (x$5.equals__O__Z(id)) {
|
|
76419
76818
|
return "$this->_parent"
|
|
76420
76819
|
} else {
|
|
76421
|
-
return ("$this->_m_" +
|
|
76820
|
+
return ("$this->_m_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
76422
76821
|
}
|
|
76423
76822
|
}
|
|
76424
76823
|
}
|
|
@@ -76688,31 +77087,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrParse2$default$7__s_Opt
|
|
|
76688
77087
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
76689
77088
|
this.out$2.puts__T__V((((id + " = ") + expr) + ";"))
|
|
76690
77089
|
});
|
|
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
77090
|
$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
77091
|
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
77092
|
this.out$2.puts__T__V("for ($i = 0; $i < $n; $i++) {");
|
|
@@ -76722,7 +77096,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.alignToByte__T__V = (functi
|
|
|
76722
77096
|
this.out$2.puts__T__V((io + "->alignToByte();"))
|
|
76723
77097
|
});
|
|
76724
77098
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
76725
|
-
return ("$_t_" +
|
|
77099
|
+
return ("$_t_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
76726
77100
|
});
|
|
76727
77101
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
76728
77102
|
return this.out$2
|
|
@@ -76753,7 +77127,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attributeDeclaration__Lio_k
|
|
|
76753
77127
|
}
|
|
76754
77128
|
};
|
|
76755
77129
|
if ((!jsx$1)) {
|
|
76756
|
-
this.out$2.puts__T__V((("protected $_m_" +
|
|
77130
|
+
this.out$2.puts__T__V((("protected $_m_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
|
|
76757
77131
|
}
|
|
76758
77132
|
});
|
|
76759
77133
|
$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 +77455,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceCalculate__Lio_kait
|
|
|
77081
77455
|
});
|
|
77082
77456
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
|
|
77083
77457
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
|
|
77084
|
-
var ioName = ("$_io_" +
|
|
77458
|
+
var ioName = ("$_io_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
77085
77459
|
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
77460
|
this.out$2.puts__T__V((((ioName + " = new \\Kaitai\\Struct\\Stream(") + args) + ");"));
|
|
77087
77461
|
return ioName
|
|
@@ -77095,7 +77469,9 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attributeReader__Lio_kaitai
|
|
|
77095
77469
|
var jsx$1 = x$3.equals__O__Z(attrName)
|
|
77096
77470
|
};
|
|
77097
77471
|
if ((!jsx$1)) {
|
|
77098
|
-
|
|
77472
|
+
var jsx$2 = this.out$2;
|
|
77473
|
+
var this$1 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
|
|
77474
|
+
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
77475
|
}
|
|
77100
77476
|
});
|
|
77101
77477
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.fileHeader__T__V = (function(topClassName) {
|
|
@@ -77192,7 +77568,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.switchIfStart__Lio_kaitai_
|
|
|
77192
77568
|
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
77569
|
});
|
|
77194
77570
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
77195
|
-
return (("$self->{" +
|
|
77571
|
+
return (("$self->{" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "}")
|
|
77196
77572
|
});
|
|
77197
77573
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
|
|
77198
77574
|
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 +77735,8 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentTempVar__L
|
|
|
77359
77735
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attrParse2$default$7__s_Option = (function() {
|
|
77360
77736
|
return $m_s_None$()
|
|
77361
77737
|
});
|
|
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
77738
|
$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_" +
|
|
77739
|
+
var nVar = ("$n_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
77388
77740
|
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
77741
|
this.out$2.puts__T__V((("for (my $i = 0; $i < " + nVar) + "; $i++) {"));
|
|
77390
77742
|
this.out$2.inc__V()
|
|
@@ -77393,7 +77745,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.alignToByte__T__V = (funct
|
|
|
77393
77745
|
this.out$2.puts__T__V((io + "->align_to_byte();"))
|
|
77394
77746
|
});
|
|
77395
77747
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
77396
|
-
return ("$_t_" +
|
|
77748
|
+
return ("$_t_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
77397
77749
|
});
|
|
77398
77750
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
77399
77751
|
return this.out$2
|
|
@@ -77706,7 +78058,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceCalculate__Lio_kai
|
|
|
77706
78058
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
|
|
77707
78059
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
|
|
77708
78060
|
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_" +
|
|
78061
|
+
var ioName = ("$io_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
77710
78062
|
this.out$2.puts__T__V((((((("my " + ioName) + " = ") + $m_Lio_kaitai_struct_languages_PerlCompiler$().kstreamName__T()) + "->new(") + args) + ");"));
|
|
77711
78063
|
return ioName
|
|
77712
78064
|
});
|
|
@@ -77733,7 +78085,9 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attributeReader__Lio_kaita
|
|
|
77733
78085
|
if ((!jsx$1)) {
|
|
77734
78086
|
var this$1 = this.out$2;
|
|
77735
78087
|
this$1.sb$2.append__T__scm_StringBuilder("\n");
|
|
77736
|
-
|
|
78088
|
+
var jsx$2 = this.out$2;
|
|
78089
|
+
var this$2 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
|
|
78090
|
+
jsx$2.puts__T__V((("sub " + this$2.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + " {"));
|
|
77737
78091
|
this.out$2.inc__V();
|
|
77738
78092
|
this.out$2.puts__T__V("my ($self) = @_;");
|
|
77739
78093
|
this.out$2.puts__T__V((("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"));
|
|
@@ -78760,7 +79114,7 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.switchEnd__V = (function
|
|
|
78760
79114
|
this.out$2.puts__T__V("}")
|
|
78761
79115
|
});
|
|
78762
79116
|
$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)) + " ") +
|
|
79117
|
+
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
79118
|
this.out$2.puts__T__V("{");
|
|
78765
79119
|
this.out$2.inc__V();
|
|
78766
79120
|
this.out$2.puts__T__V("get");
|
|
@@ -79321,33 +79675,6 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attributeDoc__Lio_kaitai
|
|
|
79321
79675
|
$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
79676
|
/*<skip>*/
|
|
79323
79677
|
});
|
|
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
79678
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
79352
79679
|
if ((padRight instanceof $c_s_Some)) {
|
|
79353
79680
|
var x2 = $as_s_Some(padRight);
|
|
@@ -79614,7 +79941,7 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.fileHeader__T__V = (func
|
|
|
79614
79941
|
this.out$2.inc__V()
|
|
79615
79942
|
});
|
|
79616
79943
|
$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)) + " ") +
|
|
79944
|
+
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
79945
|
});
|
|
79619
79946
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
79620
79947
|
this.out$2.puts__T__V((this.flagForInstName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
|
|
@@ -79707,12 +80034,12 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchCasesUsingIf__Lio_kai
|
|
|
79707
80034
|
$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
80035
|
});
|
|
79709
80036
|
$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.") +
|
|
79711
|
-
this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className)) + ".property.") +
|
|
80037
|
+
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)) + " = {}"));
|
|
80038
|
+
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
80039
|
this.out$2.inc__V()
|
|
79713
80040
|
});
|
|
79714
80041
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
79715
|
-
return ("self." +
|
|
80042
|
+
return ("self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
79716
80043
|
});
|
|
79717
80044
|
$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
80045
|
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 +80126,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorHeader__sci
|
|
|
79799
80126
|
return (function(p$2) {
|
|
79800
80127
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
79801
80128
|
var id = p.id$1;
|
|
79802
|
-
return $
|
|
80129
|
+
return $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
79803
80130
|
})
|
|
79804
80131
|
})(this);
|
|
79805
80132
|
var this$1 = $m_sci_List$();
|
|
@@ -79848,7 +80175,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorHeader__sci
|
|
|
79848
80175
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
79849
80176
|
var jsx$3 = p$3.id$1;
|
|
79850
80177
|
var id$1 = p$3.id$1;
|
|
79851
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3,
|
|
80178
|
+
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
80179
|
var this$4 = these$1;
|
|
79853
80180
|
these$1 = this$4.tail__sci_List()
|
|
79854
80181
|
}
|
|
@@ -79974,32 +80301,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrParse2$default$7__s_Opt
|
|
|
79974
80301
|
return $m_s_None$()
|
|
79975
80302
|
});
|
|
79976
80303
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
79977
|
-
$
|
|
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
|
-
}
|
|
80304
|
+
this.out$2.puts__T__V(((("local " + id) + " = ") + expr))
|
|
80003
80305
|
});
|
|
80004
80306
|
$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
80307
|
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 +80311,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.alignToByte__T__V = (functi
|
|
|
80009
80311
|
this.out$2.puts__T__V((io + ":align_to_byte()"))
|
|
80010
80312
|
});
|
|
80011
80313
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
80012
|
-
return ("_t_" +
|
|
80314
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
80013
80315
|
});
|
|
80014
80316
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
80015
80317
|
return this.out$2
|
|
@@ -80022,7 +80324,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchCaseEnd__V = (functio
|
|
|
80022
80324
|
});
|
|
80023
80325
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatUntil__Lio_kaitai_struct_format_Identifier__T__Z__V = (function(id, expr, isRaw) {
|
|
80024
80326
|
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));
|
|
80327
|
+
this.out$2.puts__T__V(((("local " + s) + " = ") + expr));
|
|
80026
80328
|
this.out$2.puts__T__V(((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + "[i + 1] = ") + s))
|
|
80027
80329
|
});
|
|
80028
80330
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.opaqueClassDeclaration__Lio_kaitai_struct_format_ClassSpec__V = (function(classSpec) {
|
|
@@ -80050,11 +80352,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatEos__
|
|
|
80050
80352
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatExpr__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
|
|
80051
80353
|
this.out$2.puts__T__V(((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + "[i + 1] = ") + expr))
|
|
80052
80354
|
});
|
|
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
80355
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.readHeader__s_Option__Z__V = (function(endian, isEmpty) {
|
|
80059
80356
|
if ((endian instanceof $c_s_Some)) {
|
|
80060
80357
|
var x2 = $as_s_Some(endian);
|
|
@@ -80070,6 +80367,11 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.readHeader__s_Option__Z__V
|
|
|
80070
80367
|
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
80368
|
this.out$2.inc__V()
|
|
80072
80369
|
});
|
|
80370
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classHeader__sci_List__V = (function(name) {
|
|
80371
|
+
this.out$2.puts__T__V(($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(name) + " = class.class(KaitaiStruct)"));
|
|
80372
|
+
var this$1 = this.out$2;
|
|
80373
|
+
this$1.sb$2.append__T__scm_StringBuilder("\n")
|
|
80374
|
+
});
|
|
80073
80375
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.results__Lio_kaitai_struct_format_ClassSpec__sci_Map = (function(topClass) {
|
|
80074
80376
|
return $f_Lio_kaitai_struct_languages_components_SingleOutputFile__results__Lio_kaitai_struct_format_ClassSpec__sci_Map(this, topClass)
|
|
80075
80377
|
});
|
|
@@ -80253,27 +80555,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attributeDoc__Lio_kaitai_st
|
|
|
80253
80555
|
$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
80556
|
/*<skip>*/
|
|
80255
80557
|
});
|
|
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
80558
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
80278
80559
|
if ((padRight instanceof $c_s_Some)) {
|
|
80279
80560
|
var x2 = $as_s_Some(padRight);
|
|
@@ -80348,7 +80629,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchIfCaseFirstStart__Lio
|
|
|
80348
80629
|
this.out$2.inc__V()
|
|
80349
80630
|
});
|
|
80350
80631
|
$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." +
|
|
80632
|
+
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
80633
|
this.out$2.inc__V();
|
|
80353
80634
|
this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
|
|
80354
80635
|
this.out$2.dec__V();
|
|
@@ -80394,7 +80675,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
80394
80675
|
var x4 = $as_Lio_kaitai_struct_format_ProcessCustom(proc);
|
|
80395
80676
|
var name = x4.name$1;
|
|
80396
80677
|
var args = x4.args$1;
|
|
80397
|
-
var procName$2 = ("_process_" +
|
|
80678
|
+
var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
|
|
80398
80679
|
var this$1 = this.importList$2;
|
|
80399
80680
|
var s = ((("require(\"" + "") + $f_sc_LinearSeqOptimized__last__O(name)) + "\")");
|
|
80400
80681
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, s);
|
|
@@ -81423,7 +81704,8 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.debugClassSequence__sci_Li
|
|
|
81423
81704
|
var f = (function($this) {
|
|
81424
81705
|
return (function(attr$2) {
|
|
81425
81706
|
var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
|
|
81426
|
-
|
|
81707
|
+
var id = attr.id$1;
|
|
81708
|
+
return (("\"" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
|
|
81427
81709
|
})
|
|
81428
81710
|
})(this);
|
|
81429
81711
|
var this$1 = $m_sci_List$();
|
|
@@ -81552,7 +81834,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceHeader__sci_List__
|
|
|
81552
81834
|
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
81835
|
});
|
|
81554
81836
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
81555
|
-
return ("@" +
|
|
81837
|
+
return ("@" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
81556
81838
|
});
|
|
81557
81839
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
|
|
81558
81840
|
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 +82001,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugStart__Lio_kaitai
|
|
|
81719
82001
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
81720
82002
|
throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
|
|
81721
82003
|
};
|
|
81722
|
-
var name =
|
|
82004
|
+
var name = $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
81723
82005
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
81724
82006
|
if ((x === rep)) {
|
|
81725
82007
|
this.out$2.puts__T__V((((("(@_debug['" + name) + "'] ||= {})[:start] = ") + io) + ".pos"))
|
|
@@ -81805,32 +82087,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrParse2$default$7__s_Op
|
|
|
81805
82087
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
81806
82088
|
this.out$2.puts__T__V(((id + " = ") + expr))
|
|
81807
82089
|
});
|
|
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
82090
|
$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
82091
|
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
82092
|
this.out$2.inc__V()
|
|
@@ -81839,7 +82095,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.alignToByte__T__V = (funct
|
|
|
81839
82095
|
this.out$2.puts__T__V((io + ".align_to_byte"))
|
|
81840
82096
|
});
|
|
81841
82097
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
81842
|
-
return ("_t_" +
|
|
82098
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
81843
82099
|
});
|
|
81844
82100
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
81845
82101
|
return this.out$2
|
|
@@ -82009,7 +82265,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugEnd__Lio_kaitai_s
|
|
|
82009
82265
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
82010
82266
|
return (void 0)
|
|
82011
82267
|
};
|
|
82012
|
-
var name =
|
|
82268
|
+
var name = $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
82013
82269
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
82014
82270
|
if ((x === rep)) {
|
|
82015
82271
|
this.out$2.puts__T__V((((("(@_debug['" + name) + "'] ||= {})[:end] = ") + io) + ".pos"))
|
|
@@ -82196,7 +82452,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.classConstructorHeader__T_
|
|
|
82196
82452
|
return (function(p$2) {
|
|
82197
82453
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
82198
82454
|
var id = p.id$1;
|
|
82199
|
-
return $
|
|
82455
|
+
return $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
82200
82456
|
})
|
|
82201
82457
|
})(this);
|
|
82202
82458
|
var this$1 = $m_sci_List$();
|
|
@@ -82243,7 +82499,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.classConstructorHeader__T_
|
|
|
82243
82499
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
82244
82500
|
var jsx$3 = p$3.id$1;
|
|
82245
82501
|
var id$1 = p$3.id$1;
|
|
82246
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3,
|
|
82502
|
+
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
82503
|
var this$4 = these$1;
|
|
82248
82504
|
these$1 = this$4.tail__sci_List()
|
|
82249
82505
|
};
|
|
@@ -82263,7 +82519,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceCalculate__Lio_kai
|
|
|
82263
82519
|
});
|
|
82264
82520
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
|
|
82265
82521
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
|
|
82266
|
-
var ioName = ("_io_" +
|
|
82522
|
+
var ioName = ("_io_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
82267
82523
|
var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep);
|
|
82268
82524
|
this.out$2.puts__T__V((((ioName + " = Kaitai::Struct::Stream.new(") + args) + ")"));
|
|
82269
82525
|
return ioName
|
|
@@ -82293,7 +82549,9 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attributeReader__Lio_kaita
|
|
|
82293
82549
|
var jsx$1 = x$3.equals__O__Z(attrName)
|
|
82294
82550
|
};
|
|
82295
82551
|
if ((!jsx$1)) {
|
|
82296
|
-
|
|
82552
|
+
var jsx$2 = this.out$2;
|
|
82553
|
+
var this$1 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
|
|
82554
|
+
jsx$2.puts__T__V(("attr_reader :" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)))
|
|
82297
82555
|
}
|
|
82298
82556
|
});
|
|
82299
82557
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.enumValue__T__T__T = (function(enumName, enumLabel) {
|
|
@@ -82504,7 +82762,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatUntilFooter__Lio
|
|
|
82504
82762
|
this.out$2.puts__T__V("}")
|
|
82505
82763
|
});
|
|
82506
82764
|
$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)) + " ") +
|
|
82765
|
+
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
82766
|
});
|
|
82509
82767
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.switchEnd__V = (function() {
|
|
82510
82768
|
this.out$2.puts__T__V("}")
|
|
@@ -82513,7 +82771,8 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.debugClassSequence__sci_Li
|
|
|
82513
82771
|
var f = (function($this) {
|
|
82514
82772
|
return (function(attr$2) {
|
|
82515
82773
|
var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
|
|
82516
|
-
|
|
82774
|
+
var id = attr.id$1;
|
|
82775
|
+
return (("\"" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
|
|
82517
82776
|
})
|
|
82518
82777
|
})(this);
|
|
82519
82778
|
var this$1 = $m_sci_List$();
|
|
@@ -82551,7 +82810,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.debugClassSequence__sci_Li
|
|
|
82551
82810
|
this.out$2.puts__T__V((("public static String[] _seqFields = new String[] { " + seqStr) + " };"))
|
|
82552
82811
|
});
|
|
82553
82812
|
$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)) + " ") +
|
|
82813
|
+
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
82814
|
this.out$2.inc__V()
|
|
82556
82815
|
});
|
|
82557
82816
|
$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 +82909,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__sci_List__
|
|
|
82650
82909
|
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
82910
|
});
|
|
82652
82911
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
82653
|
-
return ("this." +
|
|
82912
|
+
return ("this." + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
82654
82913
|
});
|
|
82655
82914
|
$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
82915
|
this.out$2.puts__T__V("{");
|
|
@@ -82867,7 +83126,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugStart__Lio_kaitai
|
|
|
82867
83126
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
82868
83127
|
throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
|
|
82869
83128
|
};
|
|
82870
|
-
var name =
|
|
83129
|
+
var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
82871
83130
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
82872
83131
|
if ((x === rep)) {
|
|
82873
83132
|
this.out$2.puts__T__V((((("_attrStart.put(\"" + name) + "\", ") + io) + ".pos());"))
|
|
@@ -82974,31 +83233,6 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.handleAssignmentTempVar__L
|
|
|
82974
83233
|
var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
|
|
82975
83234
|
jsx$1.puts__T__V((((((this$1.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(dataType) + " ") + id) + " = ") + expr) + ";"))
|
|
82976
83235
|
});
|
|
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
83236
|
$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
83237
|
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
83238
|
this.out$2.inc__V();
|
|
@@ -83006,7 +83240,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatExprHeader__Lio_
|
|
|
83006
83240
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "java.util.ArrayList")
|
|
83007
83241
|
});
|
|
83008
83242
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
83009
|
-
return ("_t_" +
|
|
83243
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
83010
83244
|
});
|
|
83011
83245
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.alignToByte__T__V = (function(io) {
|
|
83012
83246
|
this.out$2.puts__T__V((io + ".alignToByte();"))
|
|
@@ -83041,7 +83275,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.type2class__T__T = (functi
|
|
|
83041
83275
|
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
83042
83276
|
});
|
|
83043
83277
|
$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)) + " ") +
|
|
83278
|
+
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
83279
|
});
|
|
83046
83280
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
|
|
83047
83281
|
return $m_sci_Nil$()
|
|
@@ -83114,7 +83348,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.popPos__T__V = (function(i
|
|
|
83114
83348
|
this.out$2.puts__T__V((io + ".seek(_pos);"))
|
|
83115
83349
|
});
|
|
83116
83350
|
$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 =
|
|
83351
|
+
var memberName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
83118
83352
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
83119
83353
|
if ((x === rep)) {
|
|
83120
83354
|
return memberName
|
|
@@ -83222,7 +83456,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugEnd__Lio_kaitai_s
|
|
|
83222
83456
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
83223
83457
|
return (void 0)
|
|
83224
83458
|
};
|
|
83225
|
-
var name =
|
|
83459
|
+
var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
83226
83460
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
83227
83461
|
if ((x === rep)) {
|
|
83228
83462
|
this.out$2.puts__T__V((((("_attrEnd.put(\"" + name) + "\", ") + io) + ".pos());"))
|
|
@@ -83404,7 +83638,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrProcess__Lio_kaitai_st
|
|
|
83404
83638
|
};
|
|
83405
83639
|
var name$1 = $as_T($f_sc_LinearSeqOptimized__last__O(name));
|
|
83406
83640
|
var procClass = ((namespace + jsx$1) + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$1));
|
|
83407
|
-
var procName = ("_process_" +
|
|
83641
|
+
var procName = ("_process_" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
|
|
83408
83642
|
var jsx$3 = this.out$2;
|
|
83409
83643
|
var jsx$2 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
83410
83644
|
return (function(e$2) {
|
|
@@ -83462,7 +83696,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
|
|
|
83462
83696
|
var attrType = p.dataType$1;
|
|
83463
83697
|
var jsx$2 = this$1.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType);
|
|
83464
83698
|
var id = p.id$1;
|
|
83465
|
-
return ((jsx$2 + " ") + $
|
|
83699
|
+
return ((jsx$2 + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
83466
83700
|
})
|
|
83467
83701
|
})(this);
|
|
83468
83702
|
var this$2 = $m_sci_List$();
|
|
@@ -83515,7 +83749,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
|
|
|
83515
83749
|
return (function(p$3$2) {
|
|
83516
83750
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(p$3$2);
|
|
83517
83751
|
var id$1 = p$3.id$1;
|
|
83518
|
-
return
|
|
83752
|
+
return $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1)
|
|
83519
83753
|
})
|
|
83520
83754
|
})(this);
|
|
83521
83755
|
var this$7 = $m_sci_List$();
|
|
@@ -83588,7 +83822,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
|
|
|
83588
83822
|
var p$4 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$6);
|
|
83589
83823
|
var jsx$13 = p$4.id$1;
|
|
83590
83824
|
var id$2 = p$4.id$1;
|
|
83591
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$13,
|
|
83825
|
+
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
83826
|
var this$15 = these$2;
|
|
83593
83827
|
these$2 = this$15.tail__sci_List()
|
|
83594
83828
|
}
|
|
@@ -83649,7 +83883,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.outHeader__Lio_kaitai_stru
|
|
|
83649
83883
|
return this.outHeader$2
|
|
83650
83884
|
});
|
|
83651
83885
|
$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 =
|
|
83886
|
+
var javaName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
83653
83887
|
var ioName = ("_io_" + javaName);
|
|
83654
83888
|
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
83889
|
var this$1 = this.importList$2;
|
|
@@ -83678,7 +83912,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.fileHeader__T__V = (functi
|
|
|
83678
83912
|
this$6.sb$2.append__T__scm_StringBuilder("\n")
|
|
83679
83913
|
});
|
|
83680
83914
|
$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)) + " ") +
|
|
83915
|
+
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
83916
|
});
|
|
83683
83917
|
var $d_Lio_kaitai_struct_languages_JavaCompiler = new $TypeData().initClass({
|
|
83684
83918
|
Lio_kaitai_struct_languages_JavaCompiler: 0
|
|
@@ -83734,7 +83968,8 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.debugClassSequence__sci_
|
|
|
83734
83968
|
var f = (function($this) {
|
|
83735
83969
|
return (function(attr$2) {
|
|
83736
83970
|
var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
|
|
83737
|
-
|
|
83971
|
+
var id = attr.id$1;
|
|
83972
|
+
return (("\"" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
|
|
83738
83973
|
})
|
|
83739
83974
|
})(this);
|
|
83740
83975
|
var this$1 = $m_sci_List$();
|
|
@@ -83781,7 +84016,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classToString__Lio_kaita
|
|
|
83781
84016
|
});
|
|
83782
84017
|
$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
84018
|
this.out$2.puts__T__V("@property");
|
|
83784
|
-
this.out$2.puts__T__V((("def " +
|
|
84019
|
+
this.out$2.puts__T__V((("def " + $m_Lio_kaitai_struct_languages_PythonCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "(self):"));
|
|
83785
84020
|
this.out$2.inc__V()
|
|
83786
84021
|
});
|
|
83787
84022
|
$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 +84061,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHeader__sci_List
|
|
|
83826
84061
|
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
84062
|
});
|
|
83828
84063
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
83829
|
-
return ("self." +
|
|
84064
|
+
return ("self." + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
83830
84065
|
});
|
|
83831
84066
|
$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
84067
|
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 +84070,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.seek__T__Lio_kaitai_stru
|
|
|
83835
84070
|
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
84071
|
});
|
|
83837
84072
|
$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, '" +
|
|
84073
|
+
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
84074
|
});
|
|
83840
84075
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bool2Py__Z__T = (function(b) {
|
|
83841
84076
|
return (b ? "True" : "False")
|
|
@@ -84005,7 +84240,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugStart__Lio_kait
|
|
|
84005
84240
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
84006
84241
|
throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
|
|
84007
84242
|
};
|
|
84008
|
-
var name =
|
|
84243
|
+
var name = $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
84009
84244
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
84010
84245
|
if ((x === rep)) {
|
|
84011
84246
|
this.out$2.puts__T__V((((("self._debug['" + name) + "']['start'] = ") + io) + ".pos()"))
|
|
@@ -84064,31 +84299,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrParse2$default$7__s_
|
|
|
84064
84299
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
84065
84300
|
this.out$2.puts__T__V(((id + " = ") + expr))
|
|
84066
84301
|
});
|
|
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
84302
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.userType2class__Lio_kaitai_struct_datatype_DataType$UserType__T = (function(t) {
|
|
84093
84303
|
var name = $as_Lio_kaitai_struct_format_ClassSpec(t.classSpec$3.get__O()).name$1;
|
|
84094
84304
|
var firstName = $as_T(name.head__O());
|
|
@@ -84100,7 +84310,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.condRepeatExprHeader__Li
|
|
|
84100
84310
|
this.out$2.inc__V()
|
|
84101
84311
|
});
|
|
84102
84312
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
84103
|
-
return ("_t_" +
|
|
84313
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
84104
84314
|
});
|
|
84105
84315
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.alignToByte__T__V = (function(io) {
|
|
84106
84316
|
this.out$2.puts__T__V((io + ".align_to_byte()"))
|
|
@@ -84343,7 +84553,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugEnd__Lio_kaitai
|
|
|
84343
84553
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
84344
84554
|
return (void 0)
|
|
84345
84555
|
};
|
|
84346
|
-
var name =
|
|
84556
|
+
var name = $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
84347
84557
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
84348
84558
|
if ((x === rep)) {
|
|
84349
84559
|
this.out$2.puts__T__V((((("self._debug['" + name) + "']['end'] = ") + io) + ".pos()"))
|
|
@@ -84358,27 +84568,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugEnd__Lio_kaitai
|
|
|
84358
84568
|
}
|
|
84359
84569
|
}
|
|
84360
84570
|
});
|
|
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
84571
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
84383
84572
|
if ((padRight instanceof $c_s_Some)) {
|
|
84384
84573
|
var x2 = $as_s_Some(padRight);
|
|
@@ -84458,7 +84647,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.switchIfCaseFirstStart__
|
|
|
84458
84647
|
this.out$2.inc__V()
|
|
84459
84648
|
});
|
|
84460
84649
|
$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, '" +
|
|
84650
|
+
this.out$2.puts__T__V((("if hasattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "'):"));
|
|
84462
84651
|
this.out$2.inc__V();
|
|
84463
84652
|
this.out$2.puts__T__V(("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)));
|
|
84464
84653
|
this.out$2.dec__V();
|
|
@@ -84554,7 +84743,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
|
|
|
84554
84743
|
return (function(p$2) {
|
|
84555
84744
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
84556
84745
|
var id = p.id$1;
|
|
84557
|
-
return $
|
|
84746
|
+
return $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
84558
84747
|
})
|
|
84559
84748
|
})(this);
|
|
84560
84749
|
var this$1 = $m_sci_List$();
|
|
@@ -84603,7 +84792,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
|
|
|
84603
84792
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
84604
84793
|
var jsx$3 = p$3.id$1;
|
|
84605
84794
|
var id$1 = p$3.id$1;
|
|
84606
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3,
|
|
84795
|
+
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
84796
|
var this$4 = these$1;
|
|
84608
84797
|
these$1 = this$4.tail__sci_List()
|
|
84609
84798
|
};
|
|
@@ -84626,7 +84815,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCalculate__Lio_k
|
|
|
84626
84815
|
});
|
|
84627
84816
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
84628
84817
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
84629
|
-
var ioName = ("_io_" +
|
|
84818
|
+
var ioName = ("_io_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName));
|
|
84630
84819
|
var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep);
|
|
84631
84820
|
this.out$2.puts__T__V((((ioName + " = KaitaiStream(BytesIO(") + args) + "))"));
|
|
84632
84821
|
return ioName
|