| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.task.dart; | 5 library analyzer.task.dart; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
| 9 import 'package:analyzer/src/generated/error.dart'; | 9 import 'package:analyzer/src/generated/error.dart'; |
| 10 import 'package:analyzer/src/generated/scanner.dart'; | 10 import 'package:analyzer/src/generated/scanner.dart'; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * | 27 * |
| 28 * The list will be empty if there are no exported libraries, but will not be | 28 * The list will be empty if there are no exported libraries, but will not be |
| 29 * `null`. | 29 * `null`. |
| 30 * | 30 * |
| 31 * The result is only available for targets representing a Dart library. | 31 * The result is only available for targets representing a Dart library. |
| 32 */ | 32 */ |
| 33 final ListResultDescriptor<Source> EXPORTED_LIBRARIES = | 33 final ListResultDescriptor<Source> EXPORTED_LIBRARIES = |
| 34 new ListResultDescriptor<Source>('EXPORTED_LIBRARIES', Source.EMPTY_ARRAY); | 34 new ListResultDescriptor<Source>('EXPORTED_LIBRARIES', Source.EMPTY_ARRAY); |
| 35 | 35 |
| 36 /** | 36 /** |
| 37 * A flag specifying whether a library imports 'dart:html'. | |
| 38 * | |
| 39 * The result is only available for targets representing a Dart library. | |
| 40 */ | |
| 41 final ResultDescriptor<bool> HAS_HTML_IMPORT = | |
| 42 new ResultDescriptor<bool>('HAS_HTML_IMPORT', false); | |
| 43 | |
| 44 /** | |
| 45 * The sources of the libraries that are imported into a library. | 37 * The sources of the libraries that are imported into a library. |
| 46 * | 38 * |
| 47 * Not `null`. | 39 * Not `null`. |
| 48 * The default value is empty. | 40 * The default value is empty. |
| 49 * When computed, this list will always contain at least `dart:core` source. | 41 * When computed, this list will always contain at least `dart:core` source. |
| 50 * | 42 * |
| 51 * The result is only available for targets representing a Dart library. | 43 * The result is only available for targets representing a Dart library. |
| 52 */ | 44 */ |
| 53 final ListResultDescriptor<Source> IMPORTED_LIBRARIES = | 45 final ListResultDescriptor<Source> IMPORTED_LIBRARIES = |
| 54 new ListResultDescriptor<Source>('IMPORTED_LIBRARIES', Source.EMPTY_ARRAY); | 46 new ListResultDescriptor<Source>('IMPORTED_LIBRARIES', Source.EMPTY_ARRAY); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 /** | 113 /** |
| 122 * The sources of the Dart files that a library consists of. | 114 * The sources of the Dart files that a library consists of. |
| 123 * | 115 * |
| 124 * The list will include the source of the defining unit and [INCLUDED_PARTS]. | 116 * The list will include the source of the defining unit and [INCLUDED_PARTS]. |
| 125 * So, it is never empty or `null`. | 117 * So, it is never empty or `null`. |
| 126 * | 118 * |
| 127 * The result is only available for targets representing a Dart library. | 119 * The result is only available for targets representing a Dart library. |
| 128 */ | 120 */ |
| 129 final ListResultDescriptor<Source> UNITS = | 121 final ListResultDescriptor<Source> UNITS = |
| 130 new ListResultDescriptor<Source>('UNITS', Source.EMPTY_ARRAY); | 122 new ListResultDescriptor<Source>('UNITS', Source.EMPTY_ARRAY); |
| OLD | NEW |