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

Issue 10448008: fix for index operation unparses (Closed)

Created:
8 years, 7 months ago by Roman
Modified:
8 years, 6 months ago
Reviewers:
Anton Muhin, ahe
Visibility:
Public.

Description

fix for: 1) "list[0] = 1" unparses to "list[] = 0 1"; 2) "a = list[0]" unparses to "a = list[][0]"; BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8142

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : fix long line #

Total comments: 7

Patch Set 4 : address comments #

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

Messages

Total messages: 6 (0 generated)
Anton Muhin
https://chromiumcodereview.appspot.com/10448008/diff/1/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10448008/diff/1/lib/compiler/implementation/tree/unparser.dart#newcode215 lib/compiler/implementation/tree/unparser.dart:215: bool isListIndex = op !== null && op.source.stringValue == ...
8 years, 7 months ago (2012-05-24 16:59:58 UTC) #1
Roman
https://chromiumcodereview.appspot.com/10448008/diff/5001/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10448008/diff/5001/lib/compiler/implementation/tree/unparser.dart#newcode207 lib/compiler/implementation/tree/unparser.dart:207: NodeList tailArguments = new NodeList( not sure about this ...
8 years, 6 months ago (2012-05-30 09:09:55 UTC) #2
ahe
https://chromiumcodereview.appspot.com/10448008/diff/5001/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10448008/diff/5001/lib/compiler/implementation/tree/unparser.dart#newcode200 lib/compiler/implementation/tree/unparser.dart:200: // Special case for assignments like "list[0] = 1". ...
8 years, 6 months ago (2012-05-30 10:03:11 UTC) #3
Roman
https://chromiumcodereview.appspot.com/10448008/diff/5001/lib/compiler/implementation/tree/unparser.dart File lib/compiler/implementation/tree/unparser.dart (right): https://chromiumcodereview.appspot.com/10448008/diff/5001/lib/compiler/implementation/tree/unparser.dart#newcode200 lib/compiler/implementation/tree/unparser.dart:200: // Special case for assignments like "list[0] = 1". ...
8 years, 6 months ago (2012-05-30 10:44:04 UTC) #4
ahe
LGTM!
8 years, 6 months ago (2012-05-30 10:59:22 UTC) #5
Roman
8 years, 6 months ago (2012-05-30 11:03:33 UTC) #6
On 2012/05/30 10:59:22, ahe wrote:
> LGTM!

Thank you for the quick review! Committing my first CL now.

Powered by Google App Engine
This is Rietveld 408576698