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

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

Issue 2557513008: Enable messages in asserts by default (Closed)
Patch Set: Created 4 years 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/error/error.dart ('k') | pkg/analyzer/lib/src/error/codes.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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 this._options.dart2jsHint != options.dart2jsHint || 275 this._options.dart2jsHint != options.dart2jsHint ||
276 _notEqual(this._options.errorProcessors, options.errorProcessors) || 276 _notEqual(this._options.errorProcessors, options.errorProcessors) ||
277 _notEqual(this._options.excludePatterns, options.excludePatterns) || 277 _notEqual(this._options.excludePatterns, options.excludePatterns) ||
278 (this._options.hint && !options.hint) || 278 (this._options.hint && !options.hint) ||
279 (this._options.lint && !options.lint) || 279 (this._options.lint && !options.lint) ||
280 _notEqual(this._options.lintRules, options.lintRules) || 280 _notEqual(this._options.lintRules, options.lintRules) ||
281 this._options.preserveComments != options.preserveComments || 281 this._options.preserveComments != options.preserveComments ||
282 this._options.strongMode != options.strongMode || 282 this._options.strongMode != options.strongMode ||
283 this._options.enableAssertInitializer != 283 this._options.enableAssertInitializer !=
284 options.enableAssertInitializer || 284 options.enableAssertInitializer ||
285 this._options.enableAssertMessage != options.enableAssertMessage ||
286 this._options.enableLazyAssignmentOperators != 285 this._options.enableLazyAssignmentOperators !=
287 options.enableLazyAssignmentOperators || 286 options.enableLazyAssignmentOperators ||
288 ((options is AnalysisOptionsImpl) 287 ((options is AnalysisOptionsImpl)
289 ? this._options.strongModeHints != options.strongModeHints 288 ? this._options.strongModeHints != options.strongModeHints
290 : false) || 289 : false) ||
291 ((options is AnalysisOptionsImpl) 290 ((options is AnalysisOptionsImpl)
292 ? this._options.implicitCasts != options.implicitCasts 291 ? this._options.implicitCasts != options.implicitCasts
293 : false) || 292 : false) ||
294 ((options is AnalysisOptionsImpl) 293 ((options is AnalysisOptionsImpl)
295 ? this._options.nonnullableTypes != options.nonnullableTypes 294 ? this._options.nonnullableTypes != options.nonnullableTypes
296 : false) || 295 : false) ||
297 ((options is AnalysisOptionsImpl) 296 ((options is AnalysisOptionsImpl)
298 ? this._options.implicitDynamic != options.implicitDynamic 297 ? this._options.implicitDynamic != options.implicitDynamic
299 : false) || 298 : false) ||
300 this._options.enableStrictCallChecks != 299 this._options.enableStrictCallChecks !=
301 options.enableStrictCallChecks || 300 options.enableStrictCallChecks ||
302 this._options.enableSuperMixins != options.enableSuperMixins || 301 this._options.enableSuperMixins != options.enableSuperMixins ||
303 this._options.patchPlatform != options.patchPlatform; 302 this._options.patchPlatform != options.patchPlatform;
304 this._options.analyzeFunctionBodiesPredicate = 303 this._options.analyzeFunctionBodiesPredicate =
305 options.analyzeFunctionBodiesPredicate; 304 options.analyzeFunctionBodiesPredicate;
306 this._options.generateImplicitErrors = options.generateImplicitErrors; 305 this._options.generateImplicitErrors = options.generateImplicitErrors;
307 this._options.generateSdkErrors = options.generateSdkErrors; 306 this._options.generateSdkErrors = options.generateSdkErrors;
308 this._options.dart2jsHint = options.dart2jsHint; 307 this._options.dart2jsHint = options.dart2jsHint;
309 this._options.enableAssertInitializer = options.enableAssertInitializer; 308 this._options.enableAssertInitializer = options.enableAssertInitializer;
310 this._options.enableAssertMessage = options.enableAssertMessage;
311 this._options.enableStrictCallChecks = options.enableStrictCallChecks; 309 this._options.enableStrictCallChecks = options.enableStrictCallChecks;
312 this._options.enableLazyAssignmentOperators = 310 this._options.enableLazyAssignmentOperators =
313 options.enableLazyAssignmentOperators; 311 options.enableLazyAssignmentOperators;
314 this._options.enableSuperMixins = options.enableSuperMixins; 312 this._options.enableSuperMixins = options.enableSuperMixins;
315 this._options.enableTiming = options.enableTiming; 313 this._options.enableTiming = options.enableTiming;
316 this._options.errorProcessors = options.errorProcessors; 314 this._options.errorProcessors = options.errorProcessors;
317 this._options.excludePatterns = options.excludePatterns; 315 this._options.excludePatterns = options.excludePatterns;
318 this._options.hint = options.hint; 316 this._options.hint = options.hint;
319 this._options.incremental = options.incremental; 317 this._options.incremental = options.incremental;
320 this._options.incrementalApi = options.incrementalApi; 318 this._options.incrementalApi = options.incrementalApi;
(...skipping 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 } 2242 }
2245 DartSdk sdk = factory.dartSdk; 2243 DartSdk sdk = factory.dartSdk;
2246 if (sdk == null) { 2244 if (sdk == null) {
2247 throw new ArgumentError( 2245 throw new ArgumentError(
2248 "The source factory for an SDK analysis context must have a DartUriRes olver"); 2246 "The source factory for an SDK analysis context must have a DartUriRes olver");
2249 } 2247 }
2250 return new AnalysisCache( 2248 return new AnalysisCache(
2251 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]); 2249 <CachePartition>[AnalysisEngine.instance.partitionManager.forSdk(sdk)]);
2252 } 2250 }
2253 } 2251 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/error/error.dart ('k') | pkg/analyzer/lib/src/error/codes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698