OLD | NEW |
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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine; | 8 library engine; |
9 | 9 |
10 import 'dart:async'; | 10 import 'dart:async'; |
(...skipping 6174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6185 | 6185 |
6186 /** | 6186 /** |
6187 * Return `true` if analysis is to generate lint warnings. | 6187 * Return `true` if analysis is to generate lint warnings. |
6188 */ | 6188 */ |
6189 bool get lint; | 6189 bool get lint; |
6190 | 6190 |
6191 /** | 6191 /** |
6192 * Return `true` if analysis is to parse comments. | 6192 * Return `true` if analysis is to parse comments. |
6193 */ | 6193 */ |
6194 bool get preserveComments; | 6194 bool get preserveComments; |
| 6195 |
| 6196 /** |
| 6197 * Return `true` if strong mode analysis should be used. |
| 6198 */ |
| 6199 bool get strongMode; |
6195 } | 6200 } |
6196 | 6201 |
6197 /** | 6202 /** |
6198 * A set of analysis options used to control the behavior of an analysis | 6203 * A set of analysis options used to control the behavior of an analysis |
6199 * context. | 6204 * context. |
6200 */ | 6205 */ |
6201 class AnalysisOptionsImpl implements AnalysisOptions { | 6206 class AnalysisOptionsImpl implements AnalysisOptions { |
6202 /** | 6207 /** |
6203 * The maximum number of sources for which data should be kept in the cache. | 6208 * The maximum number of sources for which data should be kept in the cache. |
6204 */ | 6209 */ |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6285 * A flag indicating whether analysis is to generate lint warnings. | 6290 * A flag indicating whether analysis is to generate lint warnings. |
6286 */ | 6291 */ |
6287 bool lint = false; | 6292 bool lint = false; |
6288 | 6293 |
6289 /** | 6294 /** |
6290 * A flag indicating whether analysis is to parse comments. | 6295 * A flag indicating whether analysis is to parse comments. |
6291 */ | 6296 */ |
6292 bool preserveComments = true; | 6297 bool preserveComments = true; |
6293 | 6298 |
6294 /** | 6299 /** |
| 6300 * A flag indicating whether strong-mode analysis should be used. |
| 6301 */ |
| 6302 bool strongMode = false; |
| 6303 |
| 6304 /** |
6295 * Initialize a newly created set of analysis options to have their default | 6305 * Initialize a newly created set of analysis options to have their default |
6296 * values. | 6306 * values. |
6297 */ | 6307 */ |
6298 AnalysisOptionsImpl(); | 6308 AnalysisOptionsImpl(); |
6299 | 6309 |
6300 /** | 6310 /** |
6301 * Initialize a newly created set of analysis options to have the same values | 6311 * Initialize a newly created set of analysis options to have the same values |
6302 * as those in the given set of analysis [options]. | 6312 * as those in the given set of analysis [options]. |
6303 */ | 6313 */ |
6304 @deprecated // Use new AnalysisOptionsImpl.from(options) | 6314 @deprecated // Use new AnalysisOptionsImpl.from(options) |
6305 AnalysisOptionsImpl.con1(AnalysisOptions options) { | 6315 AnalysisOptionsImpl.con1(AnalysisOptions options) { |
6306 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; | 6316 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; |
6307 cacheSize = options.cacheSize; | 6317 cacheSize = options.cacheSize; |
6308 dart2jsHint = options.dart2jsHint; | 6318 dart2jsHint = options.dart2jsHint; |
6309 enableStrictCallChecks = options.enableStrictCallChecks; | 6319 enableStrictCallChecks = options.enableStrictCallChecks; |
6310 generateImplicitErrors = options.generateImplicitErrors; | 6320 generateImplicitErrors = options.generateImplicitErrors; |
6311 generateSdkErrors = options.generateSdkErrors; | 6321 generateSdkErrors = options.generateSdkErrors; |
6312 hint = options.hint; | 6322 hint = options.hint; |
6313 incremental = options.incremental; | 6323 incremental = options.incremental; |
6314 incrementalApi = options.incrementalApi; | 6324 incrementalApi = options.incrementalApi; |
6315 incrementalValidation = options.incrementalValidation; | 6325 incrementalValidation = options.incrementalValidation; |
6316 lint = options.lint; | 6326 lint = options.lint; |
6317 preserveComments = options.preserveComments; | 6327 preserveComments = options.preserveComments; |
| 6328 strongMode = options.strongMode; |
6318 } | 6329 } |
6319 | 6330 |
6320 /** | 6331 /** |
6321 * Initialize a newly created set of analysis options to have the same values | 6332 * Initialize a newly created set of analysis options to have the same values |
6322 * as those in the given set of analysis [options]. | 6333 * as those in the given set of analysis [options]. |
6323 */ | 6334 */ |
6324 AnalysisOptionsImpl.from(AnalysisOptions options) { | 6335 AnalysisOptionsImpl.from(AnalysisOptions options) { |
6325 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; | 6336 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; |
6326 cacheSize = options.cacheSize; | 6337 cacheSize = options.cacheSize; |
6327 dart2jsHint = options.dart2jsHint; | 6338 dart2jsHint = options.dart2jsHint; |
6328 enableStrictCallChecks = options.enableStrictCallChecks; | 6339 enableStrictCallChecks = options.enableStrictCallChecks; |
6329 generateImplicitErrors = options.generateImplicitErrors; | 6340 generateImplicitErrors = options.generateImplicitErrors; |
6330 generateSdkErrors = options.generateSdkErrors; | 6341 generateSdkErrors = options.generateSdkErrors; |
6331 hint = options.hint; | 6342 hint = options.hint; |
6332 incremental = options.incremental; | 6343 incremental = options.incremental; |
6333 incrementalApi = options.incrementalApi; | 6344 incrementalApi = options.incrementalApi; |
6334 incrementalValidation = options.incrementalValidation; | 6345 incrementalValidation = options.incrementalValidation; |
6335 lint = options.lint; | 6346 lint = options.lint; |
6336 preserveComments = options.preserveComments; | 6347 preserveComments = options.preserveComments; |
| 6348 strongMode = options.strongMode; |
6337 } | 6349 } |
6338 | 6350 |
6339 bool get analyzeFunctionBodies { | 6351 bool get analyzeFunctionBodies { |
6340 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { | 6352 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { |
6341 return true; | 6353 return true; |
6342 } else if (identical( | 6354 } else if (identical( |
6343 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { | 6355 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { |
6344 return false; | 6356 return false; |
6345 } else { | 6357 } else { |
6346 throw new StateError('analyzeFunctionBodiesPredicate in use'); | 6358 throw new StateError('analyzeFunctionBodiesPredicate in use'); |
(...skipping 5561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11908 PendingFuture pendingFuture = | 11920 PendingFuture pendingFuture = |
11909 new PendingFuture<T>(_context, source, computeValue); | 11921 new PendingFuture<T>(_context, source, computeValue); |
11910 if (!pendingFuture.evaluate(sourceEntry)) { | 11922 if (!pendingFuture.evaluate(sourceEntry)) { |
11911 _context._pendingFutureSources | 11923 _context._pendingFutureSources |
11912 .putIfAbsent(source, () => <PendingFuture>[]) | 11924 .putIfAbsent(source, () => <PendingFuture>[]) |
11913 .add(pendingFuture); | 11925 .add(pendingFuture); |
11914 } | 11926 } |
11915 return pendingFuture.future; | 11927 return pendingFuture.future; |
11916 } | 11928 } |
11917 } | 11929 } |
OLD | NEW |