Commit 53994d1
committed
[Parse] Fix code completion crash when avoiding skipping
Fix a crash that could occur when performing
completion at the start of an accessor body.
Previously we assumed `CodeCompletion` would never
be null due to function body skipping in the first
pass of code completion. However with the
introduction of the ability to avoid skipping in
certain cases, it might be now be null if we need
to avoid skipping. Found by the stress tester.
rdar://957728031 parent 56024b3 commit 53994d1
File tree
2 files changed
+16
-1
lines changed- lib/Parse
- test/SourceKit/CodeComplete
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7383 | 7383 | | |
7384 | 7384 | | |
7385 | 7385 | | |
7386 | | - | |
| 7386 | + | |
| 7387 | + | |
7387 | 7388 | | |
7388 | 7389 | | |
7389 | 7390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments