commit | e0b15762881f17ec6136cf4e159d3cef4b23c140 | [log] [tgz] |
---|---|---|
author | Paul Berry <paulberry@google.com> | Tue Sep 04 20:19:53 2018 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Tue Sep 04 20:19:53 2018 +0000 |
tree | bb434fa8730bb6d95eb6db4f7c635af7af2cad35 | |
parent | 4c9b53fafe1c0a0ce791efdd43ce3e01ece5809b [diff] |
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>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.