| 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 test.context.directory.manager; | 5 library test.context.directory.manager; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/context_manager.dart'; | 9 import 'package:analysis_server/src/context_manager.dart'; |
| 10 import 'package:analysis_server/src/utilities/null_string_sink.dart'; | 10 import 'package:analysis_server/src/utilities/null_string_sink.dart'; |
| (...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 String newFolder(List<String> pathComponents) { | 1791 String newFolder(List<String> pathComponents) { |
| 1792 String folderPath = path.posix.joinAll(pathComponents); | 1792 String folderPath = path.posix.joinAll(pathComponents); |
| 1793 resourceProvider.newFolder(folderPath); | 1793 resourceProvider.newFolder(folderPath); |
| 1794 return folderPath; | 1794 return folderPath; |
| 1795 } | 1795 } |
| 1796 | 1796 |
| 1797 void processRequiredPlugins() { | 1797 void processRequiredPlugins() { |
| 1798 List<Plugin> plugins = <Plugin>[]; | 1798 List<Plugin> plugins = <Plugin>[]; |
| 1799 plugins.addAll(AnalysisEngine.instance.requiredPlugins); | 1799 plugins.addAll(AnalysisEngine.instance.requiredPlugins); |
| 1800 plugins.add(AnalysisEngine.instance.commandLinePlugin); | 1800 plugins.add(AnalysisEngine.instance.commandLinePlugin); |
| 1801 plugins.add(AnalysisEngine.instance.optionsPlugin); | |
| 1802 ExtensionManager manager = new ExtensionManager(); | 1801 ExtensionManager manager = new ExtensionManager(); |
| 1803 manager.processPlugins(plugins); | 1802 manager.processPlugins(plugins); |
| 1804 | 1803 |
| 1805 registerLintRules(); | 1804 registerLintRules(); |
| 1806 } | 1805 } |
| 1807 | 1806 |
| 1808 UriResolver providePackageResolver(Folder folder) => packageResolver; | 1807 UriResolver providePackageResolver(Folder folder) => packageResolver; |
| 1809 | 1808 |
| 1810 void setUp() { | 1809 void setUp() { |
| 1811 processRequiredPlugins(); | 1810 processRequiredPlugins(); |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2826 class TestUriResolver extends UriResolver { | 2825 class TestUriResolver extends UriResolver { |
| 2827 Map<Uri, Source> uriMap; | 2826 Map<Uri, Source> uriMap; |
| 2828 | 2827 |
| 2829 TestUriResolver(this.uriMap); | 2828 TestUriResolver(this.uriMap); |
| 2830 | 2829 |
| 2831 @override | 2830 @override |
| 2832 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 2831 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
| 2833 return uriMap[uri]; | 2832 return uriMap[uri]; |
| 2834 } | 2833 } |
| 2835 } | 2834 } |
| OLD | NEW |