| 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 4444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4455 library lib; | 4455 library lib; |
| 4456 export 'a.dart'; | 4456 export 'a.dart'; |
| 4457 part 'b.dart'; | 4457 part 'b.dart'; |
| 4458 '''); | 4458 '''); |
| 4459 checkLibrary(''' | 4459 checkLibrary(''' |
| 4460 import 'c.dart'; | 4460 import 'c.dart'; |
| 4461 C v = null; | 4461 C v = null; |
| 4462 '''); | 4462 '''); |
| 4463 } | 4463 } |
| 4464 | 4464 |
| 4465 test_nameConflict_importWithRelativeUri_exportWithAbsolute() { |
| 4466 if (resourceProvider.pathContext.separator != '/') { |
| 4467 return; |
| 4468 } |
| 4469 |
| 4470 addLibrarySource('/a.dart', 'class A {}'); |
| 4471 addLibrarySource('/b.dart', 'export "/a.dart";'); |
| 4472 checkLibrary(''' |
| 4473 import 'a.dart'; |
| 4474 import 'b.dart'; |
| 4475 A v = null; |
| 4476 '''); |
| 4477 } |
| 4478 |
| 4465 test_nested_generic_functions_in_generic_class_with_function_typed_params() { | 4479 test_nested_generic_functions_in_generic_class_with_function_typed_params() { |
| 4466 checkLibrary(''' | 4480 checkLibrary(''' |
| 4467 class C<T, U> { | 4481 class C<T, U> { |
| 4468 void g<V, W>() { | 4482 void g<V, W>() { |
| 4469 void h<X, Y>(void p(T t, U u, V v, W w, X x, Y y)) { | 4483 void h<X, Y>(void p(T t, U u, V v, W w, X x, Y y)) { |
| 4470 } | 4484 } |
| 4471 } | 4485 } |
| 4472 } | 4486 } |
| 4473 '''); | 4487 '''); |
| 4474 } | 4488 } |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5270 fail('Unexpectedly tried to get unlinked summary for $uri'); | 5284 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 5271 } | 5285 } |
| 5272 return serializedUnit; | 5286 return serializedUnit; |
| 5273 } | 5287 } |
| 5274 | 5288 |
| 5275 @override | 5289 @override |
| 5276 bool hasLibrarySummary(String uri) { | 5290 bool hasLibrarySummary(String uri) { |
| 5277 return true; | 5291 return true; |
| 5278 } | 5292 } |
| 5279 } | 5293 } |
| OLD | NEW |