Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid a "missing_return" warning in isValidImplementation.
The analyzer can't tell that `unhandled` is guaranteed not to return, so it thinks that `isValidImplementation` might exit without returning a value. An easy workaround is to turn the call to `unhandled` into a `throw`. This is needed to roll kernel into the internal Google codebase, in which the "missing_return" warning causes build failures. Change-Id: Ia88b6cdef3693ab4646470616c7f868c5bad0502 Reviewed-on: https://dart-review.googlesource.com/72900 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Kevin Millikin <kmillikin@google.com>
- Loading branch information