| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |