Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 1675393002: Fix summarization of unqualified references to class members. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_elements.dart ('k') | pkg/analyzer/test/src/summary/summary_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698