-
Notifications
You must be signed in to change notification settings - Fork 0
/
DebugAdapterProtocolGenerated.pmod
6976 lines (5680 loc) · 204 KB
/
DebugAdapterProtocolGenerated.pmod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This source has been automatically generated by quicktype.
// ( https://github.com/quicktype/quicktype )
//
// To use this code, simply import it into your project as a Pike module.
// To JSON-encode your object, you can pass it to `Standards.JSON.encode`
// or call `encode_json` on it.
//
// To decode a JSON string, first pass it to `Standards.JSON.decode`,
// and then pass the result to `<YourClass>_from_JSON`.
// It will return an instance of <YourClass>.
// Bear in mind that these functions have unexpected behavior,
// and will likely throw an error, if the JSON string does not
// match the expected interface, even if the JSON itself is valid.
typedef mapping(string:mixed) ConfigurationDoneArguments;
ConfigurationDoneArguments ConfigurationDoneArguments_from_JSON(mixed json) {
mapping(string:mixed) retval = ([]);
foreach (json; string k; mixed v) {
retval[k] = (mixed) v;
}
return retval;
}
typedef mapping(string:mixed) RestartArguments;
RestartArguments RestartArguments_from_JSON(mixed json) {
mapping(string:mixed) retval = ([]);
foreach (json; string k; mixed v) {
retval[k] = (mixed) v;
}
return retval;
}
typedef mapping(string:mixed) LoadedSourcesArguments;
LoadedSourcesArguments LoadedSourcesArguments_from_JSON(mixed json) {
mapping(string:mixed) retval = ([]);
foreach (json; string k; mixed v) {
retval[k] = (mixed) v;
}
return retval;
}
// Base class of requests, responses, and events.
class ProtocolMessage {
int seq; // json: "seq"
string type; // json: "type"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
]);
return Standards.JSON.encode(json);
}
}
ProtocolMessage ProtocolMessage_from_JSON(mixed json) {
ProtocolMessage retval = ProtocolMessage();
retval.seq = json["seq"];
retval.type = json["type"];
return retval;
}
// Base class of requests, responses, and events.
//
// A client or debug adapter initiated request.
class Request {
int seq; // json: "seq"
mixed type; // json: "type"
mixed arguments; // json: "arguments"
string command; // json: "command"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"arguments" : arguments,
"command" : command,
]);
return Standards.JSON.encode(json);
}
}
Request Request_from_JSON(mixed json) {
Request retval = Request();
retval.seq = json["seq"];
retval.type = json["type"];
retval.arguments = json["arguments"];
retval.command = json["command"];
return retval;
}
// Object containing arguments for the command.
//
// Event-specific information.
//
// Contains request result if success is true and optional error details if success is
// false.
//
// A debug adapter may set 'restart' to true (or to an arbitrary object) to request that the
// front end restarts the session.
// The value is not interpreted by the client and passed unmodified as an attribute
// '__restart' to the 'launch' and 'attach' requests.
//
// Optional data to report. For the 'telemetry' category the data will be sent to telemetry,
// for the other categories the data is shown in JSON format.
//
// Optional data that a debug adapter might want to loop through the client. The client
// should leave the data intact and persist it across sessions. The client should not
// interpret the data.
//
// Optional data from the previous, restarted session.
// The data is sent as the 'restart' attribute of the 'terminated' event.
// The client should leave the data intact.
typedef array(mixed)|mapping(string:mixed)|bool|float|int|string Arguments;
Arguments Arguments_from_JSON(mixed json) {
return json;
}
constant REQUEST = "request"; // json: "request"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
class Event {
int seq; // json: "seq"
mixed type; // json: "type"
mixed body; // json: "body"
string event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
Event Event_from_JSON(mixed json) {
Event retval = Event();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
constant EVENT = "event"; // json: "event"
// Base class of requests, responses, and events.
//
// Response for a request.
class Response {
int seq; // json: "seq"
mixed type; // json: "type"
mixed body; // json: "body"
string command; // json: "command"
mixed message; // json: "message"
int request_seq; // json: "request_seq"
bool success; // json: "success"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"command" : command,
"message" : message,
"request_seq" : request_seq,
"success" : success,
]);
return Standards.JSON.encode(json);
}
}
Response Response_from_JSON(mixed json) {
Response retval = Response();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.command = json["command"];
retval.message = json["message"];
retval.request_seq = json["request_seq"];
retval.success = json["success"];
return retval;
}
constant RESPONSE = "response"; // json: "response"
// Base class of requests, responses, and events.
//
// Response for a request.
//
// On error (whenever 'success' is false), the body can provide more details.
class ErrorResponse {
int seq; // json: "seq"
mixed type; // json: "type"
ErrorResponseBody body; // json: "body"
string command; // json: "command"
mixed message; // json: "message"
int request_seq; // json: "request_seq"
bool success; // json: "success"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"command" : command,
"message" : message,
"request_seq" : request_seq,
"success" : success,
]);
return Standards.JSON.encode(json);
}
}
ErrorResponse ErrorResponse_from_JSON(mixed json) {
ErrorResponse retval = ErrorResponse();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.command = json["command"];
retval.message = json["message"];
retval.request_seq = json["request_seq"];
retval.success = json["success"];
return retval;
}
class ErrorResponseBody {
mixed error; // json: "error"
string encode_json() {
mapping(string:mixed) json = ([
"error" : error,
]);
return Standards.JSON.encode(json);
}
}
ErrorResponseBody ErrorResponseBody_from_JSON(mixed json) {
ErrorResponseBody retval = ErrorResponseBody();
retval.error = json["error"];
return retval;
}
// An optional, structured error message.
//
// A structured message object. Used to return errors from requests.
class Message {
string format; // json: "format"
int id; // json: "id"
mixed send_telemetry; // json: "sendTelemetry"
mixed show_user; // json: "showUser"
mixed url; // json: "url"
mixed url_label; // json: "urlLabel"
mixed variables; // json: "variables"
string encode_json() {
mapping(string:mixed) json = ([
"format" : format,
"id" : id,
"sendTelemetry" : send_telemetry,
"showUser" : show_user,
"url" : url,
"urlLabel" : url_label,
"variables" : variables,
]);
return Standards.JSON.encode(json);
}
}
Message Message_from_JSON(mixed json) {
Message retval = Message();
retval.format = json["format"];
retval.id = json["id"];
retval.send_telemetry = json["sendTelemetry"];
retval.show_user = json["showUser"];
retval.url = json["url"];
retval.url_label = json["urlLabel"];
retval.variables = json["variables"];
return retval;
}
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// This event indicates that the debug adapter is ready to accept configuration requests
// (e.g. SetBreakpointsRequest, SetExceptionBreakpointsRequest).
// A debug adapter is expected to send this event when it is ready to accept configuration
// requests (but not before the 'initialize' request has finished).
// The sequence of events/requests is as follows:
// - adapters sends 'initialized' event (after the 'initialize' request has returned)
// - frontend sends zero or more 'setBreakpoints' requests
// - frontend sends one 'setFunctionBreakpoints' request
// - frontend sends a 'setExceptionBreakpoints' request if one or more
// 'exceptionBreakpointFilters' have been defined (or if 'supportsConfigurationDoneRequest'
// is not defined or false)
// - frontend sends other future configuration requests
// - frontend sends one 'configurationDone' request to indicate the end of the configuration.
class InitializedEvent {
int seq; // json: "seq"
mixed type; // json: "type"
mixed body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
InitializedEvent InitializedEvent_from_JSON(mixed json) {
InitializedEvent retval = InitializedEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
constant INITIALIZED = "initialized"; // json: "initialized"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that the execution of the debuggee has stopped due to some condition.
// This can be caused by a break point previously set, a stepping action has completed, by
// executing a debugger statement etc.
class StoppedEvent {
int seq; // json: "seq"
mixed type; // json: "type"
StoppedEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
StoppedEvent StoppedEvent_from_JSON(mixed json) {
StoppedEvent retval = StoppedEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class StoppedEventBody {
mixed all_threads_stopped; // json: "allThreadsStopped"
mixed description; // json: "description"
mixed preserve_focus_hint; // json: "preserveFocusHint"
string reason; // json: "reason"
mixed text; // json: "text"
mixed thread_id; // json: "threadId"
string encode_json() {
mapping(string:mixed) json = ([
"allThreadsStopped" : all_threads_stopped,
"description" : description,
"preserveFocusHint" : preserve_focus_hint,
"reason" : reason,
"text" : text,
"threadId" : thread_id,
]);
return Standards.JSON.encode(json);
}
}
StoppedEventBody StoppedEventBody_from_JSON(mixed json) {
StoppedEventBody retval = StoppedEventBody();
retval.all_threads_stopped = json["allThreadsStopped"];
retval.description = json["description"];
retval.preserve_focus_hint = json["preserveFocusHint"];
retval.reason = json["reason"];
retval.text = json["text"];
retval.thread_id = json["threadId"];
return retval;
}
constant STOPPED = "stopped"; // json: "stopped"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that the execution of the debuggee has continued.
// Please note: a debug adapter is not expected to send this event in response to a request
// that implies that execution continues, e.g. 'launch' or 'continue'.
// It is only necessary to send a 'continued' event if there was no previous request that
// implied this.
class ContinuedEvent {
int seq; // json: "seq"
mixed type; // json: "type"
ContinuedEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
ContinuedEvent ContinuedEvent_from_JSON(mixed json) {
ContinuedEvent retval = ContinuedEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class ContinuedEventBody {
mixed all_threads_continued; // json: "allThreadsContinued"
int thread_id; // json: "threadId"
string encode_json() {
mapping(string:mixed) json = ([
"allThreadsContinued" : all_threads_continued,
"threadId" : thread_id,
]);
return Standards.JSON.encode(json);
}
}
ContinuedEventBody ContinuedEventBody_from_JSON(mixed json) {
ContinuedEventBody retval = ContinuedEventBody();
retval.all_threads_continued = json["allThreadsContinued"];
retval.thread_id = json["threadId"];
return retval;
}
constant CONTINUED = "continued"; // json: "continued"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that the debuggee has exited and returns its exit code.
class ExitedEvent {
int seq; // json: "seq"
mixed type; // json: "type"
ExitedEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
ExitedEvent ExitedEvent_from_JSON(mixed json) {
ExitedEvent retval = ExitedEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class ExitedEventBody {
int exit_code; // json: "exitCode"
string encode_json() {
mapping(string:mixed) json = ([
"exitCode" : exit_code,
]);
return Standards.JSON.encode(json);
}
}
ExitedEventBody ExitedEventBody_from_JSON(mixed json) {
ExitedEventBody retval = ExitedEventBody();
retval.exit_code = json["exitCode"];
return retval;
}
constant EXITED = "exited"; // json: "exited"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that debugging of the debuggee has terminated. This does **not** mean
// that the debuggee itself has exited.
class TerminatedEvent {
int seq; // json: "seq"
mixed type; // json: "type"
mixed body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
TerminatedEvent TerminatedEvent_from_JSON(mixed json) {
TerminatedEvent retval = TerminatedEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class TerminatedEventBody {
mixed restart; // json: "restart"
string encode_json() {
mapping(string:mixed) json = ([
"restart" : restart,
]);
return Standards.JSON.encode(json);
}
}
TerminatedEventBody TerminatedEventBody_from_JSON(mixed json) {
TerminatedEventBody retval = TerminatedEventBody();
retval.restart = json["restart"];
return retval;
}
constant TERMINATED = "terminated"; // json: "terminated"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that a thread has started or exited.
class ThreadEvent {
int seq; // json: "seq"
mixed type; // json: "type"
ThreadEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
ThreadEvent ThreadEvent_from_JSON(mixed json) {
ThreadEvent retval = ThreadEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class ThreadEventBody {
string reason; // json: "reason"
int thread_id; // json: "threadId"
string encode_json() {
mapping(string:mixed) json = ([
"reason" : reason,
"threadId" : thread_id,
]);
return Standards.JSON.encode(json);
}
}
ThreadEventBody ThreadEventBody_from_JSON(mixed json) {
ThreadEventBody retval = ThreadEventBody();
retval.reason = json["reason"];
retval.thread_id = json["threadId"];
return retval;
}
constant THREAD = "thread"; // json: "thread"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that the target has produced some output.
class OutputEvent {
int seq; // json: "seq"
mixed type; // json: "type"
OutputEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
OutputEvent OutputEvent_from_JSON(mixed json) {
OutputEvent retval = OutputEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class OutputEventBody {
mixed category; // json: "category"
mixed column; // json: "column"
mixed data; // json: "data"
mixed line; // json: "line"
string output; // json: "output"
mixed source; // json: "source"
mixed variables_reference; // json: "variablesReference"
string encode_json() {
mapping(string:mixed) json = ([
"category" : category,
"column" : column,
"data" : data,
"line" : line,
"output" : output,
"source" : source,
"variablesReference" : variables_reference,
]);
return Standards.JSON.encode(json);
}
}
OutputEventBody OutputEventBody_from_JSON(mixed json) {
OutputEventBody retval = OutputEventBody();
retval.category = json["category"];
retval.column = json["column"];
retval.data = json["data"];
retval.line = json["line"];
retval.output = json["output"];
retval.source = json["source"];
retval.variables_reference = json["variablesReference"];
return retval;
}
// An optional source location where the output was produced.
//
// A Source is a descriptor for source code. It is returned from the debug adapter as part
// of a StackFrame and it is used by clients when specifying breakpoints.
//
// The source where the breakpoint is located.
//
// The new, changed, or removed source.
//
// The source location of the breakpoints; either 'source.path' or 'source.reference' must
// be specified.
//
// The optional source of the frame.
//
// Optional source for this scope.
//
// Specifies the source content to load. Either source.path or source.sourceReference must
// be specified.
//
// The source location for which the goto targets are determined.
class Source {
mixed adapter_data; // json: "adapterData"
mixed checksums; // json: "checksums"
mixed name; // json: "name"
mixed origin; // json: "origin"
mixed path; // json: "path"
mixed presentation_hint; // json: "presentationHint"
mixed source_reference; // json: "sourceReference"
mixed sources; // json: "sources"
string encode_json() {
mapping(string:mixed) json = ([
"adapterData" : adapter_data,
"checksums" : checksums,
"name" : name,
"origin" : origin,
"path" : path,
"presentationHint" : presentation_hint,
"sourceReference" : source_reference,
"sources" : sources,
]);
return Standards.JSON.encode(json);
}
}
Source Source_from_JSON(mixed json) {
Source retval = Source();
retval.adapter_data = json["adapterData"];
retval.checksums = json["checksums"];
retval.name = json["name"];
retval.origin = json["origin"];
retval.path = json["path"];
retval.presentation_hint = json["presentationHint"];
retval.source_reference = json["sourceReference"];
retval.sources = json["sources"];
return retval;
}
// The checksum of an item calculated by the specified algorithm.
class Checksum {
mixed algorithm; // json: "algorithm"
string checksum; // json: "checksum"
string encode_json() {
mapping(string:mixed) json = ([
"algorithm" : algorithm,
"checksum" : checksum,
]);
return Standards.JSON.encode(json);
}
}
Checksum Checksum_from_JSON(mixed json) {
Checksum retval = Checksum();
retval.algorithm = json["algorithm"];
retval.checksum = json["checksum"];
return retval;
}
constant MD5 = "MD5"; // json: "MD5"
constant SHA1 = "SHA1"; // json: "SHA1"
constant SHA256 = "SHA256"; // json: "SHA256"
constant TIMESTAMP = "timestamp"; // json: "timestamp"
constant DEEMPHASIZE = "deemphasize"; // json: "deemphasize"
constant EMPHASIZE = "emphasize"; // json: "emphasize"
constant PURPLE_NORMAL = "normal"; // json: "normal"
constant OUTPUT = "output"; // json: "output"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that some information about a breakpoint has changed.
class BreakpointEvent {
int seq; // json: "seq"
mixed type; // json: "type"
BreakpointEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
BreakpointEvent BreakpointEvent_from_JSON(mixed json) {
BreakpointEvent retval = BreakpointEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class BreakpointEventBody {
Breakpoint breakpoint; // json: "breakpoint"
string reason; // json: "reason"
string encode_json() {
mapping(string:mixed) json = ([
"breakpoint" : breakpoint,
"reason" : reason,
]);
return Standards.JSON.encode(json);
}
}
BreakpointEventBody BreakpointEventBody_from_JSON(mixed json) {
BreakpointEventBody retval = BreakpointEventBody();
retval.breakpoint = json["breakpoint"];
retval.reason = json["reason"];
return retval;
}
// The 'id' attribute is used to find the target breakpoint and the other attributes are
// used as the new values.
//
// Information about a Breakpoint created in setBreakpoints or setFunctionBreakpoints.
class Breakpoint {
mixed column; // json: "column"
mixed end_column; // json: "endColumn"
mixed end_line; // json: "endLine"
mixed id; // json: "id"
mixed line; // json: "line"
mixed message; // json: "message"
mixed source; // json: "source"
bool verified; // json: "verified"
string encode_json() {
mapping(string:mixed) json = ([
"column" : column,
"endColumn" : end_column,
"endLine" : end_line,
"id" : id,
"line" : line,
"message" : message,
"source" : source,
"verified" : verified,
]);
return Standards.JSON.encode(json);
}
}
Breakpoint Breakpoint_from_JSON(mixed json) {
Breakpoint retval = Breakpoint();
retval.column = json["column"];
retval.end_column = json["endColumn"];
retval.end_line = json["endLine"];
retval.id = json["id"];
retval.line = json["line"];
retval.message = json["message"];
retval.source = json["source"];
retval.verified = json["verified"];
return retval;
}
constant BREAKPOINT = "breakpoint"; // json: "breakpoint"
// Base class of requests, responses, and events.
//
// A debug adapter initiated event.
//
// The event indicates that some information about a module has changed.
class ModuleEvent {
int seq; // json: "seq"
mixed type; // json: "type"
ModuleEventBody body; // json: "body"
mixed event; // json: "event"
string encode_json() {
mapping(string:mixed) json = ([
"seq" : seq,
"type" : type,
"body" : body,
"event" : event,
]);
return Standards.JSON.encode(json);
}
}
ModuleEvent ModuleEvent_from_JSON(mixed json) {
ModuleEvent retval = ModuleEvent();
retval.seq = json["seq"];
retval.type = json["type"];
retval.body = json["body"];
retval.event = json["event"];
return retval;
}
class ModuleEventBody {
Module module; // json: "module"
mixed reason; // json: "reason"
string encode_json() {
mapping(string:mixed) json = ([
"module" : module,
"reason" : reason,
]);
return Standards.JSON.encode(json);
}
}
ModuleEventBody ModuleEventBody_from_JSON(mixed json) {
ModuleEventBody retval = ModuleEventBody();
retval.module = json["module"];
retval.reason = json["reason"];
return retval;
}
// The new, changed, or removed module. In case of 'removed' only the module id is used.
//
// A Module object represents a row in the modules view.
// Two attributes are mandatory: an id identifies a module in the modules view and is used