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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 bool get enableAssertMessage; | 1055 bool get enableAssertMessage; |
1056 | 1056 |
1057 /** | 1057 /** |
1058 * Return `true` to if analysis is to enable async support. | 1058 * Return `true` to if analysis is to enable async support. |
1059 */ | 1059 */ |
1060 bool get enableAsync; | 1060 bool get enableAsync; |
1061 | 1061 |
1062 /** | 1062 /** |
1063 * Return `true` to enable interface libraries (DEP 40). | 1063 * Return `true` to enable interface libraries (DEP 40). |
1064 */ | 1064 */ |
| 1065 @deprecated |
1065 bool get enableConditionalDirectives; | 1066 bool get enableConditionalDirectives; |
1066 | 1067 |
1067 /** | 1068 /** |
1068 * Return `true` to enable generic methods (DEP 22). | 1069 * Return `true` to enable generic methods (DEP 22). |
1069 */ | 1070 */ |
1070 bool get enableGenericMethods => null; | 1071 bool get enableGenericMethods => null; |
1071 | 1072 |
1072 /** | 1073 /** |
1073 * Return `true` to strictly follow the specification when generating | 1074 * Return `true` to strictly follow the specification when generating |
1074 * warnings on "call" methods (fixes dartbug.com/21938). | 1075 * warnings on "call" methods (fixes dartbug.com/21938). |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 bool enableAssertMessage = false; | 1195 bool enableAssertMessage = false; |
1195 | 1196 |
1196 /** | 1197 /** |
1197 * A flag indicating whether analysis is to enable async support. | 1198 * A flag indicating whether analysis is to enable async support. |
1198 */ | 1199 */ |
1199 bool enableAsync = true; | 1200 bool enableAsync = true; |
1200 | 1201 |
1201 /** | 1202 /** |
1202 * A flag indicating whether interface libraries are to be supported (DEP 40). | 1203 * A flag indicating whether interface libraries are to be supported (DEP 40). |
1203 */ | 1204 */ |
1204 bool enableConditionalDirectives = false; | 1205 bool get enableConditionalDirectives => true; |
| 1206 |
| 1207 @deprecated |
| 1208 void set enableConditionalDirectives(_) {} |
1205 | 1209 |
1206 /** | 1210 /** |
1207 * A flag indicating whether generic methods are to be supported (DEP 22). | 1211 * A flag indicating whether generic methods are to be supported (DEP 22). |
1208 */ | 1212 */ |
1209 bool enableGenericMethods = false; | 1213 bool enableGenericMethods = false; |
1210 | 1214 |
1211 /** | 1215 /** |
1212 * A flag indicating whether analysis is to strictly follow the specification | 1216 * A flag indicating whether analysis is to strictly follow the specification |
1213 * when generating warnings on "call" methods (fixes dartbug.com/21938). | 1217 * when generating warnings on "call" methods (fixes dartbug.com/21938). |
1214 */ | 1218 */ |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 /** | 1294 /** |
1291 * Initialize a newly created set of analysis options to have the same values | 1295 * Initialize a newly created set of analysis options to have the same values |
1292 * as those in the given set of analysis [options]. | 1296 * as those in the given set of analysis [options]. |
1293 */ | 1297 */ |
1294 AnalysisOptionsImpl.from(AnalysisOptions options) { | 1298 AnalysisOptionsImpl.from(AnalysisOptions options) { |
1295 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; | 1299 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; |
1296 cacheSize = options.cacheSize; | 1300 cacheSize = options.cacheSize; |
1297 dart2jsHint = options.dart2jsHint; | 1301 dart2jsHint = options.dart2jsHint; |
1298 enableAssertMessage = options.enableAssertMessage; | 1302 enableAssertMessage = options.enableAssertMessage; |
1299 enableAsync = options.enableAsync; | 1303 enableAsync = options.enableAsync; |
1300 enableConditionalDirectives = options.enableConditionalDirectives; | |
1301 enableStrictCallChecks = options.enableStrictCallChecks; | 1304 enableStrictCallChecks = options.enableStrictCallChecks; |
1302 enableGenericMethods = options.enableGenericMethods; | 1305 enableGenericMethods = options.enableGenericMethods; |
1303 enableSuperMixins = options.enableSuperMixins; | 1306 enableSuperMixins = options.enableSuperMixins; |
1304 enableTiming = options.enableTiming; | 1307 enableTiming = options.enableTiming; |
1305 generateImplicitErrors = options.generateImplicitErrors; | 1308 generateImplicitErrors = options.generateImplicitErrors; |
1306 generateSdkErrors = options.generateSdkErrors; | 1309 generateSdkErrors = options.generateSdkErrors; |
1307 hint = options.hint; | 1310 hint = options.hint; |
1308 incremental = options.incremental; | 1311 incremental = options.incremental; |
1309 incrementalApi = options.incrementalApi; | 1312 incrementalApi = options.incrementalApi; |
1310 incrementalValidation = options.incrementalValidation; | 1313 incrementalValidation = options.incrementalValidation; |
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2548 * The data that was created from the source. | 2551 * The data that was created from the source. |
2549 */ | 2552 */ |
2550 final E data; | 2553 final E data; |
2551 | 2554 |
2552 /** | 2555 /** |
2553 * Initialize a newly created holder to associate the given [data] with the | 2556 * Initialize a newly created holder to associate the given [data] with the |
2554 * given [modificationTime]. | 2557 * given [modificationTime]. |
2555 */ | 2558 */ |
2556 TimestampedData(this.modificationTime, this.data); | 2559 TimestampedData(this.modificationTime, this.data); |
2557 } | 2560 } |
OLD | NEW |