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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index e0cd68727f0100553a4cfbabbc8bcef5a5ec3a90..69a8e3e499a581a7ad58ca0d81607834c5205deb 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -1724,6 +1724,24 @@ const v = const {0: 'aaa', 1: 'bbb', 2: 'ccc'};
''');
}
+ test_constExpr_pushReference_field_simpleIdentifier() {
+ checkLibrary('''
+class C {
+ static const a = b;
+ static const b = null;
+}
+''');
+ }
+
+ test_constExpr_pushReference_staticMethod_simpleIdentifier() {
+ checkLibrary('''
+class C {
+ static const a = m;
+ static m() {}
+}
+''');
+ }
+
test_constructor_documented() {
checkLibrary('''
class C {
« 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