| 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine; | 8 library engine; |
| 9 | 9 |
| 10 import "dart:math" as math; | 10 import "dart:math" as math; |
| 11 import 'dart:async'; | 11 import 'dart:async'; |
| 12 import 'dart:collection'; | 12 import 'dart:collection'; |
| 13 | 13 |
| 14 import 'package:analyzer/src/task/task_dart.dart'; | 14 import 'package:analyzer/src/task/task_dart.dart'; |
| 15 | 15 |
| 16 import '../../instrumentation/instrumentation.dart'; |
| 16 import 'ast.dart'; | 17 import 'ast.dart'; |
| 17 import 'constant.dart'; | 18 import 'constant.dart'; |
| 18 import 'element.dart'; | 19 import 'element.dart'; |
| 19 import 'error.dart'; | 20 import 'error.dart'; |
| 20 import 'error_verifier.dart'; | 21 import 'error_verifier.dart'; |
| 21 import 'html.dart' as ht; | 22 import 'html.dart' as ht; |
| 22 import 'incremental_resolver.dart' show IncrementalResolver, | 23 import 'incremental_resolver.dart' show IncrementalResolver, |
| 23 PoorMansIncrementalResolver; | 24 PoorMansIncrementalResolver; |
| 24 import 'incremental_scanner.dart'; | 25 import 'incremental_scanner.dart'; |
| 25 import 'java_core.dart'; | 26 import 'java_core.dart'; |
| (...skipping 6108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6134 buffer.write(", "); | 6135 buffer.write(", "); |
| 6135 } | 6136 } |
| 6136 buffer.write(source.fullName); | 6137 buffer.write(source.fullName); |
| 6137 } | 6138 } |
| 6138 }); | 6139 }); |
| 6139 return needsSeparator || !first; | 6140 return needsSeparator || !first; |
| 6140 } | 6141 } |
| 6141 } | 6142 } |
| 6142 | 6143 |
| 6143 /** | 6144 /** |
| 6144 * The unique instance of the class `AnalysisEngine` serves as the entry point f
or the | 6145 * The unique instance of the class `AnalysisEngine` serves as the entry point |
| 6145 * functionality provided by the analysis engine. | 6146 * for the functionality provided by the analysis engine. |
| 6146 */ | 6147 */ |
| 6147 class AnalysisEngine { | 6148 class AnalysisEngine { |
| 6148 /** | 6149 /** |
| 6149 * The suffix used for Dart source files. | 6150 * The suffix used for Dart source files. |
| 6150 */ | 6151 */ |
| 6151 static String SUFFIX_DART = "dart"; | 6152 static String SUFFIX_DART = "dart"; |
| 6152 | 6153 |
| 6153 /** | 6154 /** |
| 6154 * The short suffix used for HTML files. | 6155 * The short suffix used for HTML files. |
| 6155 */ | 6156 */ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 6171 * @return the unique instance of this class | 6172 * @return the unique instance of this class |
| 6172 */ | 6173 */ |
| 6173 static AnalysisEngine get instance => _UniqueInstance; | 6174 static AnalysisEngine get instance => _UniqueInstance; |
| 6174 | 6175 |
| 6175 /** | 6176 /** |
| 6176 * The logger that should receive information about errors within the analysis
engine. | 6177 * The logger that should receive information about errors within the analysis
engine. |
| 6177 */ | 6178 */ |
| 6178 Logger _logger = Logger.NULL; | 6179 Logger _logger = Logger.NULL; |
| 6179 | 6180 |
| 6180 /** | 6181 /** |
| 6182 * The instrumentation service that is to be used by this analysis engine. |
| 6183 */ |
| 6184 InstrumentationService _instrumentationService = |
| 6185 InstrumentationService.NULL_SERVICE; |
| 6186 |
| 6187 /** |
| 6181 * The partition manager being used to manage the shared partitions. | 6188 * The partition manager being used to manage the shared partitions. |
| 6182 */ | 6189 */ |
| 6183 final PartitionManager partitionManager = new PartitionManager(); | 6190 final PartitionManager partitionManager = new PartitionManager(); |
| 6184 | 6191 |
| 6185 /** | 6192 /** |
| 6186 * A flag indicating whether union types should be used. | 6193 * A flag indicating whether union types should be used. |
| 6187 */ | 6194 */ |
| 6188 bool enableUnionTypes = false; | 6195 bool enableUnionTypes = false; |
| 6189 | 6196 |
| 6190 /** | 6197 /** |
| 6191 * A flag indicating whether union types should have strict semantics. This op
tion has no effect | 6198 * A flag indicating whether union types should have strict semantics. This op
tion has no effect |
| 6192 * when `enabledUnionTypes` is `false`. | 6199 * when `enabledUnionTypes` is `false`. |
| 6193 */ | 6200 */ |
| 6194 bool strictUnionTypes = false; | 6201 bool strictUnionTypes = false; |
| 6195 | 6202 |
| 6196 /** | 6203 /** |
| 6204 * Return the instrumentation service that is to be used by this analysis |
| 6205 * engine. |
| 6206 */ |
| 6207 InstrumentationService get instrumentationService => _instrumentationService; |
| 6208 |
| 6209 /** |
| 6210 * Set the instrumentation service that is to be used by this analysis engine |
| 6211 * to the given [service]. |
| 6212 */ |
| 6213 void set instrumentationService(InstrumentationService service) { |
| 6214 if (service == null) { |
| 6215 _instrumentationService = InstrumentationService.NULL_SERVICE; |
| 6216 } else { |
| 6217 _instrumentationService = service; |
| 6218 } |
| 6219 } |
| 6220 |
| 6221 /** |
| 6197 * Return the logger that should receive information about errors within the a
nalysis engine. | 6222 * Return the logger that should receive information about errors within the a
nalysis engine. |
| 6198 * | 6223 * |
| 6199 * @return the logger that should receive information about errors within the
analysis engine | 6224 * @return the logger that should receive information about errors within the
analysis engine |
| 6200 */ | 6225 */ |
| 6201 Logger get logger => _logger; | 6226 Logger get logger => _logger; |
| 6202 | 6227 |
| 6203 /** | 6228 /** |
| 6204 * Set the logger that should receive information about errors within the anal
ysis engine to the | 6229 * Set the logger that should receive information about errors within the anal
ysis engine to the |
| 6205 * given logger. | 6230 * given logger. |
| 6206 * | 6231 * |
| (...skipping 8132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14339 | 14364 |
| 14340 @override | 14365 @override |
| 14341 Object visitPolymerTagDartElement(PolymerTagDartElement element) { | 14366 Object visitPolymerTagDartElement(PolymerTagDartElement element) { |
| 14342 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { | 14367 if (element.name == PolymerHtmlUnitBuilder_this._elementName) { |
| 14343 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( | 14368 throw new PolymerHtmlUnitBuilder_FoundTagDartElementError( |
| 14344 element as PolymerTagDartElementImpl); | 14369 element as PolymerTagDartElementImpl); |
| 14345 } | 14370 } |
| 14346 return null; | 14371 return null; |
| 14347 } | 14372 } |
| 14348 } | 14373 } |
| OLD | NEW |