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

Issue 20742002: Clean up error handling. (Closed)

Created:
7 years, 5 months ago by ahe
Modified:
7 years, 4 months ago
CC:
reviews_dartlang.org, justinfagnani, Johnni Winther
Visibility:
Public.

Description

Clean up error handling. BUG=http://dartbug.com/12039 R=kustermann@google.com Committed: https://code.google.com/p/dart/source/detail?r=25546

Patch Set 1 #

Patch Set 2 : Fixed errors found during testing. #

Total comments: 8

Patch Set 3 : Address comments. #

Patch Set 4 : Added documentation guide lines. #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+1216 lines, -1030 lines) Patch
M dart/sdk/lib/_internal/compiler/implementation/apiimpl.dart View 3 chunks +24 lines, -22 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart View 7 chunks +16 lines, -18 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/compiler.dart View 1 8 chunks +42 lines, -38 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/deferred_load.dart View 1 chunk +1 line, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart View 2 chunks +1 line, -3 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart View 2 chunks +2 lines, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/elements/modelx.dart View 5 chunks +6 lines, -5 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart View 1 chunk +1 line, -1 line 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/library_loader.dart View 5 chunks +20 lines, -12 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/patch_parser.dart View 8 chunks +45 lines, -80 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 57 chunks +133 lines, -117 lines 1 comment Download
M dart/sdk/lib/_internal/compiler/implementation/scanner/class_element_parser.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart View 1 5 chunks +10 lines, -8 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/typechecker.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 3 5 chunks +594 lines, -423 lines 10 comments Download
M dart/tests/compiler/dart2js/analyze_only_test.dart View 1 6 chunks +11 lines, -6 lines 0 comments Download
M dart/tests/compiler/dart2js/compiler_test.dart View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M dart/tests/compiler/dart2js/deprecated_features_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M dart/tests/compiler/dart2js/diagnose_ambiguous_test.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download
M dart/tests/compiler/dart2js/mock_compiler.dart View 1 3 chunks +13 lines, -9 lines 0 comments Download
M dart/tests/compiler/dart2js/package_root_test.dart View 1 1 chunk +72 lines, -72 lines 0 comments Download
M dart/tests/compiler/dart2js/patch_test.dart View 1 6 chunks +12 lines, -10 lines 0 comments Download
M dart/tests/compiler/dart2js/private_test.dart View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M dart/tests/compiler/dart2js/resolver_test.dart View 1 8 chunks +9 lines, -8 lines 0 comments Download
M dart/tests/compiler/dart2js/type_checker_test.dart View 1 42 chunks +180 lines, -176 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ahe
7 years, 5 months ago (2013-07-26 15:01:28 UTC) #1
kustermann
lgtm https://codereview.chromium.org/20742002/diff/3001/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart File dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/20742002/diff/3001/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode647 dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart:647: {'className': mixin.name}); Indentation. https://codereview.chromium.org/20742002/diff/3001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart File dart/sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/20742002/diff/3001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode461 ...
7 years, 4 months ago (2013-07-27 09:50:29 UTC) #2
ahe
Thank you, Martin. Before submitting, I added a number of guide lines for error messages ...
7 years, 4 months ago (2013-07-28 09:05:51 UTC) #3
ahe
Committed patchset #4 manually as r25546 (presubmit successful).
7 years, 4 months ago (2013-07-28 09:07:22 UTC) #4
ahe
https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart File dart/sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode14 dart/sdk/lib/_internal/compiler/implementation/warnings.dart:14: * other languages than English, and that it is ...
7 years, 4 months ago (2013-07-28 09:19:36 UTC) #5
Johnni Winther
lgtm https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart File dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart (right): https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart#newcode1260 dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart:1260: 'internal error: Unhandled node: ${node.getObjectDescription()}'); 'internal error' -> ...
7 years, 4 months ago (2013-07-29 06:22:41 UTC) #6
kustermann
It's a good idea to define rules for the messages. https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart File dart/sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode27 ...
7 years, 4 months ago (2013-07-29 06:26:40 UTC) #7
ahe
Feedback from Luke. https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart File dart/sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode22 dart/sdk/lib/_internal/compiler/implementation/warnings.dart:22: * 'Error: The class "#{className}" cannot ...
7 years, 4 months ago (2013-07-30 14:31:35 UTC) #8
sra1
https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart File dart/sdk/lib/_internal/compiler/implementation/warnings.dart (right): https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/compiler/implementation/warnings.dart#newcode20 dart/sdk/lib/_internal/compiler/implementation/warnings.dart:20: * 3. Reserved words and embedded identifiers should be ...
7 years, 4 months ago (2013-07-30 21:28:19 UTC) #9
ahe
7 years, 4 months ago (2013-07-31 15:58:38 UTC) #10
Message was sent while issue was closed.
I'm currently adding some new diagnostics in a CL.

I'll circulate that CL a bit wider than normally so we can discuss how the
messages look and then I'll update the guide lines.

https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/co...
File dart/sdk/lib/_internal/compiler/implementation/warnings.dart (right):

https://codereview.chromium.org/20742002/diff/17001/dart/sdk/lib/_internal/co...
dart/sdk/lib/_internal/compiler/implementation/warnings.dart:20: * 3. Reserved
words and embedded identifiers should be in quotes (double
On 2013/07/30 21:28:20, sra1 wrote:
> We should be using single quotes.
...
> 3. Single quotes are also a better choice when the whole message needs to be
> quoted, example, http://google.com gives the same result for

You convinced me.

Powered by Google App Engine
This is Rietveld 408576698