| 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 library dart._js_mirrors; | 5 library dart._js_mirrors; |
| 6 | 6 |
| 7 import 'shared/runtime_data.dart' as encoding; | 7 import 'dart:_js_runtime_data' as encoding; |
| 8 import 'shared/embedded_names.dart' show | 8 import 'dart:_js_embedded_names' show |
| 9 ALL_CLASSES, | 9 ALL_CLASSES, |
| 10 LAZIES, | 10 LAZIES, |
| 11 LIBRARIES, | 11 LIBRARIES, |
| 12 STATICS, | 12 STATICS, |
| 13 TYPE_INFORMATION; | 13 TYPE_INFORMATION; |
| 14 | 14 |
| 15 import 'dart:collection' show | 15 import 'dart:collection' show |
| 16 UnmodifiableListView, | 16 UnmodifiableListView, |
| 17 UnmodifiableMapView; | 17 UnmodifiableMapView; |
| 18 | 18 |
| (...skipping 2995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3014 // have a part (following a '.') that starts with '_'. | 3014 // have a part (following a '.') that starts with '_'. |
| 3015 const int UNDERSCORE = 0x5f; | 3015 const int UNDERSCORE = 0x5f; |
| 3016 if (name.isEmpty) return true; | 3016 if (name.isEmpty) return true; |
| 3017 int index = -1; | 3017 int index = -1; |
| 3018 do { | 3018 do { |
| 3019 if (name.codeUnitAt(index + 1) == UNDERSCORE) return false; | 3019 if (name.codeUnitAt(index + 1) == UNDERSCORE) return false; |
| 3020 index = name.indexOf('.', index + 1); | 3020 index = name.indexOf('.', index + 1); |
| 3021 } while (index >= 0 && index + 1 < name.length); | 3021 } while (index >= 0 && index + 1 < name.length); |
| 3022 return true; | 3022 return true; |
| 3023 } | 3023 } |
| OLD | NEW |