@@ -89,20 +89,19 @@ void convert(
89
89
if (!json_location.is_null ())
90
90
json_assignment[" sourceLocation" ]=json_location;
91
91
92
- std::string value_string, binary_string, type_string,
93
- full_lhs_string, full_lhs_value_string;
94
-
95
- // if(it.lhs_object_value.is_not_nil())
96
- // value_string=from_expr(ns, identifier, it.lhs_object_value);
92
+ std::string value_string, binary_string, type_string, full_lhs_string;
93
+ json_objectt full_lhs_value;
97
94
98
95
if (it.full_lhs .is_not_nil ())
99
96
full_lhs_string=from_expr (ns, identifier, it.full_lhs );
100
97
98
+ #if 0
101
99
if(it.full_lhs_value.is_not_nil())
102
100
full_lhs_value_string=from_expr(ns, identifier, it.full_lhs_value);
101
+ #endif
103
102
104
- // if(it.lhs_object_value.type() .is_not_nil())
105
- // type_string=from_type(ns, identifier, it.lhs_object_value.type() );
103
+ if (it.full_lhs_value .is_not_nil ())
104
+ full_lhs_value = json ( it.full_lhs_value , ns );
106
105
107
106
const symbolt *symbol;
108
107
irep_idt base_name, display_name;
@@ -117,7 +116,7 @@ void convert(
117
116
json_assignment[" mode" ]=json_stringt (id2string (symbol->mode ));
118
117
}
119
118
120
- json_assignment[" value" ]=json_stringt (full_lhs_value_string) ;
119
+ json_assignment[" value" ]=full_lhs_value ;
121
120
json_assignment[" lhs" ]=json_stringt (full_lhs_string);
122
121
json_assignment[" hidden" ]=jsont::json_boolean (it.hidden );
123
122
json_assignment[" thread" ]=json_numbert (i2string (it.thread_nr ));
@@ -144,8 +143,7 @@ void convert(
144
143
if (l_it.is_nil ())
145
144
json_values.push_back (json_stringt (" " ));
146
145
else
147
- json_values.push_back (
148
- json_stringt (from_expr (ns, " " , l_it)));
146
+ json_values.push_back (json (l_it, ns));
149
147
}
150
148
151
149
if (!json_location.is_null ())
@@ -169,8 +167,7 @@ void convert(
169
167
if (l_it.is_nil ())
170
168
json_values.push_back (json_stringt (" " ));
171
169
else
172
- json_values.push_back (
173
- json_stringt (from_expr (ns, " " , l_it)));
170
+ json_values.push_back (json (l_it, ns));
174
171
}
175
172
176
173
if (!json_location.is_null ())
0 commit comments