| 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/generated/testing/element_factory.dart'; | |
| 11 import 'package:analyzer/src/task/dart.dart'; | 10 import 'package:analyzer/src/task/dart.dart'; |
| 12 import 'package:analyzer/src/task/strong_mode.dart'; | 11 import 'package:analyzer/src/task/strong_mode.dart'; |
| 13 import 'package:analyzer/task/dart.dart'; | 12 import 'package:analyzer/task/dart.dart'; |
| 14 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 15 | 14 |
| 16 import '../../reflective_tests.dart'; | 15 import '../../reflective_tests.dart'; |
| 17 import '../../utils.dart'; | 16 import '../../utils.dart'; |
| 18 import '../context/abstract_context.dart'; | 17 import '../context/abstract_context.dart'; |
| 19 | 18 |
| 20 main() { | 19 main() { |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 } | 945 } |
| 947 } | 946 } |
| 948 } | 947 } |
| 949 '''); | 948 '''); |
| 950 CompilationUnit unit = context.resolveCompilationUnit2(source, source); | 949 CompilationUnit unit = context.resolveCompilationUnit2(source, source); |
| 951 VariableGatherer gatherer = new VariableGatherer(filter); | 950 VariableGatherer gatherer = new VariableGatherer(filter); |
| 952 unit.accept(gatherer); | 951 unit.accept(gatherer); |
| 953 return gatherer.results; | 952 return gatherer.results; |
| 954 } | 953 } |
| 955 } | 954 } |
| OLD | NEW |