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

Issue 10532150: PrettyPrinter: add an ability to prefix node fields, so instead of: (Closed)

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

Description

PrettyPrinter: add an ability to prefix node fields, so instead of: <NodeList> we will see: <statements:NodeList> (of course if that NodeList is statements for some function expression for example). nextPrefix BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8690

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M lib/compiler/implementation/tree/prettyprint.dart View 1 2 3 4 3 chunks +30 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Roman
8 years, 6 months ago (2012-06-14 20:25:57 UTC) #1
Anton Muhin
https://chromiumcodereview.appspot.com/10532150/diff/2001/lib/compiler/implementation/tree/prettyprint.dart File lib/compiler/implementation/tree/prettyprint.dart (right): https://chromiumcodereview.appspot.com/10532150/diff/2001/lib/compiler/implementation/tree/prettyprint.dart#newcode18 lib/compiler/implementation/tree/prettyprint.dart:18: // Prefix for the next openNode() invocation for that ...
8 years, 6 months ago (2012-06-14 20:32:37 UTC) #2
Roman
https://chromiumcodereview.appspot.com/10532150/diff/2001/lib/compiler/implementation/tree/prettyprint.dart File lib/compiler/implementation/tree/prettyprint.dart (right): https://chromiumcodereview.appspot.com/10532150/diff/2001/lib/compiler/implementation/tree/prettyprint.dart#newcode18 lib/compiler/implementation/tree/prettyprint.dart:18: // Prefix for the next openNode() invocation for that ...
8 years, 6 months ago (2012-06-14 20:47:32 UTC) #3
Anton Muhin
lgtm w/ comments https://chromiumcodereview.appspot.com/10532150/diff/5001/lib/compiler/implementation/tree/prettyprint.dart File lib/compiler/implementation/tree/prettyprint.dart (right): https://chromiumcodereview.appspot.com/10532150/diff/5001/lib/compiler/implementation/tree/prettyprint.dart#newcode18 lib/compiler/implementation/tree/prettyprint.dart:18: /** Prefix for the type passed ...
8 years, 6 months ago (2012-06-14 20:52:07 UTC) #4
Roman
8 years, 6 months ago (2012-06-14 21:14:31 UTC) #5
https://chromiumcodereview.appspot.com/10532150/diff/5001/lib/compiler/implem...
File lib/compiler/implementation/tree/prettyprint.dart (right):

https://chromiumcodereview.appspot.com/10532150/diff/5001/lib/compiler/implem...
lib/compiler/implementation/tree/prettyprint.dart:18: /** Prefix for the type
passed to next openNode() call. */
On 2012/06/14 20:52:07, antonmuhin wrote:
> nit: I think you'd better put openNode() into [: :]---[:openNode():]

Simple grep shows that in "lib" [::] is never used, so I just wrapped in []

https://chromiumcodereview.appspot.com/10532150/diff/5001/lib/compiler/implem...
lib/compiler/implementation/tree/prettyprint.dart:19: String nextPrefix;
On 2012/06/14 20:52:07, antonmuhin wrote:
> maybe something like nextTypePrefix would be a better name.

Done.

https://chromiumcodereview.appspot.com/10532150/diff/5001/lib/compiler/implem...
lib/compiler/implementation/tree/prettyprint.dart:263: if (node.receiver !==
null) {
On 2012/06/14 20:52:07, antonmuhin wrote:
> nit: single line?  here and below

Done (where possible).

Powered by Google App Engine
This is Rietveld 408576698