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

Side by Side 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, 5 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analyzer.src.generated.engine; 5 library analyzer.src.generated.engine;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 * Object, and are allowed to reference `super`. 1088 * Object, and are allowed to reference `super`.
1089 */ 1089 */
1090 bool get enableSuperMixins; 1090 bool get enableSuperMixins;
1091 1091
1092 /** 1092 /**
1093 * Return `true` if timing data should be gathered during execution. 1093 * Return `true` if timing data should be gathered during execution.
1094 */ 1094 */
1095 bool get enableTiming; 1095 bool get enableTiming;
1096 1096
1097 /** 1097 /**
1098 * Return `true` to enable trailing commas in parameter and argument lists
1099 * (sdk#26647).
1100 */
1101 bool get enableTrailingCommas;
1102
1103 /**
1098 * A flag indicating whether finer grained dependencies should be used 1104 * A flag indicating whether finer grained dependencies should be used
1099 * instead of just source level dependencies. 1105 * instead of just source level dependencies.
1100 * 1106 *
1101 * This option is experimental and subject to change. 1107 * This option is experimental and subject to change.
1102 */ 1108 */
1103 bool get finerGrainedInvalidation; 1109 bool get finerGrainedInvalidation;
1104 1110
1105 /** 1111 /**
1106 * Return `true` if errors, warnings and hints should be generated for sources 1112 * Return `true` if errors, warnings and hints should be generated for sources
1107 * that are implicitly being analyzed. The default value is `true`. 1113 * that are implicitly being analyzed. The default value is `true`.
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 1241
1236 /** 1242 /**
1237 * A flag indicating whether mixins are allowed to inherit from types other 1243 * A flag indicating whether mixins are allowed to inherit from types other
1238 * than Object, and are allowed to reference `super`. 1244 * than Object, and are allowed to reference `super`.
1239 */ 1245 */
1240 bool enableSuperMixins = false; 1246 bool enableSuperMixins = false;
1241 1247
1242 @override 1248 @override
1243 bool enableTiming = false; 1249 bool enableTiming = false;
1244 1250
1251 @override
1252 bool enableTrailingCommas = false;
1253
1245 /** 1254 /**
1246 * A flag indicating whether errors, warnings and hints should be generated 1255 * A flag indicating whether errors, warnings and hints should be generated
1247 * for sources that are implicitly being analyzed. 1256 * for sources that are implicitly being analyzed.
1248 */ 1257 */
1249 bool generateImplicitErrors = true; 1258 bool generateImplicitErrors = true;
1250 1259
1251 /** 1260 /**
1252 * A flag indicating whether errors, warnings and hints should be generated 1261 * A flag indicating whether errors, warnings and hints should be generated
1253 * for sources in the SDK. 1262 * for sources in the SDK.
1254 */ 1263 */
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 AnalysisOptionsImpl.from(AnalysisOptions options) { 1348 AnalysisOptionsImpl.from(AnalysisOptions options) {
1340 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; 1349 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate;
1341 cacheSize = options.cacheSize; 1350 cacheSize = options.cacheSize;
1342 dart2jsHint = options.dart2jsHint; 1351 dart2jsHint = options.dart2jsHint;
1343 enableAssertMessage = options.enableAssertMessage; 1352 enableAssertMessage = options.enableAssertMessage;
1344 enableAsync = options.enableAsync; 1353 enableAsync = options.enableAsync;
1345 enableStrictCallChecks = options.enableStrictCallChecks; 1354 enableStrictCallChecks = options.enableStrictCallChecks;
1346 enableGenericMethods = options.enableGenericMethods; 1355 enableGenericMethods = options.enableGenericMethods;
1347 enableSuperMixins = options.enableSuperMixins; 1356 enableSuperMixins = options.enableSuperMixins;
1348 enableTiming = options.enableTiming; 1357 enableTiming = options.enableTiming;
1358 enableTrailingCommas = options.enableTrailingCommas;
1349 generateImplicitErrors = options.generateImplicitErrors; 1359 generateImplicitErrors = options.generateImplicitErrors;
1350 generateSdkErrors = options.generateSdkErrors; 1360 generateSdkErrors = options.generateSdkErrors;
1351 hint = options.hint; 1361 hint = options.hint;
1352 incremental = options.incremental; 1362 incremental = options.incremental;
1353 incrementalApi = options.incrementalApi; 1363 incrementalApi = options.incrementalApi;
1354 incrementalValidation = options.incrementalValidation; 1364 incrementalValidation = options.incrementalValidation;
1355 lint = options.lint; 1365 lint = options.lint;
1356 preserveComments = options.preserveComments; 1366 preserveComments = options.preserveComments;
1357 strongMode = options.strongMode; 1367 strongMode = options.strongMode;
1358 if (options is AnalysisOptionsImpl) { 1368 if (options is AnalysisOptionsImpl) {
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 * The data that was created from the source. 2665 * The data that was created from the source.
2656 */ 2666 */
2657 final E data; 2667 final E data;
2658 2668
2659 /** 2669 /**
2660 * Initialize a newly created holder to associate the given [data] with the 2670 * Initialize a newly created holder to associate the given [data] with the
2661 * given [modificationTime]. 2671 * given [modificationTime].
2662 */ 2672 */
2663 TimestampedData(this.modificationTime, this.data); 2673 TimestampedData(this.modificationTime, this.data);
2664 } 2674 }
OLDNEW
« 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