Open devoncarew opened 7 months ago
cc @scheglov
This is due to the empty synthetic token introduced in place of the unnamed variable declaration in the record pattern.
Duplicate of https://github.com/dart-lang/sdk/issues/54178
Re-opening just because I think there's an additional aspect to this issue.
@scheglov - the behavior here was that the parse exception from the front end was causing the analysis server process to terminate. Even assuming we resolve https://github.com/dart-lang/sdk/issues/54178, I think it's worth hardening the analysis server so that future parse exceptions can't crash the analysis server process.
Cannot reproduce, does not crash.
Marking P3 for the remaining issue Devon notes above:
Even assuming we resolve https://github.com/dart-lang/sdk/issues/54178, I think it's worth hardening the analysis server so that future parse exceptions can't crash the analysis server process.
This sample code:
will crash the analysis server at head. See the original bug report at https://github.com/dart-lang/dart-pad/issues/2731.