OLD | NEW |
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 library analyzer.src.generated.sdk; | 5 library analyzer.src.generated.sdk; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/ast/visitor.dart'; | 10 import 'package:analyzer/dart/ast/visitor.dart'; |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 * whether a library is intended to work on the dart2js platform. | 365 * whether a library is intended to work on the dart2js platform. |
366 */ | 366 */ |
367 static int DART2JS_PLATFORM = 1; | 367 static int DART2JS_PLATFORM = 1; |
368 | 368 |
369 /** | 369 /** |
370 * The bit mask used to access the bit representing the flag indicating | 370 * The bit mask used to access the bit representing the flag indicating |
371 * whether a library is intended to work on the VM platform. | 371 * whether a library is intended to work on the VM platform. |
372 */ | 372 */ |
373 static int VM_PLATFORM = 2; | 373 static int VM_PLATFORM = 2; |
374 | 374 |
375 /** | |
376 * The short name of the library. This is the name used after 'dart:' in a | |
377 * URI. | |
378 */ | |
379 @override | 375 @override |
380 final String shortName; | 376 final String shortName; |
381 | 377 |
382 /** | 378 /** |
383 * The path to the file defining the library. The path is relative to the | 379 * The path to the file defining the library. The path is relative to the |
384 * 'lib' directory within the SDK. | 380 * 'lib' directory within the SDK. |
385 */ | 381 */ |
386 @override | 382 @override |
387 String path = null; | 383 String path = null; |
388 | 384 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 _platforms |= DART2JS_PLATFORM; | 443 _platforms |= DART2JS_PLATFORM; |
448 } | 444 } |
449 | 445 |
450 /** | 446 /** |
451 * Record that this library can be run on the VM. | 447 * Record that this library can be run on the VM. |
452 */ | 448 */ |
453 void setVmLibrary() { | 449 void setVmLibrary() { |
454 _platforms |= VM_PLATFORM; | 450 _platforms |= VM_PLATFORM; |
455 } | 451 } |
456 } | 452 } |
OLD | NEW |