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

Side by Side Diff: pkg/compiler/lib/src/mirror_renamer/renamer.dart

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of mirror_renamer; 5 part of mirror_renamer;
6 6
7 class MirrorRenamerImpl implements MirrorRenamer { 7 class MirrorRenamerImpl implements MirrorRenamer {
8 static const String MIRROR_HELPER_GET_NAME_FUNCTION = 'helperGetName'; 8 static const String MIRROR_HELPER_GET_NAME_FUNCTION = 'helperGetName';
9 static final Uri DART_MIRROR_HELPER = 9 static final Uri DART_MIRROR_HELPER =
10 new Uri(scheme: 'dart', path: '_mirror_helper'); 10 new Uri(scheme: 'dart', path: '_mirror_helper');
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 sb.writeCharCode(0); // Terminate the string with '0', see [StringScanner]. 109 sb.writeCharCode(0); // Terminate the string with '0', see [StringScanner].
110 topLevelNodes.add(parse(sb.toString())); 110 topLevelNodes.add(parse(sb.toString()));
111 111
112 // Replace calls to Mirrorsystem.getName with calls to helper function. 112 // Replace calls to Mirrorsystem.getName with calls to helper function.
113 mirrorSystemGetNameNodes.forEach((node) { 113 mirrorSystemGetNameNodes.forEach((node) {
114 renames[node.selector] = renames[getNameFunctionNode.name]; 114 renames[node.selector] = renames[getNameFunctionNode.name];
115 renames[node.receiver] = ''; 115 renames[node.receiver] = '';
116 }); 116 });
117 } 117 }
118 } 118 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/mirror_renamer/mirror_renamer.dart ('k') | pkg/compiler/lib/src/mirrors/analyze.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698