We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14af323 commit 81b8aacCopy full SHA for 81b8aac
liblsp_3_17/source/lsp-structures-hashes.ads
@@ -12,6 +12,9 @@ package LSP.Structures.Hashes is
12
(Item : LSP.Structures.Integer_Or_Virtual_String)
13
return Ada.Containers.Hash_Type;
14
15
+ function Hash
16
+ (Item : LSP.Structures.ProgressToken) return Ada.Containers.Hash_Type;
17
+
18
private
19
20
function Hash
@@ -21,4 +24,11 @@ private
21
24
when True => Ada.Containers.Hash_Type'Mod (Item.Integer),
22
25
when False => VSS.Strings.Hash (Item.Virtual_String));
23
26
27
28
+ (Item : LSP.Structures.ProgressToken)
29
+ return Ada.Containers.Hash_Type is
30
+ (case Item.Is_Integer is
31
+ when True => Ada.Containers.Hash_Type'Mod (Item.Integer),
32
+ when False => VSS.Strings.Hash (Item.Virtual_String));
33
34
end LSP.Structures.Hashes;
0 commit comments