ada_language_server_23.0.0_66f2e7fb/source/protocol/generated/lsp-messages-server_notifications.adb

  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
--  Automatically generated, do not edit.

package body LSP.Messages.Server_Notifications is

   --  These messages are sent from client to server.

   Map : Maps.Map;

   function Method_To_Tag
     (Method : VSS.Strings.Virtual_String) return Ada.Tags.Tag is
   begin
      return Method_To_Tag (Map, Method);
   end Method_To_Tag;

   overriding function Decode
     (JS : not null access LSP.JSON_Streams.JSON_Stream)
      return Initialized_Notification is
   begin
      return V : Initialized_Notification do
         NotificationMessage'Read (JS, NotificationMessage (V));
      end return;
   end Decode;

   overriding procedure Visit
     (Self    : Initialized_Notification;
      Handler : access Server_Notification_Receiver'Class)
   is
      pragma Unreferenced (Self);
   begin
      Handler.On_Initialized_Notification;
   end Visit;

   overriding function Decode
     (JS : not null access LSP.JSON_Streams.JSON_Stream)
      return Exit_Notification is
   begin
      return V : Exit_Notification do
         NotificationMessage'Read (JS, NotificationMessage (V));
      end return;
   end Decode;

   overriding procedure Visit
     (Self    : Exit_Notification;
      Handler : access Server_Notification_Receiver'Class)
   is
      pragma Unreferenced (Self);
   begin
      Handler.On_Exit_Notification;
   end Visit;

   overriding procedure Visit
     (Self    : DidChangeConfiguration_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidChangeConfiguration_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidChangeWorkspaceFolders_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidChangeWorkspaceFolders_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidChangeWatchedFiles_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidChangeWatchedFiles_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidCreateFiles_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidCreateFiles_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidRenameFiles_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidRenameFiles_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidDeleteFiles_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidDeleteFiles_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : Cancel_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_Cancel_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidOpenTextDocument_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidOpenTextDocument_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidChangeTextDocument_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidChangeTextDocument_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidSaveTextDocument_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidSaveTextDocument_Notification (Self.params);
   end Visit;

   overriding procedure Visit
     (Self    : DidCloseTextDocument_Notification;
      Handler : access Server_Notification_Receiver'Class) is
   begin
      Handler.On_DidCloseTextDocument_Notification (Self.params);
   end Visit;

begin

   Map.Insert
     ("initialized",
      Initialized_Notification'Tag);

   Map.Insert
     ("exit",
      Exit_Notification'Tag);

   Map.Insert
     ("workspace/didChangeConfiguration",
      DidChangeConfiguration_Notification'Tag);

   Map.Insert
     ("workspace/didChangeWorkspaceFolders",
      DidChangeWorkspaceFolders_Notification'Tag);

   Map.Insert
     ("workspace/didChangeWatchedFiles",
      DidChangeWatchedFiles_Notification'Tag);

   Map.Insert
     ("workspace/didCreateFiles",
      DidCreateFiles_Notification'Tag);

   Map.Insert
     ("workspace/didRenameFiles",
      DidRenameFiles_Notification'Tag);

   Map.Insert
     ("workspace/didDeleteFiles",
      DidDeleteFiles_Notification'Tag);

   Map.Insert
     ("$/cancelRequest",
      Cancel_Notification'Tag);

   Map.Insert
     ("textDocument/didOpen",
      DidOpenTextDocument_Notification'Tag);

   Map.Insert
     ("textDocument/didChange",
      DidChangeTextDocument_Notification'Tag);

   Map.Insert
     ("textDocument/didSave",
      DidSaveTextDocument_Notification'Tag);

   Map.Insert
     ("textDocument/didClose",
      DidCloseTextDocument_Notification'Tag);
end LSP.Messages.Server_Notifications;