Skip to content

Commit 81b8aac

Browse files
committed
Has function for ProgressToken.
1 parent 14af323 commit 81b8aac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

liblsp_3_17/source/lsp-structures-hashes.ads

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ package LSP.Structures.Hashes is
1212
(Item : LSP.Structures.Integer_Or_Virtual_String)
1313
return Ada.Containers.Hash_Type;
1414

15+
function Hash
16+
(Item : LSP.Structures.ProgressToken) return Ada.Containers.Hash_Type;
17+
1518
private
1619

1720
function Hash
@@ -21,4 +24,11 @@ private
2124
when True => Ada.Containers.Hash_Type'Mod (Item.Integer),
2225
when False => VSS.Strings.Hash (Item.Virtual_String));
2326

27+
function Hash
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+
2434
end LSP.Structures.Hashes;

0 commit comments

Comments
 (0)