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.
2 parents a7ee5e3 + 7598089 commit 52a78a2Copy full SHA for 52a78a2
source/ada/lsp-ada_inline_value.adb
@@ -88,7 +88,9 @@ package body LSP.Ada_Inline_Value is
88
89
function Is_String
90
(Tipe : Libadalang.Analysis.Base_Type_Decl) return Boolean is
91
- (Ends_With (Libadalang.Text.To_Lower (Tipe.F_Name.Text), "string"));
+ ((if Tipe.F_Name.Is_Null
92
+ then False
93
+ else Ends_With (Libadalang.Text.To_Lower (Tipe.F_Name.Text), "string")));
94
-- Check if Tipe has "String" suffix
95
96
function Find_Scalar_Expr_After_Stop
0 commit comments