kaitai-struct-compiler 0.11.0-SNAPSHOT20250814.145539.cc2621d → 0.11.0-SNAPSHOT20250819.165337.43ff3ef
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 +30 -36
- package/package.json +1 -1
|
@@ -3033,8 +3033,8 @@ function $m_Lio_kaitai_struct_Utils$() {
|
|
|
3033
3033
|
function $c_Lio_kaitai_struct_Version$() {
|
|
3034
3034
|
this.Lio_kaitai_struct_Version$__f_version = null;
|
|
3035
3035
|
this.Lio_kaitai_struct_Version$__f_gitTime = null;
|
|
3036
|
-
this.Lio_kaitai_struct_Version$__f_version = "0.11-
|
|
3037
|
-
this.Lio_kaitai_struct_Version$__f_gitTime = "2025-08-
|
|
3036
|
+
this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20250819.165337.43ff3ef";
|
|
3037
|
+
this.Lio_kaitai_struct_Version$__f_gitTime = "2025-08-19T16:53:37Z"
|
|
3038
3038
|
}
|
|
3039
3039
|
$c_Lio_kaitai_struct_Version$.prototype = new $h_O();
|
|
3040
3040
|
$c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
|
|
@@ -17101,20 +17101,7 @@ $c_Lio_kaitai_struct_format_InstanceSpec$.prototype.fromYaml__O__sci_List__Lio_k
|
|
|
17101
17101
|
var this$5 = $m_s_$less$colon$less$();
|
|
17102
17102
|
var fakeAttrMap = $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$6);
|
|
17103
17103
|
var a = $m_Lio_kaitai_struct_format_AttrSpec$().fromYaml__sci_Map__sci_List__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrSpec(fakeAttrMap, path, metaDef, id);
|
|
17104
|
-
|
|
17105
|
-
if (this$7.isEmpty__Z()) {
|
|
17106
|
-
var valid = $m_s_None$()
|
|
17107
|
-
} else {
|
|
17108
|
-
var arg1 = this$7.get__O();
|
|
17109
|
-
var $$x1 = $m_Lio_kaitai_struct_format_ValidationSpec$();
|
|
17110
|
-
var this$12 = $n(path);
|
|
17111
|
-
$n($m_s_package$().s_package$__f_List);
|
|
17112
|
-
var array = ["valid"];
|
|
17113
|
-
var elems = $ct_sjsr_WrappedVarArgs__sjs_js_Array__(new $c_sjsr_WrappedVarArgs(), array);
|
|
17114
|
-
var suffix = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems);
|
|
17115
|
-
var valid = new $c_s_Some($n($$x1).fromYaml__O__sci_List__Lio_kaitai_struct_format_ValidationSpec(arg1, this$12.appendedAll__sc_IterableOnce__sci_List(suffix)))
|
|
17116
|
-
};
|
|
17117
|
-
return new $c_Lio_kaitai_struct_format_ParseInstanceSpec(id, path, $n(a).Lio_kaitai_struct_format_AttrSpec__f_dataType, $n(a).Lio_kaitai_struct_format_AttrSpec__f_cond, pos, io, valid, $n(a).Lio_kaitai_struct_format_AttrSpec__f_doc)
|
|
17104
|
+
return new $c_Lio_kaitai_struct_format_ParseInstanceSpec(id, path, $n(a).Lio_kaitai_struct_format_AttrSpec__f_dataType, $n(a).Lio_kaitai_struct_format_AttrSpec__f_cond, pos, io, $n(a).Lio_kaitai_struct_format_AttrSpec__f_valid, $n(a).Lio_kaitai_struct_format_AttrSpec__f_doc)
|
|
17118
17105
|
} else {
|
|
17119
17106
|
throw new $c_s_MatchError(x1)
|
|
17120
17107
|
}
|
|
@@ -35883,16 +35870,23 @@ $c_Lio_kaitai_struct_GraphvizClassCompiler.prototype.affectedVars__Lio_kaitai_st
|
|
|
35883
35870
|
return this$5.appendedAll__sc_IterableOnce__sci_List(suffix$3)
|
|
35884
35871
|
} else if (((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum) || ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$FloatNum) || ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Str) || (e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool))))) {
|
|
35885
35872
|
return $m_sci_Nil$()
|
|
35873
|
+
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InterpolatedStr)) {
|
|
35874
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InterpolatedStr(e);
|
|
35875
|
+
var exprs = $n(x15).Lio_kaitai_struct_exprlang_Ast$expr$InterpolatedStr__f_elts;
|
|
35876
|
+
return $n($as_sc_IterableOnceOps($n(exprs).flatMap__F1__O(new $c_sjsr_AnonFunction1(((e$3$2) => {
|
|
35877
|
+
var e$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(e$3$2);
|
|
35878
|
+
return this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(e$3)
|
|
35879
|
+
}))))).toList__sci_List()
|
|
35886
35880
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$EnumByLabel)) {
|
|
35887
35881
|
return $m_sci_Nil$()
|
|
35888
35882
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$EnumById)) {
|
|
35889
|
-
var
|
|
35890
|
-
var id = $n(
|
|
35883
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$EnumById(e);
|
|
35884
|
+
var id = $n(x17).Lio_kaitai_struct_exprlang_Ast$expr$EnumById__f_id;
|
|
35891
35885
|
return this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(id)
|
|
35892
35886
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
35893
|
-
var
|
|
35894
|
-
var value = $n(
|
|
35895
|
-
var attr = $n(
|
|
35887
|
+
var x20 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(e);
|
|
35888
|
+
var value = $n(x20).Lio_kaitai_struct_exprlang_Ast$expr$Attribute__f_value;
|
|
35889
|
+
var attr = $n(x20).Lio_kaitai_struct_exprlang_Ast$expr$Attribute__f_attr;
|
|
35896
35890
|
if (($n(attr).Lio_kaitai_struct_exprlang_Ast$identifier__f_name === $m_Lio_kaitai_struct_format_Identifier$().Lio_kaitai_struct_format_Identifier$__f_SIZEOF)) {
|
|
35897
35891
|
matchEnd5: {
|
|
35898
35892
|
var vars;
|
|
@@ -35949,9 +35943,9 @@ $c_Lio_kaitai_struct_GraphvizClassCompiler.prototype.affectedVars__Lio_kaitai_st
|
|
|
35949
35943
|
return this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(value)
|
|
35950
35944
|
}
|
|
35951
35945
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
35952
|
-
var
|
|
35953
|
-
var func = $n(
|
|
35954
|
-
var args = $n(
|
|
35946
|
+
var x21 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(e);
|
|
35947
|
+
var func = $n(x21).Lio_kaitai_struct_exprlang_Ast$expr$Call__f_func;
|
|
35948
|
+
var args = $n(x21).Lio_kaitai_struct_exprlang_Ast$expr$Call__f_args;
|
|
35955
35949
|
matchEnd6: {
|
|
35956
35950
|
var fromFunc;
|
|
35957
35951
|
if ((func instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
@@ -35969,15 +35963,15 @@ $c_Lio_kaitai_struct_GraphvizClassCompiler.prototype.affectedVars__Lio_kaitai_st
|
|
|
35969
35963
|
};
|
|
35970
35964
|
return $n(this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(new $c_Lio_kaitai_struct_exprlang_Ast$expr$List(args))).$colon$colon$colon__sci_List__sci_List(fromFunc)
|
|
35971
35965
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
35972
|
-
var
|
|
35973
|
-
var value$2 = $n(
|
|
35974
|
-
var idx = $n(
|
|
35966
|
+
var x22 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(e);
|
|
35967
|
+
var value$2 = $n(x22).Lio_kaitai_struct_exprlang_Ast$expr$Subscript__f_value;
|
|
35968
|
+
var idx = $n(x22).Lio_kaitai_struct_exprlang_Ast$expr$Subscript__f_idx;
|
|
35975
35969
|
var this$21 = $n(this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(value$2));
|
|
35976
35970
|
var suffix$4 = this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(idx);
|
|
35977
35971
|
return this$21.appendedAll__sc_IterableOnce__sci_List(suffix$4)
|
|
35978
35972
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Name)) {
|
|
35979
|
-
var
|
|
35980
|
-
var id$3 = $n(
|
|
35973
|
+
var x23 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Name(e);
|
|
35974
|
+
var id$3 = $n(x23).Lio_kaitai_struct_exprlang_Ast$expr$Name__f_id;
|
|
35981
35975
|
var this$22 = $n($n(id$3).Lio_kaitai_struct_exprlang_Ast$identifier__f_name);
|
|
35982
35976
|
if (((this$22.length >= 0) && ($as_T(this$22.substring(0, 1)) === "_"))) {
|
|
35983
35977
|
return $m_sci_Nil$()
|
|
@@ -35989,15 +35983,15 @@ $c_Lio_kaitai_struct_GraphvizClassCompiler.prototype.affectedVars__Lio_kaitai_st
|
|
|
35989
35983
|
return $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(elems$3)
|
|
35990
35984
|
}
|
|
35991
35985
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
35992
|
-
var
|
|
35993
|
-
var elts = $n(
|
|
35994
|
-
return $n($as_sc_IterableOnceOps($n(elts).flatMap__F1__O(new $c_sjsr_AnonFunction1(((e$
|
|
35995
|
-
var e$
|
|
35996
|
-
return this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(e$
|
|
35986
|
+
var x24 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(e);
|
|
35987
|
+
var elts = $n(x24).Lio_kaitai_struct_exprlang_Ast$expr$List__f_elts;
|
|
35988
|
+
return $n($as_sc_IterableOnceOps($n(elts).flatMap__F1__O(new $c_sjsr_AnonFunction1(((e$4$2) => {
|
|
35989
|
+
var e$4 = $as_Lio_kaitai_struct_exprlang_Ast$expr(e$4$2);
|
|
35990
|
+
return this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(e$4)
|
|
35997
35991
|
}))))).toList__sci_List()
|
|
35998
35992
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
35999
|
-
var
|
|
36000
|
-
var expr = $n(
|
|
35993
|
+
var x25 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(e);
|
|
35994
|
+
var expr = $n(x25).Lio_kaitai_struct_exprlang_Ast$expr$CastToType__f_value;
|
|
36001
35995
|
return this.affectedVars__Lio_kaitai_struct_exprlang_Ast$expr__sci_List(expr)
|
|
36002
35996
|
} else if ((e instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
|
|
36003
35997
|
return $m_sci_Nil$()
|
package/package.json
CHANGED