| 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.strong_mode_test; | 5 library test.src.task.strong_mode_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
| 9 import 'package:analyzer/src/generated/source.dart'; | 9 import 'package:analyzer/src/generated/source.dart'; |
| 10 import 'package:analyzer/src/task/dart.dart'; | |
| 11 import 'package:analyzer/src/task/strong_mode.dart'; | 10 import 'package:analyzer/src/task/strong_mode.dart'; |
| 12 import 'package:analyzer/task/dart.dart'; | |
| 13 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 14 | 12 |
| 15 import '../../reflective_tests.dart'; | 13 import '../../reflective_tests.dart'; |
| 16 import '../../utils.dart'; | 14 import '../../utils.dart'; |
| 17 import '../context/abstract_context.dart'; | 15 import '../context/abstract_context.dart'; |
| 18 | 16 |
| 19 main() { | 17 main() { |
| 20 initializeTestEnvironment(); | 18 initializeTestEnvironment(); |
| 21 runReflectiveTests(InstanceMemberInferrerTest); | 19 runReflectiveTests(InstanceMemberInferrerTest); |
| 22 runReflectiveTests(VariableGathererTest); | 20 runReflectiveTests(VariableGathererTest); |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 } | 900 } |
| 903 } | 901 } |
| 904 } | 902 } |
| 905 '''); | 903 '''); |
| 906 CompilationUnit unit = context.resolveCompilationUnit2(source, source); | 904 CompilationUnit unit = context.resolveCompilationUnit2(source, source); |
| 907 VariableGatherer gatherer = new VariableGatherer(filter); | 905 VariableGatherer gatherer = new VariableGatherer(filter); |
| 908 unit.accept(gatherer); | 906 unit.accept(gatherer); |
| 909 return gatherer.results; | 907 return gatherer.results; |
| 910 } | 908 } |
| 911 } | 909 } |
| OLD | NEW |