| 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 '../compiler/implementation/runtime_data.dart' as encoding; | 7 import '../implementation/runtime_data.dart' as encoding; |
| 8 | 8 |
| 9 import 'dart:collection' show | 9 import 'dart:collection' show |
| 10 UnmodifiableListView, | 10 UnmodifiableListView, |
| 11 UnmodifiableMapView; | 11 UnmodifiableMapView; |
| 12 | 12 |
| 13 import 'dart:mirrors'; | 13 import 'dart:mirrors'; |
| 14 | 14 |
| 15 import 'dart:_foreign_helper' show | 15 import 'dart:_foreign_helper' show |
| 16 JS, | 16 JS, |
| 17 JS_CURRENT_ISOLATE, | 17 JS_CURRENT_ISOLATE, |
| (...skipping 2904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2922 // have a part (following a '.') that starts with '_'. | 2922 // have a part (following a '.') that starts with '_'. |
| 2923 const int UNDERSCORE = 0x5f; | 2923 const int UNDERSCORE = 0x5f; |
| 2924 if (name.isEmpty) return true; | 2924 if (name.isEmpty) return true; |
| 2925 int index = -1; | 2925 int index = -1; |
| 2926 do { | 2926 do { |
| 2927 if (name.codeUnitAt(index + 1) == UNDERSCORE) return false; | 2927 if (name.codeUnitAt(index + 1) == UNDERSCORE) return false; |
| 2928 index = name.indexOf('.', index + 1); | 2928 index = name.indexOf('.', index + 1); |
| 2929 } while (index >= 0 && index + 1 < name.length); | 2929 } while (index >= 0 && index + 1 < name.length); |
| 2930 return true; | 2930 return true; |
| 2931 } | 2931 } |
| OLD | NEW |