You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$current_object_type' was found"
131
+
if [ "$__current_object_type"!= object ];then
132
+
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$__current_object_type' was found"
133
133
return
134
134
fi
135
135
;;
136
136
array)
137
-
if [ "$current_object_type"!= array ];then
138
-
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$current_object_type' was found"
137
+
if [ "$__current_object_type"!= array ];then
138
+
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$__current_object_type' was found"
139
139
return
140
140
fi
141
141
;;
@@ -164,8 +164,8 @@ bash_object.traverse-get() {
164
164
if [ "$flag_as_what"='as-value' ];then
165
165
declare -gA REPLY=()
166
166
local key=
167
-
forkeyin"${!current_object[@]}";do
168
-
REPLY["$key"]="${current_object[$key]}"
167
+
forkeyin"${!__current_object[@]}";do
168
+
REPLY["$key"]="${__current_object[$key]}"
169
169
done
170
170
elif [ "$flag_as_what"='as-ref' ];then
171
171
bash_object.util.die 'ERROR_INTERNAL'"--ref not implemented"
@@ -195,7 +195,7 @@ bash_object.traverse-get() {
195
195
if [ "$flag_as_what"='as-value' ];then
196
196
declare -ga REPLY=()
197
197
# shellcheck disable=SC2190
198
-
REPLY=("${current_object[@]}")
198
+
REPLY=("${__current_object[@]}")
199
199
elif [ "$flag_as_what"='as-ref' ];then
200
200
bash_object.util.die 'ERROR_INTERNAL'"--ref not implemented"
201
201
return
@@ -238,7 +238,7 @@ bash_object.traverse-get() {
238
238
bash_object.util.die 'ERROR_NOT_FOUND'"The passed querytree implies that '$key' accesses an object or array, but a string with a value of '$key_value' was found instead"
239
239
return
240
240
elif((i+1==${#REPLIES[@]}));then
241
-
local value="${current_object[$key]}"
241
+
local value="${__current_object[$key]}"
242
242
if [ "$final_value_type"= object ];then
243
243
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE'"Queried for $final_value_type, but found existing string '$value'"
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$current_object_type' was found"
303
+
if [ "$__current_object_type"!= object ];then
304
+
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$__current_object_type' was found"
305
305
return
306
306
fi
307
307
;;
308
308
array)
309
-
if [ "$current_object_type"!= array ];then
310
-
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$current_object_type' was found"
309
+
if [ "$__current_object_type"!= array ];then
310
+
bash_object.util.die 'ERROR_VOBJ_INCORRECT_TYPE'"Virtual object has a reference of type '$vmd_dtype', but when dereferencing, a variable of type '$__current_object_type' was found"
bash_object.util.die 'ERROR_NOT_FOUND'"The passed querytree implies that '$key' accesses an object or array, but a string with a value of '$key_value' was found instead"
385
385
return
386
386
elif((i+1==${#REPLIES[@]}));then
387
-
local value="${current_object[$key]}"
387
+
local value="${__current_object[$key]}"
388
388
if [ "$final_value_type"= object ];then
389
389
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE'"Assigning an $final_value_type, but found existing string '$value'"
390
390
return
391
391
elif [ "$final_value_type"= array ];then
392
392
bash_object.util.die 'ERROR_ARGUMENTS_INCORRECT_TYPE'"Assigning an $final_value_type, but found existing string '$value'"
0 commit comments