| 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 test.src.task.dart_test; | 5 library analyzer.test.src.task.dart_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/context/cache.dart'; | 7 import 'package:analyzer/src/context/cache.dart'; |
| 8 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
| 9 import 'package:analyzer/src/generated/constant.dart'; | 9 import 'package:analyzer/src/generated/constant.dart'; |
| 10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| 11 import 'package:analyzer/src/generated/engine.dart' | 11 import 'package:analyzer/src/generated/engine.dart' |
| 12 show AnalysisOptionsImpl, CacheState; | 12 show AnalysisOptionsImpl, CacheState; |
| 13 import 'package:analyzer/src/generated/error.dart'; | 13 import 'package:analyzer/src/generated/error.dart'; |
| 14 import 'package:analyzer/src/generated/resolver.dart'; | 14 import 'package:analyzer/src/generated/resolver.dart'; |
| 15 import 'package:analyzer/src/generated/scanner.dart'; | 15 import 'package:analyzer/src/generated/scanner.dart'; |
| (...skipping 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4592 /** | 4592 /** |
| 4593 * Fill [errorListener] with [result] errors in the current [task]. | 4593 * Fill [errorListener] with [result] errors in the current [task]. |
| 4594 */ | 4594 */ |
| 4595 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { | 4595 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { |
| 4596 List<AnalysisError> errors = task.outputs[result]; | 4596 List<AnalysisError> errors = task.outputs[result]; |
| 4597 expect(errors, isNotNull, reason: result.name); | 4597 expect(errors, isNotNull, reason: result.name); |
| 4598 errorListener = new GatheringErrorListener(); | 4598 errorListener = new GatheringErrorListener(); |
| 4599 errorListener.addAll(errors); | 4599 errorListener.addAll(errors); |
| 4600 } | 4600 } |
| 4601 } | 4601 } |
| OLD | NEW |