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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2185873002: Default trailing comma support to `true` (#26647). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 * Object, and are allowed to reference `super`. 1080 * Object, and are allowed to reference `super`.
1081 */ 1081 */
1082 bool get enableSuperMixins; 1082 bool get enableSuperMixins;
1083 1083
1084 /** 1084 /**
1085 * Return `true` if timing data should be gathered during execution. 1085 * Return `true` if timing data should be gathered during execution.
1086 */ 1086 */
1087 bool get enableTiming; 1087 bool get enableTiming;
1088 1088
1089 /** 1089 /**
1090 * Return `true` to enable trailing commas in parameter and argument lists
1091 * (sdk#26647).
1092 */
1093 bool get enableTrailingCommas;
1094
1095 /**
1096 * A flag indicating whether finer grained dependencies should be used 1090 * A flag indicating whether finer grained dependencies should be used
1097 * instead of just source level dependencies. 1091 * instead of just source level dependencies.
1098 * 1092 *
1099 * This option is experimental and subject to change. 1093 * This option is experimental and subject to change.
1100 */ 1094 */
1101 bool get finerGrainedInvalidation; 1095 bool get finerGrainedInvalidation;
1102 1096
1103 /** 1097 /**
1104 * Return `true` if errors, warnings and hints should be generated for sources 1098 * Return `true` if errors, warnings and hints should be generated for sources
1105 * that are implicitly being analyzed. The default value is `true`. 1099 * that are implicitly being analyzed. The default value is `true`.
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 AnalysisOptionsImpl.from(AnalysisOptions options) { 1334 AnalysisOptionsImpl.from(AnalysisOptions options) {
1341 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; 1335 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate;
1342 cacheSize = options.cacheSize; 1336 cacheSize = options.cacheSize;
1343 dart2jsHint = options.dart2jsHint; 1337 dart2jsHint = options.dart2jsHint;
1344 enableAssertMessage = options.enableAssertMessage; 1338 enableAssertMessage = options.enableAssertMessage;
1345 enableAsync = options.enableAsync; 1339 enableAsync = options.enableAsync;
1346 enableStrictCallChecks = options.enableStrictCallChecks; 1340 enableStrictCallChecks = options.enableStrictCallChecks;
1347 enableGenericMethods = options.enableGenericMethods; 1341 enableGenericMethods = options.enableGenericMethods;
1348 enableSuperMixins = options.enableSuperMixins; 1342 enableSuperMixins = options.enableSuperMixins;
1349 enableTiming = options.enableTiming; 1343 enableTiming = options.enableTiming;
1350 enableTrailingCommas = options.enableTrailingCommas;
1351 generateImplicitErrors = options.generateImplicitErrors; 1344 generateImplicitErrors = options.generateImplicitErrors;
1352 generateSdkErrors = options.generateSdkErrors; 1345 generateSdkErrors = options.generateSdkErrors;
1353 hint = options.hint; 1346 hint = options.hint;
1354 incremental = options.incremental; 1347 incremental = options.incremental;
1355 incrementalApi = options.incrementalApi; 1348 incrementalApi = options.incrementalApi;
1356 incrementalValidation = options.incrementalValidation; 1349 incrementalValidation = options.incrementalValidation;
1357 lint = options.lint; 1350 lint = options.lint;
1358 preserveComments = options.preserveComments; 1351 preserveComments = options.preserveComments;
1359 strongMode = options.strongMode; 1352 strongMode = options.strongMode;
1360 if (options is AnalysisOptionsImpl) { 1353 if (options is AnalysisOptionsImpl) {
(...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after
2713 * The data that was created from the source. 2706 * The data that was created from the source.
2714 */ 2707 */
2715 final E data; 2708 final E data;
2716 2709
2717 /** 2710 /**
2718 * Initialize a newly created holder to associate the given [data] with the 2711 * Initialize a newly created holder to associate the given [data] with the
2719 * given [modificationTime]. 2712 * given [modificationTime].
2720 */ 2713 */
2721 TimestampedData(this.modificationTime, this.data); 2714 TimestampedData(this.modificationTime, this.data);
2722 } 2715 }
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