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

Issue 1285743002: dart2js: add visitors and parsing support to infos (Closed)

Created:
5 years, 4 months ago by Siggi Cherem (dart-lang)
Modified:
5 years, 4 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 : #

Total comments: 11

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -19 lines) Patch
M pkg/compiler/lib/src/dump_info.dart View 1 1 chunk +6 lines, -6 lines 1 comment Download
M pkg/compiler/lib/src/info/info.dart View 1 15 chunks +312 lines, -13 lines 0 comments Download
M tests/compiler/dart2js/analyze_unused_dart2js_test.dart View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Siggi Cherem (dart-lang)
5 years, 4 months ago (2015-08-11 00:41:46 UTC) #4
Harry Terkelsen
lgtm https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart File pkg/compiler/lib/src/info/info.dart (right): https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart#newcode44 pkg/compiler/lib/src/info/info.dart:44: final String kind; consider making kind an enum? ...
5 years, 4 months ago (2015-08-11 01:15:19 UTC) #5
Johnni Winther
lgtm https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart File pkg/compiler/lib/src/info/info.dart (right): https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart#newcode204 pkg/compiler/lib/src/info/info.dart:204: class _ParseHelper { Do we have a test ...
5 years, 4 months ago (2015-08-11 08:45:37 UTC) #6
Siggi Cherem (dart-lang)
thanks for the review! https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart File pkg/compiler/lib/src/info/info.dart (right): https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart#newcode44 pkg/compiler/lib/src/info/info.dart:44: final String kind; On 2015/08/11 ...
5 years, 4 months ago (2015-08-11 16:09:27 UTC) #7
Siggi Cherem (dart-lang)
Committed patchset #2 (id:60001) manually as fd9b56078826ff893dc8845e0e60a67b96d1761b (presubmit successful).
5 years, 4 months ago (2015-08-11 16:11:07 UTC) #8
Siggi Cherem (dart-lang)
https://codereview.chromium.org/1285743002/diff/60001/pkg/compiler/lib/src/dump_info.dart File pkg/compiler/lib/src/dump_info.dart (right): https://codereview.chromium.org/1285743002/diff/60001/pkg/compiler/lib/src/dump_info.dart#newcode482 pkg/compiler/lib/src/dump_info.dart:482: Info outerInfo = infoCollector._elementToInfo[element]; oops - I noticed this ...
5 years, 4 months ago (2015-08-11 16:16:43 UTC) #9
Harry Terkelsen
https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart File pkg/compiler/lib/src/info/info.dart (right): https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/info/info.dart#newcode44 pkg/compiler/lib/src/info/info.dart:44: final String kind; On 2015/08/11 16:09:27, Siggi Cherem (dart-lang) ...
5 years, 4 months ago (2015-08-11 20:11:55 UTC) #10
Siggi Cherem (dart-lang)
5 years, 4 months ago (2015-08-11 20:13:40 UTC) #11
Message was sent while issue was closed.
On 2015/08/11 20:11:55, Harry Terkelsen wrote:
>
https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/in...
> File pkg/compiler/lib/src/info/info.dart (right):
> 
>
https://codereview.chromium.org/1285743002/diff/40001/pkg/compiler/lib/src/in...
> pkg/compiler/lib/src/info/info.dart:44: final String kind;
> On 2015/08/11 16:09:27, Siggi Cherem (dart-lang) wrote:
> > On 2015/08/11 01:15:18, Harry Terkelsen wrote:
> > > consider making kind an enum?
> > 
> > It's interesting because I only had in mind to use kind for serialization. I
> > didn't initially intend for the kind to be used to compare for the kind of
> info,
> > but now that you mention this, I can see how that's a natural thing to do
(end
> > even I used it in dump_info.dart!).
> > 
> > I think we should use the type itself for that purpose (`e is ClassInfo`
> instead
> > of `e.kind == InfoKinds.classInfo`). I',m wondering whether we should make
> this
> > field private as well?
> > 
> > I added the enum here for now, but enums are so restricted in Dart, that the
> > code is more complex as a result. I'm not sure if it's worth it. WDYT?
> 
> I've run into the same problem when trying to enum-ify Dart code. If it makes
> things more complex then I think it's better to just leave it.

Thanks - I did submit the change together with this CL, but I might revert it
later :)

Powered by Google App Engine
This is Rietveld 408576698