Commit 4603b67
committed
[CodeComplete] Fix issue completing type in generic signature
Due to #36552, parsing the code completion token as a type inside a generic parameter list no longer fails. Instead, it consumes the code completion token as a type identifier. However, since `parseExprIdentifer` does not return a `ParserStatus`, the information whether a code completion token was consumed gets lost, causing `setCodeCompletionDelayedDeclState` to not be called and thus no code completion results show up.
To resolve this, make `parseExprIdentifier` return its `ParserStatus` through a `ParserResult`.
Fixes rdar://76335452 [SR-14432]1 parent 5cf19e4 commit 4603b67
File tree
3 files changed
+24
-8
lines changed- include/swift/Parse
- lib/Parse
- test/IDE
3 files changed
+24
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | | - | |
| 1585 | + | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | 1588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
1548 | | - | |
| 1548 | + | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | 1551 | | |
| |||
2192 | 2192 | | |
2193 | 2193 | | |
2194 | 2194 | | |
2195 | | - | |
| 2195 | + | |
| 2196 | + | |
2196 | 2197 | | |
2197 | 2198 | | |
2198 | 2199 | | |
| |||
2217 | 2218 | | |
2218 | 2219 | | |
2219 | 2220 | | |
2220 | | - | |
2221 | | - | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
2222 | 2224 | | |
2223 | 2225 | | |
2224 | 2226 | | |
| |||
2227 | 2229 | | |
2228 | 2230 | | |
2229 | 2231 | | |
2230 | | - | |
| 2232 | + | |
| 2233 | + | |
2231 | 2234 | | |
2232 | 2235 | | |
2233 | 2236 | | |
| |||
2237 | 2240 | | |
2238 | 2241 | | |
2239 | 2242 | | |
2240 | | - | |
| 2243 | + | |
2241 | 2244 | | |
2242 | 2245 | | |
2243 | 2246 | | |
| |||
2508 | 2511 | | |
2509 | 2512 | | |
2510 | 2513 | | |
2511 | | - | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
2512 | 2517 | | |
2513 | 2518 | | |
2514 | 2519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments