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

Side by Side Diff: sdk/lib/_internal/compiler/js_lib/js_mirrors.dart

Issue 538513002: Move js library back into compiler directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_helper.dart ('k') | sdk/lib/_internal/compiler/js_lib/js_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698