| 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.src.task.dart; | 5 library analyzer.src.task.dart; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 * The result is only available for [Source]s representing a library. | 73 * The result is only available for [Source]s representing a library. |
| 74 */ | 74 */ |
| 75 final ListResultDescriptor<AnalysisError> BUILD_LIBRARY_ERRORS = | 75 final ListResultDescriptor<AnalysisError> BUILD_LIBRARY_ERRORS = |
| 76 new ListResultDescriptor<AnalysisError>( | 76 new ListResultDescriptor<AnalysisError>( |
| 77 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS); | 77 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS); |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * A list of the [ConstantEvaluationTarget]s defined in a unit. This includes | 80 * A list of the [ConstantEvaluationTarget]s defined in a unit. This includes |
| 81 * constants defined at top level, statically inside classes, and local to | 81 * constants defined at top level, statically inside classes, and local to |
| 82 * functions, as well as constant constructors, annotations, and default values | 82 * functions, as well as constant constructors, annotations, and default values |
| 83 * of parameters to constant constructors. | 83 * of parameters. |
| 84 * | 84 * |
| 85 * The result is only available for [LibrarySpecificUnit]s. | 85 * The result is only available for [LibrarySpecificUnit]s. |
| 86 */ | 86 */ |
| 87 final ListResultDescriptor< | 87 final ListResultDescriptor< |
| 88 ConstantEvaluationTarget> COMPILATION_UNIT_CONSTANTS = | 88 ConstantEvaluationTarget> COMPILATION_UNIT_CONSTANTS = |
| 89 new ListResultDescriptor<ConstantEvaluationTarget>( | 89 new ListResultDescriptor<ConstantEvaluationTarget>( |
| 90 'COMPILATION_UNIT_CONSTANTS', null, | 90 'COMPILATION_UNIT_CONSTANTS', null, |
| 91 cachingPolicy: ELEMENT_CACHING_POLICY); | 91 cachingPolicy: ELEMENT_CACHING_POLICY); |
| 92 | 92 |
| 93 /** | 93 /** |
| (...skipping 5237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5331 | 5331 |
| 5332 @override | 5332 @override |
| 5333 bool moveNext() { | 5333 bool moveNext() { |
| 5334 if (_newSources.isEmpty) { | 5334 if (_newSources.isEmpty) { |
| 5335 return false; | 5335 return false; |
| 5336 } | 5336 } |
| 5337 currentTarget = _newSources.removeLast(); | 5337 currentTarget = _newSources.removeLast(); |
| 5338 return true; | 5338 return true; |
| 5339 } | 5339 } |
| 5340 } | 5340 } |
| OLD | NEW |