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

Issue 10834374: Add a field to ClassNode that holds a NodeList of its members. (Closed)

Created:
8 years, 4 months ago by messick
Modified:
8 years, 4 months ago
Reviewers:
ahe, Anton Muhin, Roman
CC:
reviews_dartlang.org, Anton Muhin
Visibility:
Public.

Description

Add a field to ClassNode that holds a NodeList of its members. Modify Unparser to print the class body. Add (simple) tests to verify the body is being recorded. Committed: https://code.google.com/p/dart/source/detail?r=11122

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 24

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 10

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -4 lines) Patch
M lib/compiler/implementation/scanner/listener.dart View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M lib/compiler/implementation/tree/nodes.dart View 1 2 3 4 5 6 4 chunks +4 lines, -2 lines 0 comments Download
M lib/compiler/implementation/tree/unparser.dart View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/unparser2_test.dart View 1 2 3 4 5 6 1 chunk +136 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
messick
8 years, 4 months ago (2012-08-17 00:01:19 UTC) #1
ahe
No L*TM as there are no tests. The comments are just nits. You mention a ...
8 years, 4 months ago (2012-08-17 06:43:37 UTC) #2
ahe
And by the way: I'm really excited that you're doing this. It is great to ...
8 years, 4 months ago (2012-08-17 06:46:06 UTC) #3
messick
I had forgotten to include the new test file. I couldn't put the tests in ...
8 years, 4 months ago (2012-08-17 14:43:35 UTC) #4
messick
I added code to visit type parameters and added an unparser test for them. I ...
8 years, 4 months ago (2012-08-17 17:16:40 UTC) #5
ahe
LGTM! https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart#newcode210 lib/compiler/implementation/tree/nodes.dart:210: if (typeParameters != null) typeParameters.accept(visitor); You should probably ...
8 years, 4 months ago (2012-08-21 11:56:17 UTC) #6
Roman
https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart#newcode211 lib/compiler/implementation/tree/nodes.dart:211: if (body !== null) body.accept(visitor); Body will have all ...
8 years, 4 months ago (2012-08-21 14:56:34 UTC) #7
Anton Muhin
https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart#newcode211 lib/compiler/implementation/tree/nodes.dart:211: if (body !== null) body.accept(visitor); Yes, indeed. Steve, Peter, ...
8 years, 4 months ago (2012-08-21 15:00:16 UTC) #8
ahe
https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart#newcode211 lib/compiler/implementation/tree/nodes.dart:211: if (body !== null) body.accept(visitor); On 2012/08/21 15:00:16, Anton ...
8 years, 4 months ago (2012-08-21 15:03:36 UTC) #9
Anton Muhin
https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart#newcode211 lib/compiler/implementation/tree/nodes.dart:211: if (body !== null) body.accept(visitor); That'd be great, Peter, ...
8 years, 4 months ago (2012-08-21 15:04:18 UTC) #10
messick
Thanks for all the comments. I've addressed each one, mostly by making the recommended changes. ...
8 years, 4 months ago (2012-08-21 15:35:40 UTC) #11
ahe
http://codereview.chromium.org/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart File lib/compiler/implementation/tree/nodes.dart (right): http://codereview.chromium.org/10834374/diff/5/lib/compiler/implementation/tree/nodes.dart#newcode211 lib/compiler/implementation/tree/nodes.dart:211: if (body !== null) body.accept(visitor); On 2012/08/21 15:35:40, messick ...
8 years, 4 months ago (2012-08-21 15:43:16 UTC) #12
ahe
Just to be clear. The CL was OK. Now it isn't :-(
8 years, 4 months ago (2012-08-21 15:43:47 UTC) #13
messick
PTAL Thanks for catching the missing '='. https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/5/lib/compiler/implementation/tree/unparser.dart#newcode81 lib/compiler/implementation/tree/unparser.dart:81: if (!nodes.isEmpty()) ...
8 years, 4 months ago (2012-08-21 16:31:19 UTC) #14
Anton Muhin
DBC https://chromiumcodereview.appspot.com/10834374/diff/11004/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/11004/lib/compiler/implementation/tree/unparser.dart#newcode63 lib/compiler/implementation/tree/unparser.dart:63: if (node.typeParameters != null) { nit: !== https://chromiumcodereview.appspot.com/10834374/diff/11004/lib/compiler/implementation/tree/unparser.dart#newcode79 ...
8 years, 4 months ago (2012-08-21 16:51:32 UTC) #15
messick
Thanks Anton. I made some changes based on your feedback. https://chromiumcodereview.appspot.com/10834374/diff/11004/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10834374/diff/11004/lib/compiler/implementation/tree/unparser.dart#newcode63 ...
8 years, 4 months ago (2012-08-21 17:42:00 UTC) #16
ahe
8 years, 4 months ago (2012-08-21 19:44:59 UTC) #17
LGTM!

Powered by Google App Engine
This is Rietveld 408576698