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

Issue 1145283002: Use short array syntax in method signatures (Closed)

Created:
5 years, 7 months ago by Leaf
Modified:
5 years, 7 months 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

Use short array syntax in method signatures. This follows up on a suggestion from jmesserly to use a shorter syntax in methods signatures. Replaces: dart.functionType(t, [t0,..., tn], extras) with [t, [t0, ..., tn], extras] BUG= R=jmesserly@google.com, vsm@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/00ad0a1ef746252580094fd0cf5df6b0622fb2b2

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -83 lines) Patch
M lib/runtime/dart_runtime.js View 1 3 chunks +8 lines, -3 lines 0 comments Download
M lib/src/codegen/js_codegen.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M test/browser/runtime_tests.js View 1 4 chunks +6 lines, -6 lines 0 comments Download
M test/codegen/expect/BenchmarkBase.js View 2 chunks +11 lines, -11 lines 0 comments Download
M test/codegen/expect/DeltaBlue.js View 1 11 chunks +73 lines, -43 lines 0 comments Download
M test/codegen/expect/cascade.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/constructors.js View 1 1 chunk +4 lines, -4 lines 0 comments Download
M test/codegen/expect/covariance.js View 2 chunks +3 lines, -3 lines 0 comments Download
M test/codegen/expect/fieldtest.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/methods.js View 1 2 chunks +7 lines, -7 lines 0 comments Download
M test/codegen/expect/names.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M test/codegen/expect/sunflower/sunflower.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Leaf
Take a look, see what you guys think of this shorter syntax. Note that nested ...
5 years, 7 months ago (2015-05-20 19:36:40 UTC) #2
Jennifer Messerly
lgtm ... stretch goal, change order? add: [[E], core.bool], since we can't put the return ...
5 years, 7 months ago (2015-05-20 19:47:34 UTC) #3
vsm
lgtm https://codereview.chromium.org/1145283002/diff/1/lib/runtime/dart_runtime.js File lib/runtime/dart_runtime.js (right): https://codereview.chromium.org/1145283002/diff/1/lib/runtime/dart_runtime.js#newcode1007 lib/runtime/dart_runtime.js:1007: let sig = functionType.apply(functionType, parts); On 2015/05/20 19:47:34, ...
5 years, 7 months ago (2015-05-20 22:29:35 UTC) #4
Leaf
https://codereview.chromium.org/1145283002/diff/1/lib/runtime/dart_runtime.js File lib/runtime/dart_runtime.js (right): https://codereview.chromium.org/1145283002/diff/1/lib/runtime/dart_runtime.js#newcode1007 lib/runtime/dart_runtime.js:1007: let sig = functionType.apply(functionType, parts); On 2015/05/20 22:29:35, vsm ...
5 years, 7 months ago (2015-05-20 22:52:07 UTC) #5
Leaf
5 years, 7 months ago (2015-05-20 23:11:46 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
00ad0a1ef746252580094fd0cf5df6b0622fb2b2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698