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

Side by Side Diff: pkg/analyzer/lib/src/context/context.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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.context.context; 5 library analyzer.src.context.context;
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 ((options is AnalysisOptionsImpl) 281 ((options is AnalysisOptionsImpl)
282 ? this._options.implicitCasts != options.implicitCasts 282 ? this._options.implicitCasts != options.implicitCasts
283 : false) || 283 : false) ||
284 ((options is AnalysisOptionsImpl) 284 ((options is AnalysisOptionsImpl)
285 ? this._options.implicitDynamic != options.implicitDynamic 285 ? this._options.implicitDynamic != options.implicitDynamic
286 : false) || 286 : false) ||
287 this._options.enableStrictCallChecks != 287 this._options.enableStrictCallChecks !=
288 options.enableStrictCallChecks || 288 options.enableStrictCallChecks ||
289 this._options.enableGenericMethods != options.enableGenericMethods || 289 this._options.enableGenericMethods != options.enableGenericMethods ||
290 this._options.enableAsync != options.enableAsync || 290 this._options.enableAsync != options.enableAsync ||
291 this._options.enableSuperMixins != options.enableSuperMixins; 291 this._options.enableSuperMixins != options.enableSuperMixins ||
292 this._options.enableTrailingCommas != options.enableTrailingCommas;
292 int cacheSize = options.cacheSize; 293 int cacheSize = options.cacheSize;
293 if (this._options.cacheSize != cacheSize) { 294 if (this._options.cacheSize != cacheSize) {
294 this._options.cacheSize = cacheSize; 295 this._options.cacheSize = cacheSize;
295 } 296 }
296 this._options.analyzeFunctionBodiesPredicate = 297 this._options.analyzeFunctionBodiesPredicate =
297 options.analyzeFunctionBodiesPredicate; 298 options.analyzeFunctionBodiesPredicate;
298 this._options.generateImplicitErrors = options.generateImplicitErrors; 299 this._options.generateImplicitErrors = options.generateImplicitErrors;
299 this._options.generateSdkErrors = options.generateSdkErrors; 300 this._options.generateSdkErrors = options.generateSdkErrors;
300 this._options.dart2jsHint = options.dart2jsHint; 301 this._options.dart2jsHint = options.dart2jsHint;
301 this._options.enableGenericMethods = options.enableGenericMethods; 302 this._options.enableGenericMethods = options.enableGenericMethods;
302 this._options.enableAssertMessage = options.enableAssertMessage; 303 this._options.enableAssertMessage = options.enableAssertMessage;
303 this._options.enableStrictCallChecks = options.enableStrictCallChecks; 304 this._options.enableStrictCallChecks = options.enableStrictCallChecks;
304 this._options.enableAsync = options.enableAsync; 305 this._options.enableAsync = options.enableAsync;
305 this._options.enableSuperMixins = options.enableSuperMixins; 306 this._options.enableSuperMixins = options.enableSuperMixins;
306 this._options.enableTiming = options.enableTiming; 307 this._options.enableTiming = options.enableTiming;
308 this._options.enableTrailingCommas = options.enableTrailingCommas;
307 this._options.hint = options.hint; 309 this._options.hint = options.hint;
308 this._options.incremental = options.incremental; 310 this._options.incremental = options.incremental;
309 this._options.incrementalApi = options.incrementalApi; 311 this._options.incrementalApi = options.incrementalApi;
310 this._options.incrementalValidation = options.incrementalValidation; 312 this._options.incrementalValidation = options.incrementalValidation;
311 this._options.lint = options.lint; 313 this._options.lint = options.lint;
312 this._options.preserveComments = options.preserveComments; 314 this._options.preserveComments = options.preserveComments;
313 this._options.strongMode = options.strongMode; 315 this._options.strongMode = options.strongMode;
314 this._options.trackCacheDependencies = options.trackCacheDependencies; 316 this._options.trackCacheDependencies = options.trackCacheDependencies;
315 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation; 317 this._options.finerGrainedInvalidation = options.finerGrainedInvalidation;
316 if (options is AnalysisOptionsImpl) { 318 if (options is AnalysisOptionsImpl) {
(...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after
2260 } 2262 }
2261 DartSdk sdk = factory.dartSdk; 2263 DartSdk sdk = factory.dartSdk;
2262 if (sdk == null) { 2264 if (sdk == null) {
2263 throw new IllegalArgumentException( 2265 throw new IllegalArgumentException(
2264 "The source factory for an SDK analysis context must have a DartUriRes olver"); 2266 "The source factory for an SDK analysis context must have a DartUriRes olver");
2265 } 2267 }
2266 return new AnalysisCache( 2268 return new AnalysisCache(
2267 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 2269 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
2268 } 2270 }
2269 } 2271 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698