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

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

Issue 2282233002: Add support for parsing, but not capturing, assers in constructor initializer lists (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: add flag Created 4 years, 3 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 bool needsRecompute = this._options.analyzeFunctionBodiesPredicate != 277 bool needsRecompute = this._options.analyzeFunctionBodiesPredicate !=
278 options.analyzeFunctionBodiesPredicate || 278 options.analyzeFunctionBodiesPredicate ||
279 this._options.generateImplicitErrors != 279 this._options.generateImplicitErrors !=
280 options.generateImplicitErrors || 280 options.generateImplicitErrors ||
281 this._options.generateSdkErrors != options.generateSdkErrors || 281 this._options.generateSdkErrors != options.generateSdkErrors ||
282 this._options.dart2jsHint != options.dart2jsHint || 282 this._options.dart2jsHint != options.dart2jsHint ||
283 (this._options.hint && !options.hint) || 283 (this._options.hint && !options.hint) ||
284 (this._options.lint && !options.lint) || 284 (this._options.lint && !options.lint) ||
285 this._options.preserveComments != options.preserveComments || 285 this._options.preserveComments != options.preserveComments ||
286 this._options.strongMode != options.strongMode || 286 this._options.strongMode != options.strongMode ||
287 this._options.enableAssertInitializer !=
288 options.enableAssertInitializer ||
287 this._options.enableAssertMessage != options.enableAssertMessage || 289 this._options.enableAssertMessage != options.enableAssertMessage ||
288 ((options is AnalysisOptionsImpl) 290 ((options is AnalysisOptionsImpl)
289 ? this._options.strongModeHints != options.strongModeHints 291 ? this._options.strongModeHints != options.strongModeHints
290 : false) || 292 : false) ||
291 ((options is AnalysisOptionsImpl) 293 ((options is AnalysisOptionsImpl)
292 ? this._options.implicitCasts != options.implicitCasts 294 ? this._options.implicitCasts != options.implicitCasts
293 : false) || 295 : false) ||
294 ((options is AnalysisOptionsImpl) 296 ((options is AnalysisOptionsImpl)
295 ? this._options.nonnullableTypes != options.nonnullableTypes 297 ? this._options.nonnullableTypes != options.nonnullableTypes
296 : false) || 298 : false) ||
297 ((options is AnalysisOptionsImpl) 299 ((options is AnalysisOptionsImpl)
298 ? this._options.implicitDynamic != options.implicitDynamic 300 ? this._options.implicitDynamic != options.implicitDynamic
299 : false) || 301 : false) ||
300 this._options.enableStrictCallChecks != 302 this._options.enableStrictCallChecks !=
301 options.enableStrictCallChecks || 303 options.enableStrictCallChecks ||
302 this._options.enableGenericMethods != options.enableGenericMethods || 304 this._options.enableGenericMethods != options.enableGenericMethods ||
303 this._options.enableAsync != options.enableAsync || 305 this._options.enableAsync != options.enableAsync ||
304 this._options.enableSuperMixins != options.enableSuperMixins; 306 this._options.enableSuperMixins != options.enableSuperMixins;
305 int cacheSize = options.cacheSize; 307 int cacheSize = options.cacheSize;
306 if (this._options.cacheSize != cacheSize) { 308 if (this._options.cacheSize != cacheSize) {
307 this._options.cacheSize = cacheSize; 309 this._options.cacheSize = cacheSize;
308 } 310 }
309 this._options.analyzeFunctionBodiesPredicate = 311 this._options.analyzeFunctionBodiesPredicate =
310 options.analyzeFunctionBodiesPredicate; 312 options.analyzeFunctionBodiesPredicate;
311 this._options.generateImplicitErrors = options.generateImplicitErrors; 313 this._options.generateImplicitErrors = options.generateImplicitErrors;
312 this._options.generateSdkErrors = options.generateSdkErrors; 314 this._options.generateSdkErrors = options.generateSdkErrors;
313 this._options.dart2jsHint = options.dart2jsHint; 315 this._options.dart2jsHint = options.dart2jsHint;
314 this._options.enableGenericMethods = options.enableGenericMethods; 316 this._options.enableGenericMethods = options.enableGenericMethods;
317 this._options.enableAssertInitializer = options.enableAssertInitializer;
315 this._options.enableAssertMessage = options.enableAssertMessage; 318 this._options.enableAssertMessage = options.enableAssertMessage;
316 this._options.enableStrictCallChecks = options.enableStrictCallChecks; 319 this._options.enableStrictCallChecks = options.enableStrictCallChecks;
317 this._options.enableAsync = options.enableAsync; 320 this._options.enableAsync = options.enableAsync;
318 this._options.enableSuperMixins = options.enableSuperMixins; 321 this._options.enableSuperMixins = options.enableSuperMixins;
319 this._options.enableTiming = options.enableTiming; 322 this._options.enableTiming = options.enableTiming;
320 this._options.hint = options.hint; 323 this._options.hint = options.hint;
321 this._options.incremental = options.incremental; 324 this._options.incremental = options.incremental;
322 this._options.incrementalApi = options.incrementalApi; 325 this._options.incrementalApi = options.incrementalApi;
323 this._options.incrementalValidation = options.incrementalValidation; 326 this._options.incrementalValidation = options.incrementalValidation;
324 this._options.lint = options.lint; 327 this._options.lint = options.lint;
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2298 } 2301 }
2299 DartSdk sdk = factory.dartSdk; 2302 DartSdk sdk = factory.dartSdk;
2300 if (sdk == null) { 2303 if (sdk == null) {
2301 throw new IllegalArgumentException( 2304 throw new IllegalArgumentException(
2302 "The source factory for an SDK analysis context must have a DartUriRes olver"); 2305 "The source factory for an SDK analysis context must have a DartUriRes olver");
2303 } 2306 }
2304 return new AnalysisCache( 2307 return new AnalysisCache(
2305 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 2308 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
2306 } 2309 }
2307 } 2310 }
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