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'; |
11 import 'package:analyzer/dart/ast/visitor.dart'; | 11 import 'package:analyzer/dart/ast/visitor.dart'; |
12 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
13 import 'package:analyzer/error/error.dart'; | 13 import 'package:analyzer/error/error.dart'; |
14 import 'package:analyzer/exception/exception.dart'; | 14 import 'package:analyzer/exception/exception.dart'; |
15 import 'package:analyzer/instrumentation/instrumentation.dart'; | 15 import 'package:analyzer/instrumentation/instrumentation.dart'; |
16 import 'package:analyzer/plugin/resolver_provider.dart'; | 16 import 'package:analyzer/plugin/resolver_provider.dart'; |
17 import 'package:analyzer/source/error_processor.dart'; | 17 import 'package:analyzer/source/error_processor.dart'; |
18 import 'package:analyzer/src/cancelable_future.dart'; | 18 import 'package:analyzer/src/cancelable_future.dart'; |
19 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator; | 19 import 'package:analyzer/src/context/builder.dart' show EmbedderYamlLocator; |
20 import 'package:analyzer/src/context/cache.dart'; | 20 import 'package:analyzer/src/context/cache.dart'; |
21 import 'package:analyzer/src/context/context.dart'; | 21 import 'package:analyzer/src/context/context.dart'; |
22 import 'package:analyzer/src/generated/constant.dart'; | 22 import 'package:analyzer/src/generated/constant.dart'; |
23 import 'package:analyzer/src/generated/java_engine.dart'; | 23 import 'package:analyzer/src/generated/java_engine.dart'; |
24 import 'package:analyzer/src/generated/resolver.dart'; | 24 import 'package:analyzer/src/generated/resolver.dart'; |
25 import 'package:analyzer/src/generated/source.dart'; | 25 import 'package:analyzer/src/generated/source.dart'; |
26 import 'package:analyzer/src/generated/utilities_general.dart'; | 26 import 'package:analyzer/src/generated/utilities_general.dart'; |
27 import 'package:analyzer/src/plugin/command_line_plugin.dart'; | 27 import 'package:analyzer/src/plugin/command_line_plugin.dart'; |
28 import 'package:analyzer/src/plugin/engine_plugin.dart'; | 28 import 'package:analyzer/src/plugin/engine_plugin.dart'; |
29 import 'package:analyzer/src/plugin/options_plugin.dart'; | |
30 import 'package:analyzer/src/services/lint.dart'; | 29 import 'package:analyzer/src/services/lint.dart'; |
31 import 'package:analyzer/src/task/manager.dart'; | 30 import 'package:analyzer/src/task/manager.dart'; |
32 import 'package:analyzer/task/dart.dart'; | 31 import 'package:analyzer/task/dart.dart'; |
33 import 'package:analyzer/task/model.dart'; | 32 import 'package:analyzer/task/model.dart'; |
34 import 'package:front_end/src/base/timestamped_data.dart'; | 33 import 'package:front_end/src/base/timestamped_data.dart'; |
35 import 'package:html/dom.dart' show Document; | 34 import 'package:html/dom.dart' show Document; |
36 import 'package:path/path.dart' as pathos; | 35 import 'package:path/path.dart' as pathos; |
37 import 'package:plugin/manager.dart'; | 36 import 'package:plugin/manager.dart'; |
38 import 'package:plugin/plugin.dart'; | 37 import 'package:plugin/plugin.dart'; |
39 | 38 |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 * command-line applications using the analysis engine. | 760 * command-line applications using the analysis engine. |
762 */ | 761 */ |
763 final CommandLinePlugin commandLinePlugin = new CommandLinePlugin(); | 762 final CommandLinePlugin commandLinePlugin = new CommandLinePlugin(); |
764 | 763 |
765 /** | 764 /** |
766 * The plugin that defines the extension points and extensions that are | 765 * The plugin that defines the extension points and extensions that are |
767 * inherently defined by the analysis engine. | 766 * inherently defined by the analysis engine. |
768 */ | 767 */ |
769 final EnginePlugin enginePlugin = new EnginePlugin(); | 768 final EnginePlugin enginePlugin = new EnginePlugin(); |
770 | 769 |
771 /*** | |
772 * The plugin that defines the extension points and extensions that are define
d | |
773 * by applications that want to consume options defined in the analysis | |
774 * options file. | |
775 */ | |
776 final OptionsPlugin optionsPlugin = new OptionsPlugin(); | |
777 | |
778 /** | 770 /** |
779 * The instrumentation service that is to be used by this analysis engine. | 771 * The instrumentation service that is to be used by this analysis engine. |
780 */ | 772 */ |
781 InstrumentationService _instrumentationService = | 773 InstrumentationService _instrumentationService = |
782 InstrumentationService.NULL_SERVICE; | 774 InstrumentationService.NULL_SERVICE; |
783 | 775 |
784 /** | 776 /** |
785 * The partition manager being used to manage the shared partitions. | 777 * The partition manager being used to manage the shared partitions. |
786 */ | 778 */ |
787 final PartitionManager partitionManager = new PartitionManager(); | 779 final PartitionManager partitionManager = new PartitionManager(); |
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2837 */ | 2829 */ |
2838 bool get wereSourcesAdded => _changeSet.addedSources.length > 0; | 2830 bool get wereSourcesAdded => _changeSet.addedSources.length > 0; |
2839 | 2831 |
2840 /** | 2832 /** |
2841 * Return `true` if any sources were removed or deleted. | 2833 * Return `true` if any sources were removed or deleted. |
2842 */ | 2834 */ |
2843 bool get wereSourcesRemoved => | 2835 bool get wereSourcesRemoved => |
2844 _changeSet.removedSources.length > 0 || | 2836 _changeSet.removedSources.length > 0 || |
2845 _changeSet.removedContainers.length > 0; | 2837 _changeSet.removedContainers.length > 0; |
2846 } | 2838 } |
OLD | NEW |