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

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

Issue 16851002: Implement minified MirrorSystem.getName. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add test Created 7 years, 6 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) 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 "_internal/lib/isolate_helper.dart", 145 "_internal/lib/isolate_helper.dart",
146 category: "Internal", 146 category: "Internal",
147 documented: false, 147 documented: false,
148 platforms: DART2JS_PLATFORM), 148 platforms: DART2JS_PLATFORM),
149 149
150 "_js_mirrors": const LibraryInfo( 150 "_js_mirrors": const LibraryInfo(
151 "_internal/lib/js_mirrors.dart", 151 "_internal/lib/js_mirrors.dart",
152 category: "Internal", 152 category: "Internal",
153 documented: false, 153 documented: false,
154 platforms: DART2JS_PLATFORM), 154 platforms: DART2JS_PLATFORM),
155
156 "_js_names": const LibraryInfo(
157 "_internal/lib/js_names.dart",
158 category: "Internal",
159 documented: false,
160 platforms: DART2JS_PLATFORM),
155 }; 161 };
156 162
157 /** 163 /**
158 * Information about a "dart:" library. 164 * Information about a "dart:" library.
159 */ 165 */
160 class LibraryInfo { 166 class LibraryInfo {
161 167
162 /** 168 /**
163 * Path to the library's *.dart file relative to this file. 169 * Path to the library's *.dart file relative to this file.
164 */ 170 */
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 this.category: "Shared", 215 this.category: "Shared",
210 this.dart2jsPath, 216 this.dart2jsPath,
211 this.dart2jsPatchPath, 217 this.dart2jsPatchPath,
212 this.implementation: false, 218 this.implementation: false,
213 this.documented: true, 219 this.documented: true,
214 this.platforms: DART2JS_PLATFORM | VM_PLATFORM}); 220 this.platforms: DART2JS_PLATFORM | VM_PLATFORM});
215 221
216 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; 222 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0;
217 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; 223 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0;
218 } 224 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_names.dart ('k') | dart/tests/lib/mirrors/get_symbol_name_no_such_method_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698