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 analyzer.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/strong_mode.dart'; | 10 import 'package:analyzer/src/task/strong_mode.dart'; |
11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
12 | 12 |
13 import '../../reflective_tests.dart'; | 13 import '../../reflective_tests.dart'; |
14 import '../../utils.dart'; | 14 import '../../utils.dart'; |
15 import '../context/abstract_context.dart'; | 15 import '../context/abstract_context.dart'; |
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 } | 1040 } |
1041 } | 1041 } |
1042 } | 1042 } |
1043 '''); | 1043 '''); |
1044 CompilationUnit unit = context.resolveCompilationUnit2(source, source); | 1044 CompilationUnit unit = context.resolveCompilationUnit2(source, source); |
1045 VariableGatherer gatherer = new VariableGatherer(filter); | 1045 VariableGatherer gatherer = new VariableGatherer(filter); |
1046 unit.accept(gatherer); | 1046 unit.accept(gatherer); |
1047 return gatherer.results; | 1047 return gatherer.results; |
1048 } | 1048 } |
1049 } | 1049 } |
OLD | NEW |