| 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.serialization.elements_test; | 5 library test.src.serialization.elements_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/standard_resolution_map.dart'; | 8 import 'package:analyzer/dart/ast/standard_resolution_map.dart'; |
| 9 import 'package:analyzer/dart/constant/value.dart'; | 9 import 'package:analyzer/dart/constant/value.dart'; |
| 10 import 'package:analyzer/dart/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 3849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3860 '''); | 3860 '''); |
| 3861 } | 3861 } |
| 3862 | 3862 |
| 3863 test_instantiateToBounds_boundRefersToLaterTypeArgument() { | 3863 test_instantiateToBounds_boundRefersToLaterTypeArgument() { |
| 3864 checkLibrary(''' | 3864 checkLibrary(''' |
| 3865 class C<T extends C<T, U>, U extends num> {} | 3865 class C<T extends C<T, U>, U extends num> {} |
| 3866 C c; | 3866 C c; |
| 3867 '''); | 3867 '''); |
| 3868 } | 3868 } |
| 3869 | 3869 |
| 3870 test_instantiateToBounds_functionTypeAlias_simple() { |
| 3871 checkLibrary(''' |
| 3872 typedef F<T extends num>(T p); |
| 3873 F f; |
| 3874 '''); |
| 3875 } |
| 3876 |
| 3870 test_instantiateToBounds_simple() { | 3877 test_instantiateToBounds_simple() { |
| 3871 checkLibrary(''' | 3878 checkLibrary(''' |
| 3872 class C<T extends num> {} | 3879 class C<T extends num> {} |
| 3873 C c; | 3880 C c; |
| 3874 '''); | 3881 '''); |
| 3875 } | 3882 } |
| 3876 | 3883 |
| 3877 test_invalid_annotation_prefixed_constructor() { | 3884 test_invalid_annotation_prefixed_constructor() { |
| 3878 addLibrarySource( | 3885 addLibrarySource( |
| 3879 '/a.dart', | 3886 '/a.dart', |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5257 fail('Unexpectedly tried to get unlinked summary for $uri'); | 5264 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 5258 } | 5265 } |
| 5259 return serializedUnit; | 5266 return serializedUnit; |
| 5260 } | 5267 } |
| 5261 | 5268 |
| 5262 @override | 5269 @override |
| 5263 bool hasLibrarySummary(String uri) { | 5270 bool hasLibrarySummary(String uri) { |
| 5264 return true; | 5271 return true; |
| 5265 } | 5272 } |
| 5266 } | 5273 } |
| OLD | NEW |