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 1704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1715 } | 1715 } |
1716 | 1716 |
1717 test_class_implicitField_setterFirst() { | 1717 test_class_implicitField_setterFirst() { |
1718 checkLibrary('class C { void set x(int value) {} int get x => 0; }'); | 1718 checkLibrary('class C { void set x(int value) {} int get x => 0; }'); |
1719 } | 1719 } |
1720 | 1720 |
1721 test_class_interfaces() { | 1721 test_class_interfaces() { |
1722 checkLibrary('class C implements D, E {} class D {} class E {}'); | 1722 checkLibrary('class C implements D, E {} class D {} class E {}'); |
1723 } | 1723 } |
1724 | 1724 |
| 1725 test_class_interfaces_unresolved() { |
| 1726 checkLibrary('class C implements X, Y, Z {} class X {} class Z {}', |
| 1727 allowErrors: true); |
| 1728 } |
| 1729 |
1725 test_class_method_abstract() { | 1730 test_class_method_abstract() { |
1726 checkLibrary('abstract class C { f(); }'); | 1731 checkLibrary('abstract class C { f(); }'); |
1727 } | 1732 } |
1728 | 1733 |
1729 test_class_method_external() { | 1734 test_class_method_external() { |
1730 checkLibrary('class C { external f(); }'); | 1735 checkLibrary('class C { external f(); }'); |
1731 } | 1736 } |
1732 | 1737 |
1733 test_class_method_params() { | 1738 test_class_method_params() { |
1734 checkLibrary('class C { f(x, y) {} }'); | 1739 checkLibrary('class C { f(x, y) {} }'); |
1735 } | 1740 } |
1736 | 1741 |
1737 test_class_method_static() { | 1742 test_class_method_static() { |
1738 checkLibrary('class C { static f() {} }'); | 1743 checkLibrary('class C { static f() {} }'); |
1739 } | 1744 } |
1740 | 1745 |
1741 test_class_methods() { | 1746 test_class_methods() { |
1742 checkLibrary('class C { f() {} g() {} }'); | 1747 checkLibrary('class C { f() {} g() {} }'); |
1743 } | 1748 } |
1744 | 1749 |
1745 test_class_mixins() { | 1750 test_class_mixins() { |
1746 checkLibrary('class C extends Object with D, E {} class D {} class E {}'); | 1751 checkLibrary('class C extends Object with D, E {} class D {} class E {}'); |
1747 } | 1752 } |
1748 | 1753 |
| 1754 test_class_mixins_unresolved() { |
| 1755 checkLibrary('class C extends Object with X, Y, Z; class X {} class Z {}', |
| 1756 allowErrors: true); |
| 1757 } |
| 1758 |
1749 test_class_setter_abstract() { | 1759 test_class_setter_abstract() { |
1750 checkLibrary('abstract class C { void set x(int value); }'); | 1760 checkLibrary('abstract class C { void set x(int value); }'); |
1751 } | 1761 } |
1752 | 1762 |
1753 test_class_setter_external() { | 1763 test_class_setter_external() { |
1754 checkLibrary('class C { external void set x(int value); }'); | 1764 checkLibrary('class C { external void set x(int value); }'); |
1755 } | 1765 } |
1756 | 1766 |
1757 test_class_setter_implicit_param_type() { | 1767 test_class_setter_implicit_param_type() { |
1758 checkLibrary('class C { void set x(value) {} }'); | 1768 checkLibrary('class C { void set x(value) {} }'); |
(...skipping 2908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4667 fail('Unexpectedly tried to get unlinked summary for $uri'); | 4677 fail('Unexpectedly tried to get unlinked summary for $uri'); |
4668 } | 4678 } |
4669 return serializedUnit; | 4679 return serializedUnit; |
4670 } | 4680 } |
4671 | 4681 |
4672 @override | 4682 @override |
4673 bool hasLibrarySummary(String uri) { | 4683 bool hasLibrarySummary(String uri) { |
4674 return true; | 4684 return true; |
4675 } | 4685 } |
4676 } | 4686 } |
OLD | NEW |