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

Side by Side Diff: sdk/lib/_internal/lib/mirror_helper.dart

Issue 22791002: Add renames in output when using the mirror helper library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed solution approach. Created 7 years, 4 months 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
ahe 2013/08/19 15:34:06 Document this library.
zarah 2013/08/20 14:08:17 Done.
5 library _mirror_helper;
6
7 import 'dart:mirrors';
8
9 /// The compiler will replace this variable with a map containing all the
10 /// renames made in dart2dart.
11 const Map _SYMBOLS = null;
ahe 2013/08/19 15:34:06 Add empty line here.
zarah 2013/08/20 14:08:17 Done.
12 String helperGetName(Symbol sym) {
ahe 2013/08/19 15:34:06 Please document this method. In particular that it
zarah 2013/08/20 14:08:17 Done.
13 var name = MirrorSystem.getName(sym);
14 if (_SYMBOLS.containsKey(name)) {
15 return _SYMBOLS[name];
16 } else {
17 return name;
18 }
19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698