| 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/src/generated/element.dart'; | 7 import 'package:analyzer/src/generated/element.dart'; |
| 8 import 'package:analyzer/src/generated/source.dart'; | 8 import 'package:analyzer/src/generated/source.dart'; |
| 9 import 'package:analyzer/src/summary/base.dart'; | 9 import 'package:analyzer/src/summary/base.dart'; |
| 10 import 'package:analyzer/src/summary/format.dart'; | 10 import 'package:analyzer/src/summary/format.dart'; |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 } | 587 } |
| 588 | 588 |
| 589 test_class_constructor_external() { | 589 test_class_constructor_external() { |
| 590 checkLibrary('class C { external C(); }'); | 590 checkLibrary('class C { external C(); }'); |
| 591 } | 591 } |
| 592 | 592 |
| 593 test_class_constructor_factory() { | 593 test_class_constructor_factory() { |
| 594 checkLibrary('class C { factory C() => null; }'); | 594 checkLibrary('class C { factory C() => null; }'); |
| 595 } | 595 } |
| 596 | 596 |
| 597 test_class_constructor_field_formal_dynamic_dynamic() { |
| 598 checkLibrary('class C { dynamic x; C(dynamic this.x); }'); |
| 599 } |
| 600 |
| 601 test_class_constructor_field_formal_dynamic_typed() { |
| 602 checkLibrary('class C { dynamic x; C(int this.x); }'); |
| 603 } |
| 604 |
| 605 test_class_constructor_field_formal_dynamic_untyped() { |
| 606 checkLibrary('class C { dynamic x; C(this.x); }'); |
| 607 } |
| 608 |
| 609 test_class_constructor_field_formal_typed_dynamic() { |
| 610 checkLibrary('class C { num x; C(dynamic this.x); }'); |
| 611 } |
| 612 |
| 613 test_class_constructor_field_formal_typed_typed() { |
| 614 checkLibrary('class C { num x; C(int this.x); }'); |
| 615 } |
| 616 |
| 617 test_class_constructor_field_formal_typed_untyped() { |
| 618 checkLibrary('class C { num x; C(this.x); }'); |
| 619 } |
| 620 |
| 621 test_class_constructor_field_formal_untyped_dynamic() { |
| 622 checkLibrary('class C { var x; C(dynamic this.x); }'); |
| 623 } |
| 624 |
| 625 test_class_constructor_field_formal_untyped_typed() { |
| 626 checkLibrary('class C { var x; C(int this.x); }'); |
| 627 } |
| 628 |
| 629 test_class_constructor_field_formal_untyped_untyped() { |
| 630 checkLibrary('class C { var x; C(this.x); }'); |
| 631 } |
| 632 |
| 597 test_class_constructor_implicit() { | 633 test_class_constructor_implicit() { |
| 598 checkLibrary('class C {}'); | 634 checkLibrary('class C {}'); |
| 599 } | 635 } |
| 600 | 636 |
| 601 test_class_constructor_implicit_type_params() { | 637 test_class_constructor_implicit_type_params() { |
| 602 checkLibrary('class C<T, U> {}'); | 638 checkLibrary('class C<T, U> {}'); |
| 603 } | 639 } |
| 604 | 640 |
| 605 test_class_constructor_params() { | 641 test_class_constructor_params() { |
| 606 checkLibrary('class C { C(x, y); }'); | 642 checkLibrary('class C { C(x, y); }'); |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 } | 1145 } |
| 1110 | 1146 |
| 1111 test_variable_implicit_type() { | 1147 test_variable_implicit_type() { |
| 1112 checkLibrary('var x;'); | 1148 checkLibrary('var x;'); |
| 1113 } | 1149 } |
| 1114 | 1150 |
| 1115 test_variables() { | 1151 test_variables() { |
| 1116 checkLibrary('int i; int j;'); | 1152 checkLibrary('int i; int j;'); |
| 1117 } | 1153 } |
| 1118 } | 1154 } |
| OLD | NEW |