Commit 4c185dc
committed
U831-003: Handle generic package in Get_Decl_Kind
When parsing a generic package declaration LAL will return
GenericPackageDecl(GenericPackageInternal(...)) at this point
To prevent duplicate we must ignore either the GenericPackageDecl
or the GenericPackageInternal => the completion returns the second.
(Also Ada_Base_Package_Decl contains GenericPackageInternal and not
GenericPackageDecl)
Also fix a missing conversion between SymbolKind and CompletionKind
Adapts tests.1 parent 5a5d4d7 commit 4c185dc
File tree
5 files changed
+21
-25
lines changed- source/ada
- testsuite/ada_lsp
- completion.invisible3
- completion.subp_params_dotted_names
5 files changed
+21
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
1570 | 1571 | | |
1571 | 1572 | | |
1572 | 1573 | | |
1573 | | - | |
| 1574 | + | |
| 1575 | + | |
1574 | 1576 | | |
1575 | 1577 | | |
1576 | | - | |
1577 | 1578 | | |
1578 | 1579 | | |
1579 | 1580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
309 | 302 | | |
310 | 303 | | |
311 | 304 | | |
| |||
326 | 319 | | |
327 | 320 | | |
328 | 321 | | |
329 | | - | |
330 | | - | |
331 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
332 | 327 | | |
333 | 328 | | |
334 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments