mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:59:47 +00:00
f72603ab45
For instance, with the program snippet from issue #31409 one would not get any other output than the errors, and one would have to explicitly dump the dill file afterwards to see what was actually generated. This CL changes this, so the error-library is also printed (in addition to the, at least in the case of issue #31409, empty list) as in ``` $ pkg/front_end/tool/fasta compile tmp.dart --dump-ir tmp.dart:2:4: Error: Expected a function body or '=>'. Try adding {}. V(); ^ tmp.dart:3:5: Error: Duplicated definition of 'V'. var V; ^ tmp.dart: Error: Duplicated name: 'V'. tmp.dart:2:1: Error: Duplicated name: V V(); ^ library; import self as self; static method #main() → dynamic { throw "tmp.dart:2:1: Error: Duplicated name: V\nV();\n^"; } ``` Bug: Change-Id: I8739be43137f098e6dc50df27f4d1d8628bea469 Reviewed-on: https://dart-review.googlesource.com/32602 Reviewed-by: Peter von der Ahé <ahe@google.com> Commit-Queue: Jens Johansen <jensj@google.com> |
||
---|---|---|
.. | ||
benchmarks/ikg | ||
example/incremental_reload | ||
lib/src | ||
test | ||
testcases | ||
tool | ||
analysis_options.yaml | ||
error_recovery.yaml | ||
LICENSE | ||
messages.yaml | ||
pubspec.yaml | ||
README.md | ||
testing.json |
Front end for Dart
This package provides a low-level API for use by compiler back ends that wish to implement the Dart language. It is intended for eventual use by dev_compiler, dart2js, and the Dart VM. In addition, it will share implementation details with the analyzer package--this will be accomplished by having the analyzer package import (and re-export) parts of this package's private implementation.
End-users should use the [dartanalyzer][analyzercli] command-line tool to analyze their Dart code.
Integrators that want to write tools that analyze Dart code should use the [analyzer] package.
Note: The APIs in this package are in an early state; developers should be careful about depending on this package.