OLD | NEW |
---|---|
(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 } | |
OLD | NEW |