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.strong_mode_test; | 5 library analyzer.test.src.task.strong_mode_test; |
6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart'; |
7 import 'package:analyzer/dart/element/element.dart'; | 8 import 'package:analyzer/dart/element/element.dart'; |
8 import 'package:analyzer/dart/element/type.dart'; | 9 import 'package:analyzer/dart/element/type.dart'; |
9 import 'package:analyzer/src/generated/ast.dart'; | |
10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
11 import 'package:analyzer/src/task/strong_mode.dart'; | 11 import 'package:analyzer/src/task/strong_mode.dart'; |
12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
13 | 13 |
14 import '../../reflective_tests.dart'; | 14 import '../../reflective_tests.dart'; |
15 import '../../utils.dart'; | 15 import '../../utils.dart'; |
16 import '../context/abstract_context.dart'; | 16 import '../context/abstract_context.dart'; |
17 | 17 |
18 main() { | 18 main() { |
19 initializeTestEnvironment(); | 19 initializeTestEnvironment(); |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 } | 1042 } |
1043 } | 1043 } |
1044 } | 1044 } |
1045 '''); | 1045 '''); |
1046 CompilationUnit unit = context.resolveCompilationUnit2(source, source); | 1046 CompilationUnit unit = context.resolveCompilationUnit2(source, source); |
1047 VariableGatherer gatherer = new VariableGatherer(filter); | 1047 VariableGatherer gatherer = new VariableGatherer(filter); |
1048 unit.accept(gatherer); | 1048 unit.accept(gatherer); |
1049 return gatherer.results; | 1049 return gatherer.results; |
1050 } | 1050 } |
1051 } | 1051 } |
OLD | NEW |