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

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

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 /** 135 /**
136 * True if the library contains implementation details for another library. 136 * True if the library contains implementation details for another library.
137 * The implication is that these libraries are less commonly used 137 * The implication is that these libraries are less commonly used
138 * and that tools like Dart Editor should not show these libraries 138 * and that tools like Dart Editor should not show these libraries
139 * in a list of all libraries unless the user specifically asks the tool to 139 * in a list of all libraries unless the user specifically asks the tool to
140 * do so. (E.g. "coreimpl" contains implementation for the "core" library). 140 * do so. (E.g. "coreimpl" contains implementation for the "core" library).
141 */ 141 */
142 final bool implementation; 142 final bool implementation;
143 143
144 const LibraryInfo(this.path, [ 144 const LibraryInfo(this.path, {
145 this.category = "Shared", 145 this.category: "Shared",
146 this.dart2jsPath, 146 this.dart2jsPath,
147 this.dart2jsPatchPath, 147 this.dart2jsPatchPath,
148 this.implementation = false, 148 this.implementation: false,
149 this.documented = true, 149 this.documented: true,
150 this.platforms = DART2JS_PLATFORM | VM_PLATFORM]); 150 this.platforms: DART2JS_PLATFORM | VM_PLATFORM});
151 151
152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0; 152 bool get isDart2jsLibrary => (platforms & DART2JS_PLATFORM) != 0;
153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0; 153 bool get isVmLibrary => (platforms & VM_PLATFORM) != 0;
154 } 154 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698