| 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 14299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14310 test_typedef_type_parameters_bound_recursive() { | 14310 test_typedef_type_parameters_bound_recursive() { |
| 14311 shouldCompareLibraryElements = false; | 14311 shouldCompareLibraryElements = false; |
| 14312 var library = checkLibrary('typedef void F<T extends F>();'); | 14312 var library = checkLibrary('typedef void F<T extends F>();'); |
| 14313 checkElementText( | 14313 checkElementText( |
| 14314 library, | 14314 library, |
| 14315 r''' | 14315 r''' |
| 14316 typedef void F<T extends F>(); | 14316 typedef void F<T extends F>(); |
| 14317 '''); | 14317 '''); |
| 14318 } | 14318 } |
| 14319 | 14319 |
| 14320 test_typedef_type_parameters_bound_recursive2() { |
| 14321 shouldCompareLibraryElements = false; |
| 14322 var library = checkLibrary('typedef void F<T extends List<F>>();'); |
| 14323 checkElementText( |
| 14324 library, |
| 14325 r''' |
| 14326 typedef void F<T extends List<F>>(); |
| 14327 '''); |
| 14328 } |
| 14329 |
| 14320 test_typedef_type_parameters_f_bound_complex() { | 14330 test_typedef_type_parameters_f_bound_complex() { |
| 14321 var library = checkLibrary('typedef U F<T extends List<U>, U>(T t);'); | 14331 var library = checkLibrary('typedef U F<T extends List<U>, U>(T t);'); |
| 14322 if (isStrongMode) { | 14332 if (isStrongMode) { |
| 14323 checkElementText( | 14333 checkElementText( |
| 14324 library, | 14334 library, |
| 14325 r''' | 14335 r''' |
| 14326 typedef U F<T extends List<U>, U>(T t); | 14336 typedef U F<T extends List<U>, U>(T t); |
| 14327 '''); | 14337 '''); |
| 14328 } else { | 14338 } else { |
| 14329 checkElementText( | 14339 checkElementText( |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15278 fail('Unexpectedly tried to get unlinked summary for $uri'); | 15288 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 15279 } | 15289 } |
| 15280 return serializedUnit; | 15290 return serializedUnit; |
| 15281 } | 15291 } |
| 15282 | 15292 |
| 15283 @override | 15293 @override |
| 15284 bool hasLibrarySummary(String uri) { | 15294 bool hasLibrarySummary(String uri) { |
| 15285 return true; | 15295 return true; |
| 15286 } | 15296 } |
| 15287 } | 15297 } |
| OLD | NEW |