|
fixes #6, refactor to use AnalysisError/Listener throughout dev_compiler
Main goal here was to get rid of the enter/exit compilation unit tracking, to allow further Compiler/Server refactoring. We can get the Uri/LineInfo/contents off Source, which AnalysisError already has
SummaryReporter is now fairly generic.
TODOs for the future:
* figure out what to do about ErrorCodes, in particular dev_compiler prefix feels off.
* skip the intermediate StaticInfo types? They're really just builders now for AnalysisError.
* don't classify all existing messages as "AnalyzerError" ... just print them ...
* skip logger. For our command line program, stdout is part of its "API", IMO it shouldn't use logging for those messages. Consider Pub, which uses stdout/err for its messages, and uses logging for more detailed troubleshooting.
R=pquitslund@google.com, vsm@google.com
Committed: https://github.com/dart-lang/dev_compiler/commit/032419ed3c296f32ab980aec57db947afb06c7b6
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+254 lines, -310 lines) |
Patch |
 |
M |
lib/devc.dart
|
View
|
1
|
8 chunks |
+7 lines, -15 lines |
0 comments
|
Download
|
 |
M |
lib/src/checker/checker.dart
|
View
|
|
6 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
 |
M |
lib/src/codegen/js_printer.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/dependency_graph.dart
|
View
|
|
7 chunks |
+20 lines, -16 lines |
0 comments
|
Download
|
 |
M |
lib/src/info.dart
|
View
|
|
20 chunks |
+63 lines, -60 lines |
0 comments
|
Download
|
 |
M |
lib/src/report.dart
|
View
|
|
2 chunks |
+54 lines, -126 lines |
0 comments
|
Download
|
 |
M |
lib/src/summary.dart
|
View
|
|
3 chunks |
+34 lines, -6 lines |
0 comments
|
Download
|
 |
M |
lib/src/testing.dart
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lib/src/utils.dart
|
View
|
|
4 chunks |
+21 lines, -20 lines |
0 comments
|
Download
|
 |
M |
lib/strong_mode.dart
|
View
|
|
3 chunks |
+23 lines, -35 lines |
0 comments
|
Download
|
 |
M |
test/codegen/expect/temps.js
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/codegen/expect/temps.txt
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/codegen/temps.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/report_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tool/sdk_expected_errors.txt
|
View
|
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
Total messages: 8 (2 generated)
|