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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.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 | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart.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 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 * used. This flag is not exposed in the interface, and should be 1288 * used. This flag is not exposed in the interface, and should be
1289 * replaced by something more general. 1289 * replaced by something more general.
1290 */ 1290 */
1291 // TODO(leafp): replace this with something more general 1291 // TODO(leafp): replace this with something more general
1292 bool strongModeHints = false; 1292 bool strongModeHints = false;
1293 1293
1294 @override 1294 @override
1295 bool trackCacheDependencies = true; 1295 bool trackCacheDependencies = true;
1296 1296
1297 /** 1297 /**
1298 * A flag indicating whether implicit casts are allowed in [strongMode]
1299 * (they are always allowed in Dart 1.0 mode).
1300 *
1301 * This option is experimental and subject to change.
1302 */
1303 bool implicitCasts = true;
1304
1305 /**
1298 * Initialize a newly created set of analysis options to have their default 1306 * Initialize a newly created set of analysis options to have their default
1299 * values. 1307 * values.
1300 */ 1308 */
1301 AnalysisOptionsImpl(); 1309 AnalysisOptionsImpl();
1302 1310
1303 /** 1311 /**
1304 * Initialize a newly created set of analysis options to have the same values 1312 * Initialize a newly created set of analysis options to have the same values
1305 * as those in the given set of analysis [options]. 1313 * as those in the given set of analysis [options].
1306 */ 1314 */
1307 AnalysisOptionsImpl.from(AnalysisOptions options) { 1315 AnalysisOptionsImpl.from(AnalysisOptions options) {
(...skipping 10 matching lines...) Expand all
1318 generateSdkErrors = options.generateSdkErrors; 1326 generateSdkErrors = options.generateSdkErrors;
1319 hint = options.hint; 1327 hint = options.hint;
1320 incremental = options.incremental; 1328 incremental = options.incremental;
1321 incrementalApi = options.incrementalApi; 1329 incrementalApi = options.incrementalApi;
1322 incrementalValidation = options.incrementalValidation; 1330 incrementalValidation = options.incrementalValidation;
1323 lint = options.lint; 1331 lint = options.lint;
1324 preserveComments = options.preserveComments; 1332 preserveComments = options.preserveComments;
1325 strongMode = options.strongMode; 1333 strongMode = options.strongMode;
1326 if (options is AnalysisOptionsImpl) { 1334 if (options is AnalysisOptionsImpl) {
1327 strongModeHints = options.strongModeHints; 1335 strongModeHints = options.strongModeHints;
1336 implicitCasts = options.implicitCasts;
1328 } 1337 }
1329 trackCacheDependencies = options.trackCacheDependencies; 1338 trackCacheDependencies = options.trackCacheDependencies;
1330 } 1339 }
1331 1340
1332 bool get analyzeFunctionBodies { 1341 bool get analyzeFunctionBodies {
1333 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { 1342 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) {
1334 return true; 1343 return true;
1335 } else if (identical( 1344 } else if (identical(
1336 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { 1345 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) {
1337 return false; 1346 return false;
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
2575 * The data that was created from the source. 2584 * The data that was created from the source.
2576 */ 2585 */
2577 final E data; 2586 final E data;
2578 2587
2579 /** 2588 /**
2580 * Initialize a newly created holder to associate the given [data] with the 2589 * Initialize a newly created holder to associate the given [data] with the
2581 * given [modificationTime]. 2590 * given [modificationTime].
2582 */ 2591 */
2583 TimestampedData(this.modificationTime, this.data); 2592 TimestampedData(this.modificationTime, this.data);
2584 } 2593 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698