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

Side by Side Diff: lib/_internal/libraries.dart

Issue 11274043: Move Arrays, Collections and Maps into a new library, dart:collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename collections->collection. Created 8 years, 1 month 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
« no previous file with comments | « no previous file | lib/collection/arrays.dart » ('j') | lib/collection/arrays.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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('libraries'); 5 #library('libraries');
6 6
7 /** 7 /**
8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js 8 * A bit flag used by [LibraryInfo] indicating that a library is used by dart2js
9 */ 9 */
10 const int DART2JS_PLATFORM = 1; 10 const int DART2JS_PLATFORM = 1;
11 11
12 /** 12 /**
13 * A bit flag used by [LibraryInfo] indicating that a library is used by the VM 13 * A bit flag used by [LibraryInfo] indicating that a library is used by the VM
14 */ 14 */
15 const int VM_PLATFORM = 2; 15 const int VM_PLATFORM = 2;
16 16
17 /** 17 /**
18 * Mapping of "dart:" library name (e.g. "core") to information about that libra ry. 18 * Mapping of "dart:" library name (e.g. "core") to information about that libra ry.
19 * This information is structured such that Dart Editor can parse this file 19 * This information is structured such that Dart Editor can parse this file
20 * and extract the necessary information without executing it 20 * and extract the necessary information without executing it
21 * while other tools can access via execution. 21 * while other tools can access via execution.
22 */ 22 */
23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> { 23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> {
24 24
25 "collection": const LibraryInfo(
26 "collection/collection.dart",
27 implementation: true),
28
25 "core": const LibraryInfo( 29 "core": const LibraryInfo(
26 "core/core.dart", 30 "core/core.dart",
27 dart2jsPatchPath: "compiler/implementation/lib/core_patch.dart"), 31 dart2jsPatchPath: "compiler/implementation/lib/core_patch.dart"),
28 32
29 "coreimpl": const LibraryInfo( 33 "coreimpl": const LibraryInfo(
30 "coreimpl/coreimpl.dart", 34 "coreimpl/coreimpl.dart",
31 implementation: true, 35 implementation: true,
32 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"), 36 dart2jsPatchPath: "compiler/implementation/lib/coreimpl_patch.dart"),
33 37
34 "crypto": const LibraryInfo( 38 "crypto": const LibraryInfo(
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 this.category: "Shared", 148 this.category: "Shared",
145 this.dart2jsPath, 149 this.dart2jsPath,
146 this.dart2jsPatchPath, 150 this.dart2jsPatchPath,
147 this.implementation: false, 151 this.implementation: false,
148 this.documented: true, 152 this.documented: true,
149 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); 153 this.platforms: DART2JS_PLATFORM | VM_PLATFORM});
150 154
151 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; 155 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0;
152 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; 156 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0;
153 } 157 }
OLDNEW
« no previous file with comments | « no previous file | lib/collection/arrays.dart » ('j') | lib/collection/arrays.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698