| 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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1717 const v = const [1, 2, 3]; | 1717 const v = const [1, 2, 3]; |
| 1718 '''); | 1718 '''); |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 test_const_topLevel_untypedMap() { | 1721 test_const_topLevel_untypedMap() { |
| 1722 checkLibrary(r''' | 1722 checkLibrary(r''' |
| 1723 const v = const {0: 'aaa', 1: 'bbb', 2: 'ccc'}; | 1723 const v = const {0: 'aaa', 1: 'bbb', 2: 'ccc'}; |
| 1724 '''); | 1724 '''); |
| 1725 } | 1725 } |
| 1726 | 1726 |
| 1727 test_constExpr_pushReference_field_simpleIdentifier() { |
| 1728 checkLibrary(''' |
| 1729 class C { |
| 1730 static const a = b; |
| 1731 static const b = null; |
| 1732 } |
| 1733 '''); |
| 1734 } |
| 1735 |
| 1736 test_constExpr_pushReference_staticMethod_simpleIdentifier() { |
| 1737 checkLibrary(''' |
| 1738 class C { |
| 1739 static const a = m; |
| 1740 static m() {} |
| 1741 } |
| 1742 '''); |
| 1743 } |
| 1744 |
| 1727 test_constructor_documented() { | 1745 test_constructor_documented() { |
| 1728 checkLibrary(''' | 1746 checkLibrary(''' |
| 1729 class C { | 1747 class C { |
| 1730 /** | 1748 /** |
| 1731 * Docs | 1749 * Docs |
| 1732 */ | 1750 */ |
| 1733 C(); | 1751 C(); |
| 1734 }'''); | 1752 }'''); |
| 1735 } | 1753 } |
| 1736 | 1754 |
| (...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2837 fail('Unexpectedly tried to get unlinked summary for $uri'); | 2855 fail('Unexpectedly tried to get unlinked summary for $uri'); |
| 2838 } | 2856 } |
| 2839 return serializedUnit; | 2857 return serializedUnit; |
| 2840 } | 2858 } |
| 2841 | 2859 |
| 2842 @override | 2860 @override |
| 2843 bool hasLibrarySummary(String uri) { | 2861 bool hasLibrarySummary(String uri) { |
| 2844 return true; | 2862 return true; |
| 2845 } | 2863 } |
| 2846 } | 2864 } |
| OLD | NEW |