mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 20:41:24 +00:00
6fa813d818
Before: Kernel static errors were represented by throwing a distinguished error or else by calling a distinguished library const constructor. Now: Kernel static errors are represented by InvalidExpression. To support error reporting, InvalidExpression has an optional message and a file offset. A back end can choose to signal these errors at any time; for example, when deserializing the binary, or when compiling the procedure containing the static error, or when the erroneous expression is evaluated at run time. InvalidStatement is removed because it can be encoded as ExpressionStatement of InvalidExpression. Future work: * supporting static errors where an expression cannot appear in the AST * allowing InvalidExpression to contain an Expression for error recovery * adding a top-level list of static errors and warnings to the binary Bug: https://github.com/dart-lang/sdk/issues/29840 Change-Id: Ifdfe9a76cee6cefed28061bf245be70531d2f413 Reviewed-on: https://dart-review.googlesource.com/31320 Commit-Queue: Kevin Millikin <kmillikin@google.com> Reviewed-by: Dan Rubel <danrubel@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> |
||
---|---|---|
build | ||
client | ||
docs | ||
pkg | ||
runtime | ||
samples | ||
samples-dev | ||
sdk | ||
tests | ||
third_party | ||
tools | ||
utils | ||
.clang-format | ||
.gitattributes | ||
.gitignore | ||
.gn | ||
.mailmap | ||
.packages | ||
AUTHORS | ||
BUILD.gn | ||
CHANGELOG.md | ||
codereview.settings | ||
DEPS | ||
LICENSE | ||
PATENTS | ||
PRESUBMIT.py | ||
README.dart-sdk | ||
README.md | ||
WATCHLISTS |
Dart
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Using Dart
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.
Building Dart
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.
Contributing to Dart
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.