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

Issue 80053004: Nicer pretty printing of jsAst object literals. (Closed)

Created:
7 years, 1 month ago by sigurdm
Modified:
7 years, 1 month ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Nicer pretty printing of jsAst object literals. When printing an object literal it is often nice if each property is on its own line. This CL adds an option allowing for this. Also this is used for ObjectLiterals created by ClassBuilder. BUG= R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=30504 Committed: https://code.google.com/p/dart/source/detail?r=30565

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : Updated tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -14 lines) Patch
M sdk/lib/_internal/compiler/implementation/js/nodes.dart View 1 1 chunk +9 lines, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/js/printer.dart View 1 chunk +6 lines, -5 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/js_emitter/class_builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/class_codegen_test.dart View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/no_constructor_body_test.dart View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/no_duplicate_constructor_body_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
sigurdm
7 years, 1 month ago (2013-11-21 07:55:52 UTC) #1
ahe
LGTM, thank you! https://codereview.chromium.org/80053004/diff/1/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/80053004/diff/1/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode931 sdk/lib/_internal/compiler/implementation/js/nodes.dart:931: * Constructs a new object-initializer containing ...
7 years, 1 month ago (2013-11-21 08:30:04 UTC) #2
sigurdm
Notice that this CL is expected to increase code-size of the non-minified js because more ...
7 years, 1 month ago (2013-11-21 08:35:57 UTC) #3
sigurdm
https://codereview.chromium.org/80053004/diff/1/sdk/lib/_internal/compiler/implementation/js/nodes.dart File sdk/lib/_internal/compiler/implementation/js/nodes.dart (right): https://codereview.chromium.org/80053004/diff/1/sdk/lib/_internal/compiler/implementation/js/nodes.dart#newcode931 sdk/lib/_internal/compiler/implementation/js/nodes.dart:931: * Constructs a new object-initializer containing the given properties. ...
7 years, 1 month ago (2013-11-21 10:22:19 UTC) #4
sigurdm
Committed patchset #2 manually as r30504 (presubmit successful).
7 years, 1 month ago (2013-11-21 10:29:36 UTC) #5
sigurdm
This seems to clash with several unittests. For example dart2js/no_constructor_body_test.dart has the line: Expect.isTrue(generated.contains('A: {"": ...
7 years, 1 month ago (2013-11-21 11:20:34 UTC) #6
ahe
On 2013/11/21 11:20:34, sigurdm wrote: > This seems to clash with several unittests. > > ...
7 years, 1 month ago (2013-11-21 12:23:48 UTC) #7
sigurdm
7 years, 1 month ago (2013-11-21 13:18:00 UTC) #8
ahe
LGTM!
7 years, 1 month ago (2013-11-21 15:00:27 UTC) #9
sigurdm
7 years, 1 month ago (2013-11-22 08:06:31 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r30565 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698