Commit f2df9cd
committed
bpp-lsp: ProgramPool: Verify parsing was successful before changing pool state
This prevents crashes which may come from storing 'nullptr' parse results in the program pool's state, and later (unthinkingly) using them as if they were valid pointers.
It also prevents us from losing diagnostic information about programs which have been parsed, which have also undergone incomplete updates that can't yet be fully re-parsed1 parent 8add037 commit f2df9cd
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
| |||
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
224 | 237 | | |
225 | 238 | | |
226 | 239 | | |
| |||
0 commit comments