dart-sdk/pkg/analyzer/lib
Sam Rawlins 419d70afb2 Fix message of RETURN_IN_GENERATOR; stop double reporting.
* This message should only be reported by the parser; the
  error raised in the analyzer was strictly duplicate.
* This message theoretically used to mention "async*" or
  "sync*" depending on the modifier that the function in
  question listed. However, listing one modifier or the
  other is a red herring, and may confuse the user; any
  function declared with one or the other is a "generator",
  and the error applies equally to a "generator" using one
  or the other modifier.

Bug: https://github.com/dart-lang/sdk/issues/43665
Change-Id: I6ef1f5c055473170e7563222f6f0a6c56a4ad5f5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/210801
Commit-Queue: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2021-08-24 01:43:48 +00:00
..
dart Analyzer: Fix representation of an arrow generator (illegal) function 2021-08-23 21:12:10 +00:00
diagnostic Add a url field to DiagnosticMessage. 2021-04-23 20:34:32 +00:00
error analyzer: report tearoff of generative constructor of abstract class 2021-08-20 17:16:06 +00:00
exception Make local variables that hide fields be final (analyzer) 2021-04-24 18:04:04 +00:00
file_system Fix null checks in OverlayResourceProvider. 2021-07-02 17:06:05 +00:00
instrumentation Migrate more of server 2021-04-08 19:05:30 +00:00
source Breaking changes for analyzer version 2.0.0 2021-07-02 19:02:44 +00:00
src Fix message of RETURN_IN_GENERATOR; stop double reporting. 2021-08-24 01:43:48 +00:00