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 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 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 */ | 1075 */ |
1076 bool get enableStrictCallChecks; | 1076 bool get enableStrictCallChecks; |
1077 | 1077 |
1078 /** | 1078 /** |
1079 * Return `true` if mixins are allowed to inherit from types other than | 1079 * Return `true` if mixins are allowed to inherit from types other than |
1080 * Object, and are allowed to reference `super`. | 1080 * Object, and are allowed to reference `super`. |
1081 */ | 1081 */ |
1082 bool get enableSuperMixins; | 1082 bool get enableSuperMixins; |
1083 | 1083 |
1084 /** | 1084 /** |
| 1085 * Return `true` if timing data should be gathered during execution. |
| 1086 */ |
| 1087 bool get enableTiming; |
| 1088 |
| 1089 /** |
1085 * Return `true` if errors, warnings and hints should be generated for sources | 1090 * Return `true` if errors, warnings and hints should be generated for sources |
1086 * that are implicitly being analyzed. The default value is `true`. | 1091 * that are implicitly being analyzed. The default value is `true`. |
1087 */ | 1092 */ |
1088 bool get generateImplicitErrors; | 1093 bool get generateImplicitErrors; |
1089 | 1094 |
1090 /** | 1095 /** |
1091 * Return `true` if errors, warnings and hints should be generated for sources | 1096 * Return `true` if errors, warnings and hints should be generated for sources |
1092 * in the SDK. The default value is `false`. | 1097 * in the SDK. The default value is `false`. |
1093 */ | 1098 */ |
1094 bool get generateSdkErrors; | 1099 bool get generateSdkErrors; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 * when generating warnings on "call" methods (fixes dartbug.com/21938). | 1213 * when generating warnings on "call" methods (fixes dartbug.com/21938). |
1209 */ | 1214 */ |
1210 bool enableStrictCallChecks = false; | 1215 bool enableStrictCallChecks = false; |
1211 | 1216 |
1212 /** | 1217 /** |
1213 * A flag indicating whether mixins are allowed to inherit from types other | 1218 * A flag indicating whether mixins are allowed to inherit from types other |
1214 * than Object, and are allowed to reference `super`. | 1219 * than Object, and are allowed to reference `super`. |
1215 */ | 1220 */ |
1216 bool enableSuperMixins = false; | 1221 bool enableSuperMixins = false; |
1217 | 1222 |
| 1223 @override |
| 1224 bool enableTiming = false; |
| 1225 |
1218 /** | 1226 /** |
1219 * A flag indicating whether errors, warnings and hints should be generated | 1227 * A flag indicating whether errors, warnings and hints should be generated |
1220 * for sources that are implicitly being analyzed. | 1228 * for sources that are implicitly being analyzed. |
1221 */ | 1229 */ |
1222 bool generateImplicitErrors = true; | 1230 bool generateImplicitErrors = true; |
1223 | 1231 |
1224 /** | 1232 /** |
1225 * A flag indicating whether errors, warnings and hints should be generated | 1233 * A flag indicating whether errors, warnings and hints should be generated |
1226 * for sources in the SDK. | 1234 * for sources in the SDK. |
1227 */ | 1235 */ |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 AnalysisOptionsImpl.from(AnalysisOptions options) { | 1294 AnalysisOptionsImpl.from(AnalysisOptions options) { |
1287 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; | 1295 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; |
1288 cacheSize = options.cacheSize; | 1296 cacheSize = options.cacheSize; |
1289 dart2jsHint = options.dart2jsHint; | 1297 dart2jsHint = options.dart2jsHint; |
1290 enableAssertMessage = options.enableAssertMessage; | 1298 enableAssertMessage = options.enableAssertMessage; |
1291 enableAsync = options.enableAsync; | 1299 enableAsync = options.enableAsync; |
1292 enableConditionalDirectives = options.enableConditionalDirectives; | 1300 enableConditionalDirectives = options.enableConditionalDirectives; |
1293 enableStrictCallChecks = options.enableStrictCallChecks; | 1301 enableStrictCallChecks = options.enableStrictCallChecks; |
1294 enableGenericMethods = options.enableGenericMethods; | 1302 enableGenericMethods = options.enableGenericMethods; |
1295 enableSuperMixins = options.enableSuperMixins; | 1303 enableSuperMixins = options.enableSuperMixins; |
| 1304 enableTiming = options.enableTiming; |
1296 generateImplicitErrors = options.generateImplicitErrors; | 1305 generateImplicitErrors = options.generateImplicitErrors; |
1297 generateSdkErrors = options.generateSdkErrors; | 1306 generateSdkErrors = options.generateSdkErrors; |
1298 hint = options.hint; | 1307 hint = options.hint; |
1299 incremental = options.incremental; | 1308 incremental = options.incremental; |
1300 incrementalApi = options.incrementalApi; | 1309 incrementalApi = options.incrementalApi; |
1301 incrementalValidation = options.incrementalValidation; | 1310 incrementalValidation = options.incrementalValidation; |
1302 lint = options.lint; | 1311 lint = options.lint; |
1303 preserveComments = options.preserveComments; | 1312 preserveComments = options.preserveComments; |
1304 strongMode = options.strongMode; | 1313 strongMode = options.strongMode; |
1305 if (options is AnalysisOptionsImpl) { | 1314 if (options is AnalysisOptionsImpl) { |
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2539 * The data that was created from the source. | 2548 * The data that was created from the source. |
2540 */ | 2549 */ |
2541 final E data; | 2550 final E data; |
2542 | 2551 |
2543 /** | 2552 /** |
2544 * Initialize a newly created holder to associate the given [data] with the | 2553 * Initialize a newly created holder to associate the given [data] with the |
2545 * given [modificationTime]. | 2554 * given [modificationTime]. |
2546 */ | 2555 */ |
2547 TimestampedData(this.modificationTime, this.data); | 2556 TimestampedData(this.modificationTime, this.data); |
2548 } | 2557 } |
OLD | NEW |