File tree Expand file tree Collapse file tree 6 files changed +14
-7
lines changed Expand file tree Collapse file tree 6 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 18
18
with VSS.JSON.Pull_Readers.JSON5 ;
19
19
with VSS.Strings.Character_Iterators ;
20
20
with VSS.Text_Streams.File_Input ;
21
+ with VSS.Transformers.Casing ; use VSS.Transformers.Casing;
21
22
22
23
package body LSP_Gen.Configurations is
23
24
@@ -159,7 +160,7 @@ package body LSP_Gen.Configurations is
159
160
-- Turn the first character too uppercase
160
161
declare
161
162
Upper : constant VSS.Strings.Virtual_String :=
162
- Result. To_Simple_Uppercase;
163
+ To_Simple_Uppercase.Transform (Result) ;
163
164
Left : VSS.Strings.Character_Iterators.Character_Iterator :=
164
165
Upper.At_First_Character;
165
166
begin
Original file line number Diff line number Diff line change 17
17
18
18
with VSS.Characters ;
19
19
with VSS.Strings.Cursors.Iterators.Characters ;
20
+ with VSS.Transformers.Casing ; use VSS.Transformers.Casing;
20
21
21
22
with LSP_Gen.String_Sets ;
22
23
@@ -158,7 +159,9 @@ package body LSP_Gen.Mappings is
158
159
return VSS.Strings.Virtual_String
159
160
is
160
161
use type VSS.Characters.Virtual_Character;
161
- Keyword : constant VSS.Strings.Virtual_String := Text.To_Lowercase;
162
+
163
+ Keyword : constant VSS.Strings.Virtual_String :=
164
+ To_Lowercase.Transform (Text);
162
165
Result : VSS.Strings.Virtual_String;
163
166
begin
164
167
if Keywords.Contains (Keyword) then
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ package body LSP_Gen.Notifications is
156
156
157
157
Put_Line (" )" );
158
158
Put_Line (" is" );
159
- Put_Line (" Ok : Boolean := False ;" );
159
+ Put_Line (" Ok : Boolean := True ;" );
160
160
Put_Line (" begin" );
161
161
Put (" Self.Output.Put ("" '" );
162
162
Put (J);
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ with VSS.Characters;
22
22
with VSS.Strings.Conversions ;
23
23
with VSS.Strings.Cursors.Iterators.Characters ;
24
24
with VSS.Strings.Hash ;
25
+ with VSS.Transformers.Casing ; use VSS.Transformers.Casing;
25
26
26
27
package body LSP_Gen.Puts is
27
28
@@ -82,7 +83,9 @@ package body LSP_Gen.Puts is
82
83
83
84
procedure Put_Id (Id : VSS.Strings.Virtual_String) is
84
85
use type VSS.Characters.Virtual_Character;
85
- Keyword : constant VSS.Strings.Virtual_String := Id.To_Lowercase;
86
+
87
+ Keyword : constant VSS.Strings.Virtual_String :=
88
+ To_Lowercase.Transform (Id);
86
89
begin
87
90
if Keywords.Contains (Keyword) then
88
91
if Id.At_First_Character.Element =
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ package body LSP_Gen.Requests is
155
155
156
156
Put_Line (" )" );
157
157
Put_Line (" is" );
158
- Put_Line (" Ok : Boolean := False ;" );
158
+ Put_Line (" Ok : Boolean := True ;" );
159
159
Put_Line (" begin" );
160
160
Put (" Self.Output.Put ("" '" );
161
161
Put (J);
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ package body LSP_Gen.Responses is
179
179
180
180
Put_Line (" )" );
181
181
Put_Line (" is" );
182
- Put_Line (" Ok : Boolean := False ;" );
182
+ Put_Line (" Ok : Boolean := True ;" );
183
183
Put_Line (" begin" );
184
184
Put (" Self.Output.Put ("" '" );
185
185
Put (J);
@@ -203,7 +203,7 @@ package body LSP_Gen.Responses is
203
203
Put_Line (" Id : LSP.Structures.Integer_Or_Virtual_String;" );
204
204
Put_Line (" Value : LSP.Errors.ResponseError)" );
205
205
Put_Line (" is" );
206
- Put_Line (" Ok : Boolean := False ;" );
206
+ Put_Line (" Ok : Boolean := True ;" );
207
207
Put_Line (" begin" );
208
208
Put (" Self.Output.Put ("" 'Error response'"" , Ok);" );
209
209
Put_Line (" Self.Put_Id (Id, Ok);" );
You can’t perform that action at this time.
0 commit comments