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

Issue 10861016: Introduce renameNodes helper to factor out common pattern. (Closed)

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

Description

Introduce renameNodes helper to factor out common pattern. R=smok@google.com Committed: https://code.google.com/p/dart/source/detail?r=11022

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -16 lines) Patch
M lib/compiler/implementation/dart_backend/renamer.dart View 1 chunk +13 lines, -16 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Anton Muhin
8 years, 4 months ago (2012-08-20 20:00:47 UTC) #1
Roman
lgtm You should probably merge this with sorted rename CL. https://chromiumcodereview.appspot.com/10861016/diff/1/lib/compiler/implementation/dart_backend/renamer.dart File lib/compiler/implementation/dart_backend/renamer.dart (right): https://chromiumcodereview.appspot.com/10861016/diff/1/lib/compiler/implementation/dart_backend/renamer.dart#newcode59 ...
8 years, 4 months ago (2012-08-21 08:02:44 UTC) #2
Anton Muhin
8 years, 4 months ago (2012-08-21 09:11:10 UTC) #3
Thanks a lot for review, submitting after running the tests.  And yes, I'll have
some fun time merging CLs.

https://chromiumcodereview.appspot.com/10861016/diff/1/lib/compiler/implement...
File lib/compiler/implementation/dart_backend/renamer.dart (right):

https://chromiumcodereview.appspot.com/10861016/diff/1/lib/compiler/implement...
lib/compiler/implementation/dart_backend/renamer.dart:59:
renameNodes(placeholderCollector.nullNodes, (_) => '');
That's the common idiom to mark unused argument.  There is even a proposal to
make supported by language to allow (_, _, _, x) => x.

On 2012/08/21 08:02:44, Roman wrote:
> did you use '_' instead of 'node' to save 3 chars and not confuse reader? same
> below
>

Powered by Google App Engine
This is Rietveld 408576698