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

Issue 11026027: [dart2dart] Make sure we collect element placeholders only for identifiers by ensuring (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] Make sure we collect element placeholders only for identifiers by ensuring that if TypeAnnotation's typeName is Send, make 2 placeholders instead of 1 - for prefix and for the element itself. This makes the whole approach cleaner. Later we can just rename all identifiers and transform AST. Based on https://chromiumcodereview.appspot.com/11034021/ Committed: https://code.google.com/p/dart/source/detail?r=13277

Patch Set 1 #

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M lib/compiler/implementation/dart_backend/placeholder_collector.dart View 1 6 chunks +17 lines, -4 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Roman
rebased
8 years, 2 months ago (2012-10-04 15:03:40 UTC) #1
Anton Muhin
Looks cool https://chromiumcodereview.appspot.com/11026027/diff/2001/lib/compiler/implementation/dart_backend/placeholder_collector.dart File lib/compiler/implementation/dart_backend/placeholder_collector.dart (right): https://chromiumcodereview.appspot.com/11026027/diff/2001/lib/compiler/implementation/dart_backend/placeholder_collector.dart#newcode302 lib/compiler/implementation/dart_backend/placeholder_collector.dart:302: makeNullPlaceholder(node.receiver); is it okay if we use ...
8 years, 2 months ago (2012-10-04 15:34:37 UTC) #2
Roman
https://chromiumcodereview.appspot.com/11026027/diff/2001/lib/compiler/implementation/dart_backend/placeholder_collector.dart File lib/compiler/implementation/dart_backend/placeholder_collector.dart (right): https://chromiumcodereview.appspot.com/11026027/diff/2001/lib/compiler/implementation/dart_backend/placeholder_collector.dart#newcode302 lib/compiler/implementation/dart_backend/placeholder_collector.dart:302: makeNullPlaceholder(node.receiver); On 2012/10/04 15:34:37, Anton Muhin wrote: > is ...
8 years, 2 months ago (2012-10-04 16:05:59 UTC) #3
Anton Muhin
8 years, 2 months ago (2012-10-04 16:07:14 UTC) #4
lgtm

https://chromiumcodereview.appspot.com/11026027/diff/2001/lib/compiler/implem...
File lib/compiler/implementation/dart_backend/placeholder_collector.dart
(right):

https://chromiumcodereview.appspot.com/11026027/diff/2001/lib/compiler/implem...
lib/compiler/implementation/dart_backend/placeholder_collector.dart:302:
makeNullPlaceholder(node.receiver);
Fair.

On 2012/10/04 16:05:59, Roman wrote:
> On 2012/10/04 15:34:37, Anton Muhin wrote:
> > is it okay if we use a name with a prefix from platform lib?
> 
> We never use existing prefixes in the renamer anyway. For platform library
> elements we just generate a string 'p.Map', for example.
> But now I'm thinking that ideally we should probably record a prefix and in
> renamer decide whether we want to keep that prefix or strip it completely. But
> that would require refactoring of how we currently import things.

Powered by Google App Engine
This is Rietveld 408576698