26652c6d31
The current const assertion error code is okay for errors without messages, but for ones with a message included, it would be preferable to add that for additional context. This CL adds another error code named `CONST_EVAL_ASSERTION_FAILURE_WITH_MESSAGE` to add the assert message onto the constant error. Bug: https://github.com/dart-lang/sdk/issues/55485 Change-Id: Ie3c9019aab3ce0eb8e595b5c41394c89af32eed1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/363942 Reviewed-by: Samuel Rawlins <srawlins@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Kallen Tu <kallentu@google.com>