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.test.src.task.dart_test; | 5 library analyzer.test.src.task.dart_test; |
6 | 6 |
7 import 'package:analyzer/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
9 import 'package:analyzer/dart/ast/visitor.dart'; | 9 import 'package:analyzer/dart/ast/visitor.dart'; |
10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
11 import 'package:analyzer/dart/element/type.dart'; | 11 import 'package:analyzer/dart/element/type.dart'; |
| 12 import 'package:analyzer/error/error.dart'; |
12 import 'package:analyzer/src/context/cache.dart'; | 13 import 'package:analyzer/src/context/cache.dart'; |
13 import 'package:analyzer/src/dart/element/element.dart'; | 14 import 'package:analyzer/src/dart/element/element.dart'; |
| 15 import 'package:analyzer/src/error/codes.dart'; |
14 import 'package:analyzer/src/generated/constant.dart'; | 16 import 'package:analyzer/src/generated/constant.dart'; |
15 import 'package:analyzer/src/generated/engine.dart' | 17 import 'package:analyzer/src/generated/engine.dart' |
16 show AnalysisOptions, AnalysisOptionsImpl, CacheState; | 18 show AnalysisOptions, AnalysisOptionsImpl, CacheState; |
17 import 'package:analyzer/src/generated/error.dart'; | |
18 import 'package:analyzer/src/generated/resolver.dart'; | 19 import 'package:analyzer/src/generated/resolver.dart'; |
19 import 'package:analyzer/src/generated/sdk.dart'; | 20 import 'package:analyzer/src/generated/sdk.dart'; |
20 import 'package:analyzer/src/generated/source.dart'; | 21 import 'package:analyzer/src/generated/source.dart'; |
21 import 'package:analyzer/src/services/lint.dart'; | 22 import 'package:analyzer/src/services/lint.dart'; |
22 import 'package:analyzer/src/task/dart.dart'; | 23 import 'package:analyzer/src/task/dart.dart'; |
23 import 'package:analyzer/src/task/html.dart'; | 24 import 'package:analyzer/src/task/html.dart'; |
24 import 'package:analyzer/src/task/strong/ast_properties.dart' as strong_ast; | 25 import 'package:analyzer/src/task/strong/ast_properties.dart' as strong_ast; |
25 import 'package:analyzer/task/dart.dart'; | 26 import 'package:analyzer/task/dart.dart'; |
26 import 'package:analyzer/task/general.dart'; | 27 import 'package:analyzer/task/general.dart'; |
27 import 'package:analyzer/task/model.dart'; | 28 import 'package:analyzer/task/model.dart'; |
(...skipping 5514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5542 /** | 5543 /** |
5543 * Fill [errorListener] with [result] errors in the current [task]. | 5544 * Fill [errorListener] with [result] errors in the current [task]. |
5544 */ | 5545 */ |
5545 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { | 5546 void _fillErrorListener(ResultDescriptor<List<AnalysisError>> result) { |
5546 List<AnalysisError> errors = task.outputs[result] as List<AnalysisError>; | 5547 List<AnalysisError> errors = task.outputs[result] as List<AnalysisError>; |
5547 expect(errors, isNotNull, reason: result.name); | 5548 expect(errors, isNotNull, reason: result.name); |
5548 errorListener = new GatheringErrorListener(); | 5549 errorListener = new GatheringErrorListener(); |
5549 errorListener.addAll(errors); | 5550 errorListener.addAll(errors); |
5550 } | 5551 } |
5551 } | 5552 } |
OLD | NEW |