OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.generated.simple_resolver_test; | 5 library analyzer.test.generated.simple_resolver_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/visitor.dart'; | 8 import 'package:analyzer/dart/ast/visitor.dart'; |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
10 import 'package:analyzer/dart/element/type.dart'; | 10 import 'package:analyzer/dart/element/type.dart'; |
| 11 import 'package:analyzer/exception/exception.dart'; |
11 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
12 import 'package:analyzer/src/generated/error.dart'; | 13 import 'package:analyzer/src/generated/error.dart'; |
13 import 'package:analyzer/src/generated/java_engine.dart'; | |
14 import 'package:analyzer/src/generated/source_io.dart'; | 14 import 'package:analyzer/src/generated/source_io.dart'; |
15 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 15 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
16 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
17 | 17 |
18 import '../utils.dart'; | 18 import '../utils.dart'; |
19 import 'resolver_test_case.dart'; | 19 import 'resolver_test_case.dart'; |
20 import 'test_support.dart'; | 20 import 'test_support.dart'; |
21 | 21 |
22 main() { | 22 main() { |
23 initializeTestEnvironment(); | 23 initializeTestEnvironment(); |
(...skipping 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1815 // check propagated type | 1815 // check propagated type |
1816 FunctionType propagatedType = node.propagatedType as FunctionType; | 1816 FunctionType propagatedType = node.propagatedType as FunctionType; |
1817 expect(propagatedType.returnType, test.typeProvider.stringType); | 1817 expect(propagatedType.returnType, test.typeProvider.stringType); |
1818 } on AnalysisException catch (e, stackTrace) { | 1818 } on AnalysisException catch (e, stackTrace) { |
1819 thrownException[0] = new CaughtException(e, stackTrace); | 1819 thrownException[0] = new CaughtException(e, stackTrace); |
1820 } | 1820 } |
1821 } | 1821 } |
1822 return null; | 1822 return null; |
1823 } | 1823 } |
1824 } | 1824 } |
OLD | NEW |