| 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 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 checkLibrary(''' | 2469 checkLibrary(''' |
| 2470 class A { | 2470 class A { |
| 2471 const A.aaa(int p); | 2471 const A.aaa(int p); |
| 2472 } | 2472 } |
| 2473 class C extends A { | 2473 class C extends A { |
| 2474 const C() : super.aaa(42); | 2474 const C() : super.aaa(42); |
| 2475 } | 2475 } |
| 2476 '''); | 2476 '''); |
| 2477 } | 2477 } |
| 2478 | 2478 |
| 2479 test_constructor_initializers_superInvocation_namedExpression() { |
| 2480 checkLibrary(''' |
| 2481 class A { |
| 2482 const A.aaa(a, {int b}); |
| 2483 } |
| 2484 class C extends A { |
| 2485 const C() : super.aaa(1, b: 2); |
| 2486 } |
| 2487 '''); |
| 2488 } |
| 2489 |
| 2479 test_constructor_initializers_superInvocation_unnamed() { | 2490 test_constructor_initializers_superInvocation_unnamed() { |
| 2480 checkLibrary(''' | 2491 checkLibrary(''' |
| 2481 class A { | 2492 class A { |
| 2482 const A(int p); | 2493 const A(int p); |
| 2483 } | 2494 } |
| 2484 class C extends A { | 2495 class C extends A { |
| 2485 const C.ccc() : super(42); | 2496 const C.ccc() : super(42); |
| 2486 } | 2497 } |
| 2487 '''); | 2498 '''); |
| 2488 } | 2499 } |
| (...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4375 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4386 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 4376 } | 4387 } |
| 4377 return serializedUnit; | 4388 return serializedUnit; |
| 4378 } | 4389 } |
| 4379 | 4390 |
| 4380 @override | 4391 @override |
| 4381 bool hasLibrarySummary(String uri) { | 4392 bool hasLibrarySummary(String uri) { |
| 4382 return true; | 4393 return true; |
| 4383 } | 4394 } |
| 4384 } | 4395 } |
| OLD | NEW |