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

Issue 1503053004: Move messages out of dart2js. (Closed)

Created:
5 years ago by floitsch
Modified:
5 years ago
CC:
reviews_dartlang.org, Brian Wilkerson
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Move messages out of dart2js. The format of the shared messages is still valid Dart, but it is restricted, so that a JavaScript parser can easily parse it. R=johnniwinther@google.com Committed: https://github.com/dart-lang/sdk/commit/e802e26d7b1b6379097c8317d161b073e60fe8be

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments. #

Patch Set 3 : Fixes #

Patch Set 4 : Merge. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+4233 lines, -3191 lines) Patch
A pkg/compiler/lib/src/diagnostics/dart2js_messages.dart View 1 2 3 1 chunk +3674 lines, -0 lines 4 comments Download
M pkg/compiler/lib/src/diagnostics/messages.dart View 1 2 3 7 chunks +498 lines, -3191 lines 0 comments Download
A pkg/compiler/lib/src/diagnostics/shared_messages.dart View 1 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
floitsch
Proposed approach. Currently the shared file is still inside dart2js, but I would move it ...
5 years ago (2015-12-08 08:01:52 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/1503053004/diff/1/pkg/compiler/lib/src/diagnostics/messages.dart File pkg/compiler/lib/src/diagnostics/messages.dart (right): https://codereview.chromium.org/1503053004/diff/1/pkg/compiler/lib/src/diagnostics/messages.dart#newcode416 pkg/compiler/lib/src/diagnostics/messages.dart:416: MessageKind.ASSERT_IS_GIVEN_NAMED_ARGUMENTS: "ASSERT_IS_GIVEN_NAMED_ARGUMENTS", Long line. More below. https://codereview.chromium.org/1503053004/diff/1/pkg/compiler/lib/src/diagnostics/shared_messages.dart File ...
5 years ago (2015-12-08 09:18:28 UTC) #3
floitsch
I'm running all the tests now. It takes a *long* time. I will have to ...
5 years ago (2015-12-09 08:42:40 UTC) #4
Johnni Winther
lgtm https://codereview.chromium.org/1503053004/diff/1/pkg/compiler/lib/src/diagnostics/shared_messages.dart File pkg/compiler/lib/src/diagnostics/shared_messages.dart (right): https://codereview.chromium.org/1503053004/diff/1/pkg/compiler/lib/src/diagnostics/shared_messages.dart#newcode56 pkg/compiler/lib/src/diagnostics/shared_messages.dart:56: // An INFO message should always be preceded ...
5 years ago (2015-12-09 09:10:12 UTC) #5
floitsch
I agree that info-messages shouldn't need an ID. Since the addition of ids was automatic, ...
5 years ago (2015-12-10 00:35:06 UTC) #6
floitsch
Committed patchset #4 (id:60001) manually as e802e26d7b1b6379097c8317d161b073e60fe8be (presubmit successful).
5 years ago (2015-12-10 00:35:27 UTC) #8
Siggi Cherem (dart-lang)
https://codereview.chromium.org/1503053004/diff/60001/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart File pkg/compiler/lib/src/diagnostics/dart2js_messages.dart (right): https://codereview.chromium.org/1503053004/diff/60001/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart#newcode59 pkg/compiler/lib/src/diagnostics/dart2js_messages.dart:59: // combine the first two in [template] and the ...
5 years ago (2015-12-10 01:05:31 UTC) #10
floitsch
https://codereview.chromium.org/1503053004/diff/60001/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart File pkg/compiler/lib/src/diagnostics/dart2js_messages.dart (right): https://codereview.chromium.org/1503053004/diff/60001/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart#newcode59 pkg/compiler/lib/src/diagnostics/dart2js_messages.dart:59: // combine the first two in [template] and the ...
5 years ago (2015-12-10 01:21:15 UTC) #11
Siggi Cherem (dart-lang)
On 2015/12/10 01:21:15, floitsch wrote: > https://codereview.chromium.org/1503053004/diff/60001/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart > File pkg/compiler/lib/src/diagnostics/dart2js_messages.dart (right): > > https://codereview.chromium.org/1503053004/diff/60001/pkg/compiler/lib/src/diagnostics/dart2js_messages.dart#newcode59 > ...
5 years ago (2015-12-10 01:34:44 UTC) #12
floitsch
On 2015/12/10 01:34:44, Siggi Cherem (dart-lang) wrote: > On 2015/12/10 01:21:15, floitsch wrote: > > ...
5 years ago (2015-12-10 01:40:08 UTC) #13
floitsch
On 2015/12/10 01:40:08, floitsch wrote: > On 2015/12/10 01:34:44, Siggi Cherem (dart-lang) wrote: > > ...
5 years ago (2015-12-10 01:41:37 UTC) #14
Siggi Cherem (dart-lang)
On 2015/12/10 01:41:37, floitsch wrote: > On 2015/12/10 01:40:08, floitsch wrote: > > On 2015/12/10 ...
5 years ago (2015-12-10 01:52:16 UTC) #15
floitsch
On 2015/12/10 01:52:16, Siggi Cherem (dart-lang) wrote: > On 2015/12/10 01:41:37, floitsch wrote: > > ...
5 years ago (2015-12-10 02:02:56 UTC) #16
Johnni Winther
5 years ago (2015-12-10 09:02:06 UTC) #17
Message was sent while issue was closed.
On 2015/12/10 00:35:06, floitsch wrote:
> I agree that info-messages shouldn't need an ID.
> Since the addition of ids was automatic, I suggest that we remove them from
info
> messages when we migrate them to the shared file.
> 
> Clearly, IMPORT_PART_HERE doesn't make sense if it isn't used in combination
> with IMPORT_PART_OF. We should either move the info message into the data-map
of
> IMPORT_PART_HERE or find another way to show this relationship.

Agreed

Powered by Google App Engine
This is Rietveld 408576698