225b8d3f58
The existing behavior treated `var x = e; // comment` as an expression, and failed spectacularly to insert it after a `return`. The new behavior detects a `;` anywhere in the single line, not just at the end, as a sign that a single line is probably not an expression. Change-Id: Ice5abc8dc802db36511dc3cdcca162dc0e8a8f13 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/229155 Auto-Submit: Lasse Nielsen <lrn@google.com> Reviewed-by: Devon Carew <devoncarew@google.com> Commit-Queue: Lasse Nielsen <lrn@google.com>