File tree Expand file tree Collapse file tree 6 files changed +6
-19
lines changed Expand file tree Collapse file tree 6 files changed +6
-19
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ void bmc_all_propertiest::report(const cover_goalst &cover_goals)
207
207
case ui_message_handlert::uit::JSON_UI:
208
208
{
209
209
json_stream_objectt &json_result =
210
- result (). json_stream ().push_back_stream_object ();
210
+ bmc. ui_message_handler . get_json_stream ().push_back_stream_object ();
211
211
json_stream_arrayt &result_array =
212
212
json_result.push_back_stream_array (" result" );
213
213
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ void bmct::error_trace()
70
70
case ui_message_handlert::uit::JSON_UI:
71
71
{
72
72
json_stream_objectt &json_result =
73
- status (). json_stream ().push_back_stream_object ();
73
+ ui_message_handler. get_json_stream ().push_back_stream_object ();
74
74
const goto_trace_stept &step=goto_trace.steps .back ();
75
75
json_result[" property" ] =
76
76
json_stringt (step.pc ->source_location .get_property_id ());
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ bool bmc_covert::operator()()
348
348
case ui_message_handlert::uit::JSON_UI:
349
349
{
350
350
json_stream_objectt &json_result =
351
- status (). json_stream ().push_back_stream_object ();
351
+ bmc. ui_message_handler . get_json_stream ().push_back_stream_object ();
352
352
for (const auto &goal_pair : goal_map)
353
353
{
354
354
const goalt &goal=goal_pair.second ;
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ void show_class_hierarchy(
206
206
msg.result () << messaget::eom;
207
207
break ;
208
208
case ui_message_handlert::uit::JSON_UI:
209
- hierarchy.output (msg. result (). json_stream (), children_only);
209
+ hierarchy.output (message_handler. get_json_stream (), children_only);
210
210
break ;
211
211
case ui_message_handlert::uit::XML_UI:
212
212
UNIMPLEMENTED;
Original file line number Diff line number Diff line change @@ -36,12 +36,6 @@ class message_handlert
36
36
// no-op by default
37
37
}
38
38
39
- // / Return the underlying JSON stream
40
- virtual json_stream_arrayt &get_json_stream ()
41
- {
42
- UNREACHABLE;
43
- }
44
-
45
39
virtual void print (unsigned level, const jsont &json)
46
40
{
47
41
// no-op by default
@@ -248,14 +242,6 @@ class messaget
248
242
return func (*this );
249
243
}
250
244
251
- // / Returns a reference to the top-level JSON array stream
252
- json_stream_arrayt &json_stream ()
253
- {
254
- if (this ->tellp () > 0 )
255
- *this << eom; // force end of previous message
256
- return message.message_handler ->get_json_stream ();
257
- }
258
-
259
245
private:
260
246
void assign_from (const mstreamt &other)
261
247
{
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ class ui_message_handlert : public message_handlert
51
51
52
52
virtual void flush (unsigned level) override ;
53
53
54
- json_stream_arrayt &get_json_stream () override
54
+ // / Return the underlying JSON stream
55
+ json_stream_arrayt &get_json_stream ()
55
56
{
56
57
PRECONDITION (json_stream!=nullptr );
57
58
return *json_stream;
You can’t perform that action at this time.
0 commit comments