mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
1231e90fee
The fasta parser sometimes "drops" unexpected tokens during recovery. When this happens, the dropped or skipped token is not reported to the listeners, and thus does not become part of the analyzer's AST. These tokens are still in the token stream, but will not be found by the existing CompletionTarget mechanism. For example, the fasta parser parses 'if (v i) {}' as 'if (v) {}' and drops the 'i' token. This CL introduces a new CompletionTarget.droppedToken field. If a keyword or identifier has been dropped by the parser, but overlaps the code completion offset, then that token is placed into this new field. In the example above, when code completing the 'i', the CompletionTarget will now be containingNode = '(v)' entity = ')' droppedToken = 'i' Change-Id: I15e43529ab4a72de9500c521be278fa13ae68d99 Reviewed-on: https://dart-review.googlesource.com/31285 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Dan Rubel <danrubel@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.