c7b572aa29
The constant evaluator now generates all errors as Fasta diagnostic messages. The ErrorReporter is simplified to just accept a diagnostic message, or a notification that the constant evaluator encountered an invalid expression (presumably put there due to an earlier error). Also, the flow of control between the error reporter and the internal abort exceptions is reversed, so the error reporter is now called as a result of an abort exception being caught by the evaluate method. Change-Id: I66f148cc4e202e328f895ae0b770f9b68c9f3c8e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96300 Reviewed-by: Kevin Millikin <kmillikin@google.com>