| 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/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 /** | 335 /** |
| 336 * The names (resolved and not) referenced by a unit. | 336 * The names (resolved and not) referenced by a unit. |
| 337 * | 337 * |
| 338 * The result is only available for [Source]s representing a compilation unit. | 338 * The result is only available for [Source]s representing a compilation unit. |
| 339 */ | 339 */ |
| 340 final ResultDescriptor<ReferencedNames> REFERENCED_NAMES = | 340 final ResultDescriptor<ReferencedNames> REFERENCED_NAMES = |
| 341 new ResultDescriptor<ReferencedNames>('REFERENCED_NAMES', null); | 341 new ResultDescriptor<ReferencedNames>('REFERENCED_NAMES', null); |
| 342 | 342 |
| 343 /** | 343 /** |
| 344 * The errors produced while resolving a full compilation unit. | 344 * The errors produced while resolving a full compilation unit. |
| 345 * | 345 * |
| 346 * The list will be empty if there were no errors, but will not be `null`. | 346 * The list will be empty if there were no errors, but will not be `null`. |
| 347 * | 347 * |
| 348 * The result is only available for [LibrarySpecificUnit]s. | 348 * The result is only available for [LibrarySpecificUnit]s. |
| 349 */ | 349 */ |
| 350 final ListResultDescriptor<AnalysisError> RESOLVE_UNIT_ERRORS = | 350 final ListResultDescriptor<AnalysisError> RESOLVE_UNIT_ERRORS = |
| 351 new ListResultDescriptor<AnalysisError>( | 351 new ListResultDescriptor<AnalysisError>( |
| 352 'RESOLVE_UNIT_ERRORS', AnalysisError.NO_ERRORS); | 352 'RESOLVE_UNIT_ERRORS', AnalysisError.NO_ERRORS); |
| 353 | 353 |
| 354 /** | 354 /** |
| (...skipping 4057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4412 | 4412 |
| 4413 @override | 4413 @override |
| 4414 bool moveNext() { | 4414 bool moveNext() { |
| 4415 if (_newSources.isEmpty) { | 4415 if (_newSources.isEmpty) { |
| 4416 return false; | 4416 return false; |
| 4417 } | 4417 } |
| 4418 currentTarget = _newSources.removeLast(); | 4418 currentTarget = _newSources.removeLast(); |
| 4419 return true; | 4419 return true; |
| 4420 } | 4420 } |
| 4421 } | 4421 } |
| OLD | NEW |