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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2112073002: Option to enable analyzer trailing comma support (#26647). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Option to enable analyzer trailing comma support (#26647). Created 4 years, 6 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
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index abded102cd39d6c882b87c6d5933019ca80d878d..67a931c70acefe653617d7da8682927cdbccbd24 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1095,6 +1095,12 @@ abstract class AnalysisOptions {
bool get enableTiming;
/**
+ * Return `true` to enable trailing commas in parameter and argument lists
+ * (sdk#26647).
+ */
+ bool get enableTrailingCommas;
+
+ /**
* A flag indicating whether finer grained dependencies should be used
* instead of just source level dependencies.
*
@@ -1242,6 +1248,9 @@ class AnalysisOptionsImpl implements AnalysisOptions {
@override
bool enableTiming = false;
+ @override
+ bool enableTrailingCommas = false;
+
/**
* A flag indicating whether errors, warnings and hints should be generated
* for sources that are implicitly being analyzed.
@@ -1346,6 +1355,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
enableGenericMethods = options.enableGenericMethods;
enableSuperMixins = options.enableSuperMixins;
enableTiming = options.enableTiming;
+ enableTrailingCommas = options.enableTrailingCommas;
generateImplicitErrors = options.generateImplicitErrors;
generateSdkErrors = options.generateSdkErrors;
hint = options.hint;
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698