Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 1658663002: Move ResolverProvider to analyzer so that it can be shared (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 context.directory.manager; 5 library context.directory.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:core' hide Resource; 10 import 'dart:core' hide Resource;
11 11
12 import 'package:analysis_server/plugin/analysis/resolver_provider.dart';
13 import 'package:analysis_server/src/analysis_server.dart'; 12 import 'package:analysis_server/src/analysis_server.dart';
14 import 'package:analyzer/file_system/file_system.dart'; 13 import 'package:analyzer/file_system/file_system.dart';
15 import 'package:analyzer/instrumentation/instrumentation.dart'; 14 import 'package:analyzer/instrumentation/instrumentation.dart';
16 import 'package:analyzer/plugin/options.dart'; 15 import 'package:analyzer/plugin/options.dart';
16 import 'package:analyzer/plugin/resolver_provider.dart';
17 import 'package:analyzer/source/analysis_options_provider.dart'; 17 import 'package:analyzer/source/analysis_options_provider.dart';
18 import 'package:analyzer/source/embedder.dart'; 18 import 'package:analyzer/source/embedder.dart';
19 import 'package:analyzer/source/package_map_provider.dart'; 19 import 'package:analyzer/source/package_map_provider.dart';
20 import 'package:analyzer/source/package_map_resolver.dart'; 20 import 'package:analyzer/source/package_map_resolver.dart';
21 import 'package:analyzer/source/path_filter.dart'; 21 import 'package:analyzer/source/path_filter.dart';
22 import 'package:analyzer/source/pub_package_map_provider.dart'; 22 import 'package:analyzer/source/pub_package_map_provider.dart';
23 import 'package:analyzer/source/sdk_ext.dart'; 23 import 'package:analyzer/source/sdk_ext.dart';
24 import 'package:analyzer/src/context/context.dart' as context; 24 import 'package:analyzer/src/context/context.dart' as context;
25 import 'package:analyzer/src/generated/engine.dart'; 25 import 'package:analyzer/src/generated/engine.dart';
26 import 'package:analyzer/src/generated/java_engine.dart'; 26 import 'package:analyzer/src/generated/java_engine.dart';
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 ResourceProvider resourceProvider) { 1590 ResourceProvider resourceProvider) {
1591 if (packages != null) { 1591 if (packages != null) {
1592 // Construct package map for the SdkExtUriResolver. 1592 // Construct package map for the SdkExtUriResolver.
1593 Map<String, List<Folder>> packageMap = buildPackageMap(resourceProvider); 1593 Map<String, List<Folder>> packageMap = buildPackageMap(resourceProvider);
1594 return <UriResolver>[new SdkExtUriResolver(packageMap)]; 1594 return <UriResolver>[new SdkExtUriResolver(packageMap)];
1595 } else { 1595 } else {
1596 return const <UriResolver>[]; 1596 return const <UriResolver>[];
1597 } 1597 }
1598 } 1598 }
1599 } 1599 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698