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

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

Issue 11365196: Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two pending TODO's. 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
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;
(...skipping 12 matching lines...) Expand all
23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> { 23 const Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> {
24 24
25 "collection": const LibraryInfo( 25 "collection": const LibraryInfo(
26 "collection/collection.dart", 26 "collection/collection.dart",
27 implementation: true), 27 implementation: true),
28 28
29 "core": const LibraryInfo( 29 "core": const LibraryInfo(
30 "core/core.dart", 30 "core/core.dart",
31 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart") , 31 dart2jsPatchPath: "_internal/compiler/implementation/lib/core_patch.dart") ,
32 32
33 "coreimpl": const LibraryInfo(
34 "coreimpl/coreimpl.dart",
35 implementation: true,
36 dart2jsPatchPath: "_internal/compiler/implementation/lib/coreimpl_patch.da rt"),
37
38 "crypto": const LibraryInfo( 33 "crypto": const LibraryInfo(
39 "crypto/crypto.dart"), 34 "crypto/crypto.dart"),
40 35
41 "html": const LibraryInfo( 36 "html": const LibraryInfo(
42 "html/dartium/html_dartium.dart", 37 "html/dartium/html_dartium.dart",
43 category: "Client", 38 category: "Client",
44 dart2jsPath: "html/dart2js/html_dart2js.dart"), 39 dart2jsPath: "html/dart2js/html_dart2js.dart"),
45 40
46 "io": const LibraryInfo( 41 "io": const LibraryInfo(
47 "io/io.dart", 42 "io/io.dart",
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 * Bit flags indicating which platforms consume this library. 133 * Bit flags indicating which platforms consume this library.
139 * See [DART2JS_LIBRARY] and [VM_LIBRARY]. 134 * See [DART2JS_LIBRARY] and [VM_LIBRARY].
140 */ 135 */
141 final int platforms; 136 final int platforms;
142 137
143 /** 138 /**
144 * True if the library contains implementation details for another library. 139 * True if the library contains implementation details for another library.
145 * The implication is that these libraries are less commonly used 140 * The implication is that these libraries are less commonly used
146 * and that tools like Dart Editor should not show these libraries 141 * and that tools like Dart Editor should not show these libraries
147 * in a list of all libraries unless the user specifically asks the tool to 142 * in a list of all libraries unless the user specifically asks the tool to
148 * do so. (E.g. "coreimpl" contains implementation for the "core" library). 143 * do so.
149 */ 144 */
150 final bool implementation; 145 final bool implementation;
151 146
152 const LibraryInfo(this.path, { 147 const LibraryInfo(this.path, {
153 this.category: "Shared", 148 this.category: "Shared",
154 this.dart2jsPath, 149 this.dart2jsPath,
155 this.dart2jsPatchPath, 150 this.dart2jsPatchPath,
156 this.implementation: false, 151 this.implementation: false,
157 this.documented: true, 152 this.documented: true,
158 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); 153 this.platforms: DART2JS_PLATFORM | VM_PLATFORM});
159 154
160 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; 155 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0;
161 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; 156 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0;
162 } 157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698