dart-sdk/pkg
Jens Johansen f72603ab45 [fasta] Allow --dump-ir to print error program
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>
2018-01-09 13:11:58 +00:00
..
analysis_server FrontEndCompiler that computes all information about many libraries at once. 2018-01-09 07:05:54 +00:00
analysis_server_client Test failing fix. Stdin is mocked to avoid the typing issue; not critical for this unit test. 2017-08-08 19:00:37 -07:00
analyzer FrontEndCompiler that computes all information about many libraries at once. 2018-01-09 07:05:54 +00:00
analyzer_cli Create the new flag --use-cfe in the analyzer, analysis server and analyzer_cli and migrate the old behavior of --preview-dart-2 to --use-cfe. The --preview-dart-2 flag is now a no-op, with functionality coming soon. 2018-01-08 22:37:05 +00:00
analyzer_plugin Code complete identifiers not directly referenced by the analyzer AST 2017-12-22 21:55:35 +00:00
async_helper Update language_2/await_test.dart to use async_helper. 2017-12-06 12:05:59 +00:00
browser
compiler Add strong sections to language_2 and corelib_2, and change to run dart2js in 2018-01-08 21:08:05 +00:00
dart_internal Disable analyzer warning on special 'dart:_internal' import. 2017-12-21 23:21:04 +00:00
dart_messages Make pkg/dart_messages strong. 2017-06-08 21:55:05 -07:00
dev_compiler Address leafp's comments 2018-01-08 15:49:02 +00:00
expect Remove version from unpublished packages 2017-12-19 18:26:05 +00:00
front_end [fasta] Allow --dump-ir to print error program 2018-01-09 13:11:58 +00:00
js Making license files consistent across all packages 2017-09-28 19:33:08 +00:00
js_ast Fix printer_callback_test 2017-12-21 14:30:49 +00:00
kernel Finish the kernel2kernel "constants" transformation by fixing a whole bunch of issues 2018-01-08 19:56:24 +00:00
meta Add a README file to the meta package 2017-12-17 21:53:17 +00:00
microlytics
sourcemap_testing First step debugging tests. 2017-12-21 14:03:51 +00:00
status_file Another passing test. 2017-12-15 05:01:54 +00:00
telemetry Remove Fuchsia-specific build files. 2017-10-19 17:52:37 +00:00
testing [pkg testing] Fix off-by-one in cmdline parsing 2017-11-20 11:35:57 +00:00
typed_mock Remove Fuchsia-specific build files. 2017-10-19 17:52:37 +00:00
vm Reland "Treat most warnings as errors in strong mode." 2018-01-08 09:20:02 +00:00
.gitignore
BUILD.gn
pkg.status [gardening] Mark timing out tests as slow 2018-01-09 12:57:28 +00:00