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

Side by Side Diff: pkg/analyzer/lib/src/context/context.dart

Issue 2054443002: Add analysis option that will be used to fix #26583 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.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) 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 this._options.generateSdkErrors != options.generateSdkErrors || 264 this._options.generateSdkErrors != options.generateSdkErrors ||
265 this._options.dart2jsHint != options.dart2jsHint || 265 this._options.dart2jsHint != options.dart2jsHint ||
266 (this._options.hint && !options.hint) || 266 (this._options.hint && !options.hint) ||
267 (this._options.lint && !options.lint) || 267 (this._options.lint && !options.lint) ||
268 this._options.preserveComments != options.preserveComments || 268 this._options.preserveComments != options.preserveComments ||
269 this._options.strongMode != options.strongMode || 269 this._options.strongMode != options.strongMode ||
270 this._options.enableAssertMessage != options.enableAssertMessage || 270 this._options.enableAssertMessage != options.enableAssertMessage ||
271 ((options is AnalysisOptionsImpl) 271 ((options is AnalysisOptionsImpl)
272 ? this._options.strongModeHints != options.strongModeHints 272 ? this._options.strongModeHints != options.strongModeHints
273 : false) || 273 : false) ||
274 ((options is AnalysisOptionsImpl)
275 ? this._options.implicitCasts != options.implicitCasts
276 : false) ||
274 this._options.enableStrictCallChecks != 277 this._options.enableStrictCallChecks !=
275 options.enableStrictCallChecks || 278 options.enableStrictCallChecks ||
276 this._options.enableGenericMethods != options.enableGenericMethods || 279 this._options.enableGenericMethods != options.enableGenericMethods ||
277 this._options.enableAsync != options.enableAsync || 280 this._options.enableAsync != options.enableAsync ||
278 this._options.enableSuperMixins != options.enableSuperMixins; 281 this._options.enableSuperMixins != options.enableSuperMixins;
279 int cacheSize = options.cacheSize; 282 int cacheSize = options.cacheSize;
280 if (this._options.cacheSize != cacheSize) { 283 if (this._options.cacheSize != cacheSize) {
281 this._options.cacheSize = cacheSize; 284 this._options.cacheSize = cacheSize;
282 } 285 }
283 this._options.analyzeFunctionBodiesPredicate = 286 this._options.analyzeFunctionBodiesPredicate =
(...skipping 10 matching lines...) Expand all
294 this._options.hint = options.hint; 297 this._options.hint = options.hint;
295 this._options.incremental = options.incremental; 298 this._options.incremental = options.incremental;
296 this._options.incrementalApi = options.incrementalApi; 299 this._options.incrementalApi = options.incrementalApi;
297 this._options.incrementalValidation = options.incrementalValidation; 300 this._options.incrementalValidation = options.incrementalValidation;
298 this._options.lint = options.lint; 301 this._options.lint = options.lint;
299 this._options.preserveComments = options.preserveComments; 302 this._options.preserveComments = options.preserveComments;
300 this._options.strongMode = options.strongMode; 303 this._options.strongMode = options.strongMode;
301 this._options.trackCacheDependencies = options.trackCacheDependencies; 304 this._options.trackCacheDependencies = options.trackCacheDependencies;
302 if (options is AnalysisOptionsImpl) { 305 if (options is AnalysisOptionsImpl) {
303 this._options.strongModeHints = options.strongModeHints; 306 this._options.strongModeHints = options.strongModeHints;
307 this._options.implicitCasts = options.implicitCasts;
304 } 308 }
305 if (needsRecompute) { 309 if (needsRecompute) {
306 for (WorkManager workManager in workManagers) { 310 for (WorkManager workManager in workManagers) {
307 workManager.onAnalysisOptionsChanged(); 311 workManager.onAnalysisOptionsChanged();
308 } 312 }
309 } 313 }
310 } 314 }
311 315
312 @override 316 @override
313 void set analysisPriorityOrder(List<Source> sources) { 317 void set analysisPriorityOrder(List<Source> sources) {
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 } 2228 }
2225 DartSdk sdk = factory.dartSdk; 2229 DartSdk sdk = factory.dartSdk;
2226 if (sdk == null) { 2230 if (sdk == null) {
2227 throw new IllegalArgumentException( 2231 throw new IllegalArgumentException(
2228 "The source factory for an SDK analysis context must have a DartUriRes olver"); 2232 "The source factory for an SDK analysis context must have a DartUriRes olver");
2229 } 2233 }
2230 return new AnalysisCache( 2234 return new AnalysisCache(
2231 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 2235 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
2232 } 2236 }
2233 } 2237 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698