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 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1184 * analysis. | 1184 * analysis. |
1185 */ | 1185 */ |
1186 bool get incrementalValidation; | 1186 bool get incrementalValidation; |
1187 | 1187 |
1188 /** | 1188 /** |
1189 * Return `true` if analysis is to generate lint warnings. | 1189 * Return `true` if analysis is to generate lint warnings. |
1190 */ | 1190 */ |
1191 bool get lint; | 1191 bool get lint; |
1192 | 1192 |
1193 /** | 1193 /** |
1194 * Return the "platform" bit mask which should be used to apply patch files, | |
1195 * or `0` if no patch files should be applied. | |
1196 */ | |
1197 int get patchPlatform; | |
1198 | |
1199 /** | |
1194 * Return `true` if analysis is to parse comments. | 1200 * Return `true` if analysis is to parse comments. |
1195 */ | 1201 */ |
1196 bool get preserveComments; | 1202 bool get preserveComments; |
1197 | 1203 |
1198 /** | 1204 /** |
1199 * Return `true` if strong mode analysis should be used. | 1205 * Return `true` if strong mode analysis should be used. |
1200 */ | 1206 */ |
1201 bool get strongMode; | 1207 bool get strongMode; |
1202 | 1208 |
1203 /** | 1209 /** |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1301 @override | 1307 @override |
1302 bool incrementalApi = false; | 1308 bool incrementalApi = false; |
1303 | 1309 |
1304 @override | 1310 @override |
1305 bool incrementalValidation = false; | 1311 bool incrementalValidation = false; |
1306 | 1312 |
1307 @override | 1313 @override |
1308 bool lint = false; | 1314 bool lint = false; |
1309 | 1315 |
1310 @override | 1316 @override |
1317 int patchPlatform = 0; | |
1318 | |
1319 @override | |
1311 bool preserveComments = true; | 1320 bool preserveComments = true; |
1312 | 1321 |
1313 @override | 1322 @override |
1314 bool strongMode = false; | 1323 bool strongMode = false; |
1315 | 1324 |
1316 /** | 1325 /** |
1317 * A flag indicating whether strong-mode inference hints should be | 1326 * A flag indicating whether strong-mode inference hints should be |
1318 * used. This flag is not exposed in the interface, and should be | 1327 * used. This flag is not exposed in the interface, and should be |
1319 * replaced by something more general. | 1328 * replaced by something more general. |
1320 */ | 1329 */ |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1388 strongMode = options.strongMode; | 1397 strongMode = options.strongMode; |
1389 if (options is AnalysisOptionsImpl) { | 1398 if (options is AnalysisOptionsImpl) { |
1390 strongModeHints = options.strongModeHints; | 1399 strongModeHints = options.strongModeHints; |
1391 implicitCasts = options.implicitCasts; | 1400 implicitCasts = options.implicitCasts; |
1392 nonnullableTypes = options.nonnullableTypes; | 1401 nonnullableTypes = options.nonnullableTypes; |
1393 implicitDynamic = options.implicitDynamic; | 1402 implicitDynamic = options.implicitDynamic; |
1394 } | 1403 } |
1395 trackCacheDependencies = options.trackCacheDependencies; | 1404 trackCacheDependencies = options.trackCacheDependencies; |
1396 disableCacheFlushing = options.disableCacheFlushing; | 1405 disableCacheFlushing = options.disableCacheFlushing; |
1397 finerGrainedInvalidation = options.finerGrainedInvalidation; | 1406 finerGrainedInvalidation = options.finerGrainedInvalidation; |
1407 patchPlatform = options.patchPlatform; | |
1398 } | 1408 } |
1399 | 1409 |
1400 bool get analyzeFunctionBodies { | 1410 bool get analyzeFunctionBodies { |
1401 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { | 1411 if (identical(analyzeFunctionBodiesPredicate, _analyzeAllFunctionBodies)) { |
1402 return true; | 1412 return true; |
1403 } else if (identical( | 1413 } else if (identical( |
1404 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { | 1414 analyzeFunctionBodiesPredicate, _analyzeNoFunctionBodies)) { |
1405 return false; | 1415 return false; |
1406 } else { | 1416 } else { |
1407 throw new StateError('analyzeFunctionBodiesPredicate in use'); | 1417 throw new StateError('analyzeFunctionBodiesPredicate in use'); |
(...skipping 28 matching lines...) Expand all Loading... | |
1436 | 1446 |
1437 /** | 1447 /** |
1438 * A flag indicating whether interface libraries are to be supported (DEP 40). | 1448 * A flag indicating whether interface libraries are to be supported (DEP 40). |
1439 */ | 1449 */ |
1440 bool get enableConditionalDirectives => true; | 1450 bool get enableConditionalDirectives => true; |
1441 | 1451 |
1442 @deprecated | 1452 @deprecated |
1443 void set enableConditionalDirectives(_) {} | 1453 void set enableConditionalDirectives(_) {} |
1444 | 1454 |
1445 @override | 1455 @override |
1446 int encodeCrossContextOptions() => | 1456 int encodeCrossContextOptions() => |
Brian Wilkerson
2016/11/08 21:24:30
I think this, setCrossContextOptionsFrom, and deco
Paul Berry
2016/11/08 21:56:19
Good catch. As discussed in person, I will addres
| |
1447 (enableAssertMessage ? ENABLE_ASSERT_FLAG : 0) | | 1457 (enableAssertMessage ? ENABLE_ASSERT_FLAG : 0) | |
1448 (enableGenericMethods ? ENABLE_GENERIC_METHODS_FLAG : 0) | | 1458 (enableGenericMethods ? ENABLE_GENERIC_METHODS_FLAG : 0) | |
1449 (enableLazyAssignmentOperators ? ENABLE_LAZY_ASSIGNMENT_OPERATORS : 0) | | 1459 (enableLazyAssignmentOperators ? ENABLE_LAZY_ASSIGNMENT_OPERATORS : 0) | |
1450 (enableStrictCallChecks ? ENABLE_STRICT_CALL_CHECKS_FLAG : 0) | | 1460 (enableStrictCallChecks ? ENABLE_STRICT_CALL_CHECKS_FLAG : 0) | |
1451 (enableSuperMixins ? ENABLE_SUPER_MIXINS_FLAG : 0) | | 1461 (enableSuperMixins ? ENABLE_SUPER_MIXINS_FLAG : 0) | |
1452 (strongMode ? ENABLE_STRONG_MODE_FLAG : 0) | | 1462 (strongMode ? ENABLE_STRONG_MODE_FLAG : 0) | |
1453 (strongModeHints ? ENABLE_STRONG_MODE_HINTS_FLAG : 0); | 1463 (strongModeHints ? ENABLE_STRONG_MODE_HINTS_FLAG : 0); |
1454 | 1464 |
1455 @override | 1465 @override |
1456 void setCrossContextOptionsFrom(AnalysisOptions options) { | 1466 void setCrossContextOptionsFrom(AnalysisOptions options) { |
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2699 * The data that was created from the source. | 2709 * The data that was created from the source. |
2700 */ | 2710 */ |
2701 final E data; | 2711 final E data; |
2702 | 2712 |
2703 /** | 2713 /** |
2704 * Initialize a newly created holder to associate the given [data] with the | 2714 * Initialize a newly created holder to associate the given [data] with the |
2705 * given [modificationTime]. | 2715 * given [modificationTime]. |
2706 */ | 2716 */ |
2707 TimestampedData(this.modificationTime, this.data); | 2717 TimestampedData(this.modificationTime, this.data); |
2708 } | 2718 } |
OLD | NEW |