exupery-core-data 0.1.7 → 0.1.9
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.
|
@@ -31,11 +31,11 @@ export type List<G_Source, T_L> = {
|
|
|
31
31
|
}>;
|
|
32
32
|
readonly 'location': G_Source;
|
|
33
33
|
};
|
|
34
|
-
export declare const wrap_dictionary: <T>($: Raw_Or_Normal_Dictionary<T
|
|
35
|
-
export declare const wrap_list: <T>($: Raw_Or_Normal_Array<T
|
|
36
|
-
export declare const wrap_state_group: <T>(
|
|
34
|
+
export declare const wrap_dictionary: <T>(depth: number, $: Raw_Or_Normal_Dictionary<T>) => Dictionary<_ei.Source_Location, T>;
|
|
35
|
+
export declare const wrap_list: <T>(depth: number, $: Raw_Or_Normal_Array<T>) => List<_ei.Source_Location, T>;
|
|
36
|
+
export declare const wrap_state_group: <T>(depth: number, $: T) => {
|
|
37
37
|
location: _ei.Source_Location;
|
|
38
38
|
'state group': T;
|
|
39
39
|
};
|
|
40
|
-
export declare const wrap_reference: <T>(
|
|
41
|
-
export declare const wrap_stack_reference: <T>(
|
|
40
|
+
export declare const wrap_reference: <T>(depth: number, $: string) => Reference_To_Normal_Dictionary_Entry<_ei.Source_Location, T>;
|
|
41
|
+
export declare const wrap_stack_reference: <T>(depth: number, name: string) => Reference_To_Stacked_Dictionary_Entry<_ei.Source_Location, T>;
|
|
@@ -27,8 +27,8 @@ exports.wrap_stack_reference = exports.wrap_reference = exports.wrap_state_group
|
|
|
27
27
|
const _ei = __importStar(require("exupery-core-internals"));
|
|
28
28
|
const to_raw_array = ($) => $.__get_raw_copy();
|
|
29
29
|
exports.to_raw_array = to_raw_array;
|
|
30
|
-
const wrap_dictionary = (
|
|
31
|
-
const location = _ei.get_location_info(depth);
|
|
30
|
+
const wrap_dictionary = (depth, $) => {
|
|
31
|
+
const location = _ei.get_location_info(depth + 1);
|
|
32
32
|
function is_normal($) {
|
|
33
33
|
return $.to_array !== undefined && typeof $.to_array === "function";
|
|
34
34
|
}
|
|
@@ -52,8 +52,8 @@ const wrap_dictionary = ($, depth) => {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
exports.wrap_dictionary = wrap_dictionary;
|
|
55
|
-
const wrap_list = (
|
|
56
|
-
const location = _ei.get_location_info(depth);
|
|
55
|
+
const wrap_list = (depth, $) => {
|
|
56
|
+
const location = _ei.get_location_info(depth + 1);
|
|
57
57
|
const decorated = $ instanceof Array
|
|
58
58
|
? _ei.array_literal($)
|
|
59
59
|
: $;
|
|
@@ -69,23 +69,23 @@ const wrap_list = ($, depth) => {
|
|
|
69
69
|
};
|
|
70
70
|
};
|
|
71
71
|
exports.wrap_list = wrap_list;
|
|
72
|
-
const wrap_state_group = (
|
|
72
|
+
const wrap_state_group = (depth, $) => {
|
|
73
73
|
return {
|
|
74
|
-
'location': _ei.get_location_info(depth),
|
|
74
|
+
'location': _ei.get_location_info(depth + 1),
|
|
75
75
|
'state group': $,
|
|
76
76
|
};
|
|
77
77
|
};
|
|
78
78
|
exports.wrap_state_group = wrap_state_group;
|
|
79
|
-
const wrap_reference = (
|
|
79
|
+
const wrap_reference = (depth, $) => {
|
|
80
80
|
return {
|
|
81
|
-
'location': _ei.get_location_info(depth),
|
|
81
|
+
'location': _ei.get_location_info(depth + 1),
|
|
82
82
|
'key': $,
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
85
|
exports.wrap_reference = wrap_reference;
|
|
86
|
-
const wrap_stack_reference = (
|
|
86
|
+
const wrap_stack_reference = (depth, name) => {
|
|
87
87
|
return {
|
|
88
|
-
'location': _ei.get_location_info(depth),
|
|
88
|
+
'location': _ei.get_location_info(depth + 1),
|
|
89
89
|
'key': name,
|
|
90
90
|
};
|
|
91
91
|
};
|