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

Side by Side Diff: lib/libraries.dart

Issue 10829394: Move libraries.dart to lib/_internal/libraries.dart . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « lib/_internal/libraries.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #library('libraries');
6
7 /**
8 * Mapping of "dart:" library name (e.g. "core") to information about that libra ry.
9 * This information is structured such that Dart Editor can parse this file
10 * and extract the necessary information without executing it
11 * while other tools can access via execution.
12 */
13 final Map<String, LibraryInfo> LIBRARIES = const <LibraryInfo> {
14
15 // Used by VM applications
16 "builtin": const LibraryInfo(
17 "builtin/builtin_runtime.dart",
18 category: "Server"),
19
20 "compiler": const LibraryInfo(
21 "compiler/compiler.dart",
22 category: "Tools"),
23
24 "core": const LibraryInfo(
25 "core/core_runtime.dart",
26 dart2jsPath: "compiler/implementation/lib/core.dart"),
27
28 "coreimpl": const LibraryInfo(
29 "coreimpl/coreimpl_runtime.dart",
30 implementation: true,
31 dart2jsPath: "compiler/implementation/lib/coreimpl.dart",
32 dart2jsPatchPath: "compiler/implementation/lib/coreimpl.dartp"),
33
34 "crypto": const LibraryInfo(
35 "crypto/crypto.dart"),
36
37 // dom/dom_frog.dart is a placeholder for dartium dom
38 "dom_deprecated": const LibraryInfo(
39 "dom/dom_dart2js.dart",
40 dart2jsPath: "dom/dart2js/dom_dart2js.dart",
41 internal: true),
42
43 "html": const LibraryInfo(
44 "html/html_dartium.dart",
45 category: "Client",
46 dart2jsPath: "html/dart2js/html_dart2js.dart"),
47
48 "io": const LibraryInfo(
49 "io/io_runtime.dart",
50 category: "Server",
51 dart2jsPath: "compiler/implementation/lib/io.dart"),
52
53 "isolate": const LibraryInfo(
54 "isolate/isolate_compiler.dart",
55 dart2jsPath: "isolate/isolate_dart2js.dart"),
56
57 "json": const LibraryInfo(
58 "json/json.dart"),
59
60 "math": const LibraryInfo(
61 "math/math.dart",
62 dart2jsPatchPath: "compiler/implementation/lib/math.dartp"),
63
64 // Used by Dartium applications
65 "nativewrappers": const LibraryInfo(
66 "html/nativewrappers.dart",
67 category: "Client",
68 implementation: true),
69
70 "unittest": const LibraryInfo(
71 "unittest/unittest.dart",
72 category: "Tools"),
73
74 "uri": const LibraryInfo(
75 "uri/uri.dart"),
76
77 "utf": const LibraryInfo(
78 "utf/utf.dart"),
79
80 "web": const LibraryInfo(
81 "web/web.dart"),
82
83 // Used by dart2js
84 "_js_helper": const LibraryInfo(
85 "compiler/implementation/lib/js_helper.dart",
86 category: "Internal",
87 internal: true),
88
89 // Used by dart2js
90 "_interceptors": const LibraryInfo(
91 "compiler/implementation/lib/interceptors.dart",
92 category: "Internal",
93 internal: true),
94 };
95
96 /**
97 * Information about a "dart:" library.
98 */
99 class LibraryInfo {
100
101 /**
102 * Path to the library's *.dart file relative to this file.
103 */
104 final String path;
105
106 /**
107 * The category in which the library should appear in the editor
108 * (e.g. "Common", "Client", "Server", ...).
109 */
110 final String category;
111
112 /**
113 * Path to the dart2js library's *.dart file relative to this file
114 * or null if dart2js uses the common library path defined above.
115 */
116 final String dart2jsPath;
117
118 /**
119 * Path to the dart2js library's patch file relative to this file
120 * or null if no dart2js patch file associated with this library.
121 */
122 final String dart2jsPatchPath;
123
124 /**
125 * True if this library is internal and should not be shown to the user
126 */
127 final bool internal;
128
129 /**
130 * True if the library contains implementation details for another library.
131 * The implication is that these libraries are less commonly used
132 * and that tools like Dart Editor should not show these libraries
133 * in a list of all libraries unless the user specifically asks the tool to do so.
134 * (e.g. "coreimpl" contains implementation for the "core" library).
135 */
136 final bool implementation;
137
138 const LibraryInfo(this.path, [this.category = "Shared",
139 this.dart2jsPath, this.dart2jsPatchPath,
140 this.implementation = false, this.internal = false]);
141 }
OLDNEW
« no previous file with comments | « lib/_internal/libraries.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698