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

Issue 1524843002: JS: Format if statements with no else on a single line (Closed)

Created:
5 years ago by ochafik
Modified:
5 years ago
Reviewers:
vsm, Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

JS: Format if statements with no else on a single line To match Dart style: https://www.dartlang.org/effective-dart/style/#do-use-curly-braces-for-all-flow-control-structures (also, that's the style we use in our .js runtime files, so that will help with diffs of the js->dart runtime migration from https://github.com/dart-lang/dev_compiler/issues/310) BUG= R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/1c1ab7de00a787f8a108ba4330a5fd2242036747

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 8

Patch Set 3 : Address comments #

Patch Set 4 : regenerated codegen tests #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1394 lines, -2742 lines) Patch
M lib/runtime/dart/_foreign_helper.js View 4 1 chunk +12 lines, -24 lines 0 comments Download
M lib/runtime/dart/_interceptors.js View 4 32 chunks +81 lines, -162 lines 0 comments Download
M lib/runtime/dart/_internal.js View 4 38 chunks +71 lines, -142 lines 0 comments Download
M lib/runtime/dart/_isolate_helper.js View 4 22 chunks +48 lines, -96 lines 0 comments Download
M lib/runtime/dart/_js_helper.js View 4 21 chunks +39 lines, -78 lines 0 comments Download
M lib/runtime/dart/_js_mirrors.js View 4 3 chunks +3 lines, -6 lines 0 comments Download
M lib/runtime/dart/_metadata.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M lib/runtime/dart/_native_typed_data.js View 4 27 chunks +84 lines, -168 lines 0 comments Download
M lib/runtime/dart/_utils.js View 4 3 chunks +4 lines, -8 lines 0 comments Download
M lib/runtime/dart/async.js View 4 89 chunks +132 lines, -264 lines 0 comments Download
M lib/runtime/dart/collection.js View 4 122 chunks +240 lines, -480 lines 0 comments Download
M lib/runtime/dart/convert.js View 4 49 chunks +91 lines, -182 lines 0 comments Download
M lib/runtime/dart/core.js View 4 70 chunks +156 lines, -312 lines 0 comments Download
M lib/runtime/dart/html.js View 1 2 3 4 74 chunks +113 lines, -226 lines 0 comments Download
M lib/runtime/dart/html_common.js View 1 2 3 4 20 chunks +39 lines, -78 lines 0 comments Download
M lib/runtime/dart/isolate.js View 4 4 chunks +6 lines, -12 lines 0 comments Download
M lib/runtime/dart/js.js View 1 2 3 4 5 chunks +10 lines, -20 lines 0 comments Download
M lib/runtime/dart/math.js View 4 6 chunks +16 lines, -32 lines 0 comments Download
M lib/runtime/dart/mirrors.js View 4 1 chunk +1 line, -2 lines 0 comments Download
M lib/runtime/dart/typed_data.js View 4 15 chunks +30 lines, -60 lines 0 comments Download
M lib/src/codegen/js_printer.dart View 1 2 4 1 chunk +1 line, -0 lines 0 comments Download
M lib/src/js/printer.dart View 1 2 4 5 chunks +23 lines, -2 lines 0 comments Download
M test/codegen/expect/DeltaBlue.js View 1 2 3 4 14 chunks +23 lines, -46 lines 0 comments Download
M test/codegen/expect/closure.js View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M test/codegen/expect/collection/algorithms.js View 1 2 3 4 8 chunks +15 lines, -30 lines 0 comments Download
M test/codegen/expect/collection/iterable_zip.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M test/codegen/expect/collection/priority_queue.js View 1 2 3 4 8 chunks +9 lines, -18 lines 0 comments Download
M test/codegen/expect/collection/src/canonicalized_map.js View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M test/codegen/expect/collection/src/comparators.js View 1 2 3 4 11 chunks +34 lines, -68 lines 0 comments Download
M test/codegen/expect/collection/src/queue_list.js View 1 2 3 4 5 chunks +7 lines, -14 lines 0 comments Download
M test/codegen/expect/collection/wrappers.js View 1 2 3 4 8 chunks +15 lines, -30 lines 0 comments Download
M test/codegen/expect/constructors.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M test/codegen/expect/expect.js View 1 2 3 4 9 chunks +35 lines, -70 lines 0 comments Download
M test/codegen/expect/expect/expect.js View 1 2 3 4 9 chunks +35 lines, -70 lines 0 comments Download
M test/codegen/expect/js/js.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M test/codegen/expect/methods.js View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M test/codegen/expect/script.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M test/codegen/expect/temps.js View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M test/codegen/expect/unittest.js View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M test/codegen/expect/unittest/unittest.js View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
ochafik
5 years ago (2015-12-14 18:04:01 UTC) #3
Jennifer Messerly
https://codereview.chromium.org/1524843002/diff/20001/lib/src/js/printer.dart File lib/src/js/printer.dart (right): https://codereview.chromium.org/1524843002/diff/20001/lib/src/js/printer.dart#newcode185 lib/src/js/printer.dart:185: bool _skipNextIndent = false; style nit: it looks like ...
5 years ago (2015-12-15 23:57:10 UTC) #5
ochafik
Thanks John! https://codereview.chromium.org/1524843002/diff/20001/lib/src/js/printer.dart File lib/src/js/printer.dart (right): https://codereview.chromium.org/1524843002/diff/20001/lib/src/js/printer.dart#newcode185 lib/src/js/printer.dart:185: bool _skipNextIndent = false; On 2015/12/15 23:57:10, ...
5 years ago (2015-12-16 02:00:37 UTC) #6
Jennifer Messerly
lgtm!
5 years ago (2015-12-16 18:54:14 UTC) #7
ochafik
5 years ago (2015-12-16 19:45:25 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 (id:70001) manually as
1c1ab7de00a787f8a108ba4330a5fd2242036747 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698