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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1053 * Return `true` to enable custom assert messages (DEP 37). | 1053 * Return `true` to enable custom assert messages (DEP 37). |
1054 */ | 1054 */ |
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). | |
1064 */ | |
1065 bool get enableConditionalDirectives; | |
Brian Wilkerson
2016/04/01 22:59:38
To avoid a breaking change, this should not be del
floitsch
2016/04/13 14:50:00
Done.
| |
1066 | |
1067 /** | |
1068 * Return `true` to enable generic methods (DEP 22). | 1063 * Return `true` to enable generic methods (DEP 22). |
1069 */ | 1064 */ |
1070 bool get enableGenericMethods => null; | 1065 bool get enableGenericMethods => null; |
1071 | 1066 |
1072 /** | 1067 /** |
1073 * Return `true` to strictly follow the specification when generating | 1068 * Return `true` to strictly follow the specification when generating |
1074 * warnings on "call" methods (fixes dartbug.com/21938). | 1069 * warnings on "call" methods (fixes dartbug.com/21938). |
1075 */ | 1070 */ |
1076 bool get enableStrictCallChecks; | 1071 bool get enableStrictCallChecks; |
1077 | 1072 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1192 * 37). | 1187 * 37). |
1193 */ | 1188 */ |
1194 bool enableAssertMessage = false; | 1189 bool enableAssertMessage = false; |
1195 | 1190 |
1196 /** | 1191 /** |
1197 * A flag indicating whether analysis is to enable async support. | 1192 * A flag indicating whether analysis is to enable async support. |
1198 */ | 1193 */ |
1199 bool enableAsync = true; | 1194 bool enableAsync = true; |
1200 | 1195 |
1201 /** | 1196 /** |
1202 * A flag indicating whether interface libraries are to be supported (DEP 40). | |
1203 */ | |
1204 bool enableConditionalDirectives = false; | |
Brian Wilkerson
2016/04/01 22:59:38
This should be replaced by a deprecated getter tha
floitsch
2016/04/13 14:50:00
Done.
| |
1205 | |
1206 /** | |
1207 * A flag indicating whether generic methods are to be supported (DEP 22). | 1197 * A flag indicating whether generic methods are to be supported (DEP 22). |
1208 */ | 1198 */ |
1209 bool enableGenericMethods = false; | 1199 bool enableGenericMethods = false; |
1210 | 1200 |
1211 /** | 1201 /** |
1212 * A flag indicating whether analysis is to strictly follow the specification | 1202 * A flag indicating whether analysis is to strictly follow the specification |
1213 * when generating warnings on "call" methods (fixes dartbug.com/21938). | 1203 * when generating warnings on "call" methods (fixes dartbug.com/21938). |
1214 */ | 1204 */ |
1215 bool enableStrictCallChecks = false; | 1205 bool enableStrictCallChecks = false; |
1216 | 1206 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1290 /** | 1280 /** |
1291 * Initialize a newly created set of analysis options to have the same values | 1281 * Initialize a newly created set of analysis options to have the same values |
1292 * as those in the given set of analysis [options]. | 1282 * as those in the given set of analysis [options]. |
1293 */ | 1283 */ |
1294 AnalysisOptionsImpl.from(AnalysisOptions options) { | 1284 AnalysisOptionsImpl.from(AnalysisOptions options) { |
1295 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; | 1285 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; |
1296 cacheSize = options.cacheSize; | 1286 cacheSize = options.cacheSize; |
1297 dart2jsHint = options.dart2jsHint; | 1287 dart2jsHint = options.dart2jsHint; |
1298 enableAssertMessage = options.enableAssertMessage; | 1288 enableAssertMessage = options.enableAssertMessage; |
1299 enableAsync = options.enableAsync; | 1289 enableAsync = options.enableAsync; |
1300 enableConditionalDirectives = options.enableConditionalDirectives; | |
1301 enableStrictCallChecks = options.enableStrictCallChecks; | 1290 enableStrictCallChecks = options.enableStrictCallChecks; |
1302 enableGenericMethods = options.enableGenericMethods; | 1291 enableGenericMethods = options.enableGenericMethods; |
1303 enableSuperMixins = options.enableSuperMixins; | 1292 enableSuperMixins = options.enableSuperMixins; |
1304 enableTiming = options.enableTiming; | 1293 enableTiming = options.enableTiming; |
1305 generateImplicitErrors = options.generateImplicitErrors; | 1294 generateImplicitErrors = options.generateImplicitErrors; |
1306 generateSdkErrors = options.generateSdkErrors; | 1295 generateSdkErrors = options.generateSdkErrors; |
1307 hint = options.hint; | 1296 hint = options.hint; |
1308 incremental = options.incremental; | 1297 incremental = options.incremental; |
1309 incrementalApi = options.incrementalApi; | 1298 incrementalApi = options.incrementalApi; |
1310 incrementalValidation = options.incrementalValidation; | 1299 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. | 2537 * The data that was created from the source. |
2549 */ | 2538 */ |
2550 final E data; | 2539 final E data; |
2551 | 2540 |
2552 /** | 2541 /** |
2553 * Initialize a newly created holder to associate the given [data] with the | 2542 * Initialize a newly created holder to associate the given [data] with the |
2554 * given [modificationTime]. | 2543 * given [modificationTime]. |
2555 */ | 2544 */ |
2556 TimestampedData(this.modificationTime, this.data); | 2545 TimestampedData(this.modificationTime, this.data); |
2557 } | 2546 } |
OLD | NEW |