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

Issue 11034021: [dart2dart] Don't go inside TypeAnnotation.typeName, otherwise in "new lib.A()" expression (Closed)

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

Description

[dart2dart] Don't go inside TypeAnnotation.typeName, otherwise in "lib.A" expression "A" is added to member placeholders. We were lucky to not step on that because we add whole TypeAnnotation's typeName to renamed nodes. Committed: https://code.google.com/p/dart/source/detail?r=13235

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

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

Messages

Total messages: 3 (0 generated)
Roman
This CL is a part of my idea to separate prefix renaming and making element ...
8 years, 2 months ago (2012-10-02 14:57:10 UTC) #1
Anton Muhin
lgtm w/ nit about long lines addressed https://chromiumcodereview.appspot.com/11034021/diff/6001/lib/compiler/implementation/dart_backend/placeholder_collector.dart File lib/compiler/implementation/dart_backend/placeholder_collector.dart (right): https://chromiumcodereview.appspot.com/11034021/diff/6001/lib/compiler/implementation/dart_backend/placeholder_collector.dart#newcode479 lib/compiler/implementation/dart_backend/placeholder_collector.dart:479: // Visit ...
8 years, 2 months ago (2012-10-04 12:26:47 UTC) #2
Roman
8 years, 2 months ago (2012-10-04 12:40:48 UTC) #3
https://chromiumcodereview.appspot.com/11034021/diff/6001/lib/compiler/implem...
File lib/compiler/implementation/dart_backend/placeholder_collector.dart
(right):

https://chromiumcodereview.appspot.com/11034021/diff/6001/lib/compiler/implem...
lib/compiler/implementation/dart_backend/placeholder_collector.dart:479: //
Visit only type arguments, otherwise in case of lib.Class type annotation
On 2012/10/04 12:26:47, Anton Muhin wrote:
> nit: long line

Done.

Powered by Google App Engine
This is Rietveld 408576698