| 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 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/constant/value.dart'; | 10 import 'package:analyzer/dart/constant/value.dart'; |
| (...skipping 2495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2506 | 2506 |
| 2507 test_constructor_initializers_thisInvocation_named() { | 2507 test_constructor_initializers_thisInvocation_named() { |
| 2508 checkLibrary(''' | 2508 checkLibrary(''' |
| 2509 class C { | 2509 class C { |
| 2510 const C() : this.named(1, 'bbb'); | 2510 const C() : this.named(1, 'bbb'); |
| 2511 const C.named(int a, String b); | 2511 const C.named(int a, String b); |
| 2512 } | 2512 } |
| 2513 '''); | 2513 '''); |
| 2514 } | 2514 } |
| 2515 | 2515 |
| 2516 test_constructor_initializers_thisInvocation_namedExpression() { |
| 2517 checkLibrary(''' |
| 2518 class C { |
| 2519 const C() : this.named(1, b: 2); |
| 2520 const C.named(a, {int b}); |
| 2521 } |
| 2522 '''); |
| 2523 } |
| 2524 |
| 2516 test_constructor_initializers_thisInvocation_unnamed() { | 2525 test_constructor_initializers_thisInvocation_unnamed() { |
| 2517 checkLibrary(''' | 2526 checkLibrary(''' |
| 2518 class C { | 2527 class C { |
| 2519 const C.named() : this(1, 'bbb'); | 2528 const C.named() : this(1, 'bbb'); |
| 2520 const C(int a, String b); | 2529 const C(int a, String b); |
| 2521 } | 2530 } |
| 2522 '''); | 2531 '''); |
| 2523 } | 2532 } |
| 2524 | 2533 |
| 2525 test_constructor_redirected_factory_named() { | 2534 test_constructor_redirected_factory_named() { |
| (...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4422 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4431 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 4423 } | 4432 } |
| 4424 return serializedUnit; | 4433 return serializedUnit; |
| 4425 } | 4434 } |
| 4426 | 4435 |
| 4427 @override | 4436 @override |
| 4428 bool hasLibrarySummary(String uri) { | 4437 bool hasLibrarySummary(String uri) { |
| 4429 return true; | 4438 return true; |
| 4430 } | 4439 } |
| 4431 } | 4440 } |
| OLD | NEW |