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

Unified Diff: pkg/analysis_server/test/abstract_context.dart

Issue 2728653004: Default arg support continued (flutter-intellij#553). (Closed)
Patch Set: Review tweaks. Created 3 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/analysis_server/test/abstract_context.dart
diff --git a/pkg/analysis_server/test/abstract_context.dart b/pkg/analysis_server/test/abstract_context.dart
index e3c4b93508e4d74bdf0e32d153e602c63efb2595..e139528d04391925c257d771aa1c52ee2607c732 100644
--- a/pkg/analysis_server/test/abstract_context.dart
+++ b/pkg/analysis_server/test/abstract_context.dart
@@ -76,6 +76,20 @@ class AbstractContextTest {
*/
bool get enableNewAnalysisDriver => false;
+ Source addMetaPackageSource() => addPackageSource(
+ 'meta',
+ 'meta.dart',
+ r'''
+library meta;
+
+const Required required = const Required();
+
+class Required {
+ final String reason;
+ const Required([this.reason]);
+}
+''');
+
Source addPackageSource(String packageName, String filePath, String content) {
packageMap[packageName] = [(newFolder('/pubcache/$packageName'))];
File file = newFile('/pubcache/$packageName/$filePath', content);

Powered by Google App Engine
This is Rietveld 408576698