Chromium Code Reviews| 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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1040 * Return `true` if analysis is to generate dart2js related hint results. | 1040 * Return `true` if analysis is to generate dart2js related hint results. |
| 1041 */ | 1041 */ |
| 1042 bool get dart2jsHint; | 1042 bool get dart2jsHint; |
| 1043 | 1043 |
| 1044 /** | 1044 /** |
| 1045 * Return `true` to enable custom assert messages (DEP 37). | 1045 * Return `true` to enable custom assert messages (DEP 37). |
| 1046 */ | 1046 */ |
| 1047 bool get enableAssertMessage; | 1047 bool get enableAssertMessage; |
| 1048 | 1048 |
| 1049 /** | 1049 /** |
| 1050 * Return `true` to if analysis is to include async support. | |
|
Brian Wilkerson
2016/01/08 18:43:47
"if analysis is to include" --> "enable"
danrubel
2016/01/08 20:45:51
Done.
| |
| 1051 */ | |
| 1052 bool get enableAsync; | |
| 1053 | |
| 1054 /** | |
| 1050 * Return `true` to enable interface libraries (DEP 40). | 1055 * Return `true` to enable interface libraries (DEP 40). |
| 1051 */ | 1056 */ |
| 1052 bool get enableConditionalDirectives; | 1057 bool get enableConditionalDirectives; |
| 1053 | 1058 |
| 1054 /** | 1059 /** |
| 1055 * Return `true` to enable generic methods (DEP 22). | 1060 * Return `true` to enable generic methods (DEP 22). |
| 1056 */ | 1061 */ |
| 1057 bool get enableGenericMethods => null; | 1062 bool get enableGenericMethods => null; |
| 1058 | 1063 |
| 1059 /** | 1064 /** |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1148 */ | 1153 */ |
| 1149 bool dart2jsHint = false; | 1154 bool dart2jsHint = false; |
| 1150 | 1155 |
| 1151 /** | 1156 /** |
| 1152 * A flag indicating whether custom assert messages are to be supported (DEP | 1157 * A flag indicating whether custom assert messages are to be supported (DEP |
| 1153 * 37). | 1158 * 37). |
| 1154 */ | 1159 */ |
| 1155 bool enableAssertMessage = false; | 1160 bool enableAssertMessage = false; |
| 1156 | 1161 |
| 1157 /** | 1162 /** |
| 1163 * A flag indicating whether analysis is to enable async support. | |
| 1164 */ | |
| 1165 bool enableAsync = true; | |
| 1166 | |
| 1167 /** | |
| 1158 * A flag indicating whether interface libraries are to be supported (DEP 40). | 1168 * A flag indicating whether interface libraries are to be supported (DEP 40). |
| 1159 */ | 1169 */ |
| 1160 bool enableConditionalDirectives = false; | 1170 bool enableConditionalDirectives = false; |
| 1161 | 1171 |
| 1162 /** | 1172 /** |
| 1163 * A flag indicating whether generic methods are to be supported (DEP 22). | 1173 * A flag indicating whether generic methods are to be supported (DEP 22). |
| 1164 */ | 1174 */ |
| 1165 bool enableGenericMethods = false; | 1175 bool enableGenericMethods = false; |
| 1166 | 1176 |
| 1167 /** | 1177 /** |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1242 | 1252 |
| 1243 /** | 1253 /** |
| 1244 * Initialize a newly created set of analysis options to have the same values | 1254 * Initialize a newly created set of analysis options to have the same values |
| 1245 * as those in the given set of analysis [options]. | 1255 * as those in the given set of analysis [options]. |
| 1246 */ | 1256 */ |
| 1247 AnalysisOptionsImpl.from(AnalysisOptions options) { | 1257 AnalysisOptionsImpl.from(AnalysisOptions options) { |
| 1248 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; | 1258 analyzeFunctionBodiesPredicate = options.analyzeFunctionBodiesPredicate; |
| 1249 cacheSize = options.cacheSize; | 1259 cacheSize = options.cacheSize; |
| 1250 dart2jsHint = options.dart2jsHint; | 1260 dart2jsHint = options.dart2jsHint; |
| 1251 enableAssertMessage = options.enableAssertMessage; | 1261 enableAssertMessage = options.enableAssertMessage; |
| 1262 enableAsync = options.enableAsync; | |
| 1252 enableStrictCallChecks = options.enableStrictCallChecks; | 1263 enableStrictCallChecks = options.enableStrictCallChecks; |
| 1253 enableGenericMethods = options.enableGenericMethods; | 1264 enableGenericMethods = options.enableGenericMethods; |
| 1254 enableSuperMixins = options.enableSuperMixins; | 1265 enableSuperMixins = options.enableSuperMixins; |
| 1255 generateImplicitErrors = options.generateImplicitErrors; | 1266 generateImplicitErrors = options.generateImplicitErrors; |
| 1256 generateSdkErrors = options.generateSdkErrors; | 1267 generateSdkErrors = options.generateSdkErrors; |
| 1257 hint = options.hint; | 1268 hint = options.hint; |
| 1258 incremental = options.incremental; | 1269 incremental = options.incremental; |
| 1259 incrementalApi = options.incrementalApi; | 1270 incrementalApi = options.incrementalApi; |
| 1260 incrementalValidation = options.incrementalValidation; | 1271 incrementalValidation = options.incrementalValidation; |
| 1261 lint = options.lint; | 1272 lint = options.lint; |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2408 * The data that was created from the source. | 2419 * The data that was created from the source. |
| 2409 */ | 2420 */ |
| 2410 final E data; | 2421 final E data; |
| 2411 | 2422 |
| 2412 /** | 2423 /** |
| 2413 * Initialize a newly created holder to associate the given [data] with the | 2424 * Initialize a newly created holder to associate the given [data] with the |
| 2414 * given [modificationTime]. | 2425 * given [modificationTime]. |
| 2415 */ | 2426 */ |
| 2416 TimestampedData(this.modificationTime, this.data); | 2427 TimestampedData(this.modificationTime, this.data); |
| 2417 } | 2428 } |
| OLD | NEW |