Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Issue 1230903002: fixes #6, refactor to use AnalysisError/Listener throughout dev_compiler (Closed)

Created:
5 years, 5 months ago by Jennifer Messerly
Modified:
5 years, 5 months ago
Reviewers:
vsm, pquitslund
CC:
dev-compiler+reviews_dartlang.org, pquitslund
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

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

Messages

Total messages: 8 (2 generated)
Jennifer Messerly
5 years, 5 months ago (2015-07-09 20:41:25 UTC) #2
vsm
lgtm https://codereview.chromium.org/1230903002/diff/1/lib/src/dependency_graph.dart File lib/src/dependency_graph.dart (right): https://codereview.chromium.org/1230903002/diff/1/lib/src/dependency_graph.dart#newcode241 lib/src/dependency_graph.dart:241: // TODO(jmesserly): should these be errors or warnings? ...
5 years, 5 months ago (2015-07-09 23:54:08 UTC) #3
pquitslund
https://codereview.chromium.org/1230903002/diff/1/lib/devc.dart File lib/devc.dart (right): https://codereview.chromium.org/1230903002/diff/1/lib/devc.dart#newcode13 lib/devc.dart:13: show AnalysisError, AnalysisErrorListener, ErrorSeverity, ErrorType; Nit: I would sort ...
5 years, 5 months ago (2015-07-10 05:17:25 UTC) #5
pquitslund
Oh, and needless to say (and FWIW) LGTM!
5 years, 5 months ago (2015-07-10 05:18:19 UTC) #6
Jennifer Messerly
https://codereview.chromium.org/1230903002/diff/1/lib/devc.dart File lib/devc.dart (right): https://codereview.chromium.org/1230903002/diff/1/lib/devc.dart#newcode13 lib/devc.dart:13: show AnalysisError, AnalysisErrorListener, ErrorSeverity, ErrorType; On 2015/07/10 05:17:25, pquitslund ...
5 years, 5 months ago (2015-07-10 16:12:05 UTC) #7
Jennifer Messerly
5 years, 5 months ago (2015-07-10 17:15:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
032419ed3c296f32ab980aec57db947afb06c7b6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698