cf1d8b96db
Changes the signature of the following constructors: - Scanner - Scanner.fasta - Parser So that they accept a `DiagnosticReporter` object rather than a `DiagnosticListener` object. This brings the scanner and the parser into alignment with the majority of the rest of the analyzer (which reports errors using `DiagnosticReporter` rather than by talking to `DiagnosticListener` directly). It also makes the `source` parameter of these constructors unnecessary, because the `source` can be obtained from the `DiagnosticReporter`. Change-Id: I6a6a6964607ffb52a8332a6e618dc0c9a1e48c5c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/473442 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>