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

Side by Side Diff: pkg/analyzer/lib/src/generated/sdk.dart

Issue 1265453005: Code clean-up, mostly constructors (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.sdk; 8 library engine.sdk;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 /** 296 /**
297 * The bit mask used to access the bit representing the flag indicating 297 * The bit mask used to access the bit representing the flag indicating
298 * whether a library is intended to work on the VM platform. 298 * whether a library is intended to work on the VM platform.
299 */ 299 */
300 static int VM_PLATFORM = 2; 300 static int VM_PLATFORM = 2;
301 301
302 /** 302 /**
303 * The short name of the library. This is the name used after 'dart:' in a 303 * The short name of the library. This is the name used after 'dart:' in a
304 * URI. 304 * URI.
305 */ 305 */
306 String _shortName = null; 306 final String shortName;
307 307
308 /** 308 /**
309 * The path to the file defining the library. The path is relative to the 309 * The path to the file defining the library. The path is relative to the
310 * 'lib' directory within the SDK. 310 * 'lib' directory within the SDK.
311 */ 311 */
312 String path = null; 312 String path = null;
313 313
314 /** 314 /**
315 * The name of the category containing the library. Unless otherwise specified 315 * The name of the category containing the library. Unless otherwise specified
316 * in the libraries file all libraries are assumed to be shared between server 316 * in the libraries file all libraries are assumed to be shared between server
(...skipping 13 matching lines...) Expand all
330 330
331 /** 331 /**
332 * An encoding of which platforms this library is intended to work on. 332 * An encoding of which platforms this library is intended to work on.
333 */ 333 */
334 int _platforms = 0; 334 int _platforms = 0;
335 335
336 /** 336 /**
337 * Initialize a newly created library to represent the library with the given 337 * Initialize a newly created library to represent the library with the given
338 * [name]. 338 * [name].
339 */ 339 */
340 SdkLibraryImpl(String name) { 340 SdkLibraryImpl(this.shortName);
341 this._shortName = name;
342 }
343 341
344 /** 342 /**
345 * Set whether the library is documented. 343 * Set whether the library is documented.
346 */ 344 */
347 void set documented(bool documented) { 345 void set documented(bool documented) {
348 this._documented = documented; 346 this._documented = documented;
349 } 347 }
350 348
351 /** 349 /**
352 * Set whether the library is an implementation library. 350 * Set whether the library is an implementation library.
(...skipping 13 matching lines...) Expand all
366 364
367 @override 365 @override
368 bool get isInternal => "Internal" == category; 366 bool get isInternal => "Internal" == category;
369 367
370 @override 368 @override
371 bool get isShared => category == "Shared"; 369 bool get isShared => category == "Shared";
372 370
373 @override 371 @override
374 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0; 372 bool get isVmLibrary => (_platforms & VM_PLATFORM) != 0;
375 373
376 @override
377 String get shortName => _shortName;
378
379 /** 374 /**
380 * Record that this library can be compiled to JavaScript by dart2js. 375 * Record that this library can be compiled to JavaScript by dart2js.
381 */ 376 */
382 void setDart2JsLibrary() { 377 void setDart2JsLibrary() {
383 _platforms |= DART2JS_PLATFORM; 378 _platforms |= DART2JS_PLATFORM;
384 } 379 }
385 380
386 /** 381 /**
387 * Record that this library can be run on the VM. 382 * Record that this library can be run on the VM.
388 */ 383 */
389 void setVmLibrary() { 384 void setVmLibrary() {
390 _platforms |= VM_PLATFORM; 385 _platforms |= VM_PLATFORM;
391 } 386 }
392 } 387 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/test/generated/compile_time_error_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698