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

Unified Diff: pkg/analyzer_cli/lib/starter.dart

Issue 1666573006: Hooks for injecting embedder resolver providers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer_cli/lib/src/driver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/starter.dart
diff --git a/pkg/analyzer_cli/lib/starter.dart b/pkg/analyzer_cli/lib/starter.dart
index a784a754f4e01d9bd9bf2243b52268105e29455e..e42d39a36d79db8099b4c8400752b40ec5eb59c5 100644
--- a/pkg/analyzer_cli/lib/starter.dart
+++ b/pkg/analyzer_cli/lib/starter.dart
@@ -4,6 +4,7 @@
library analyzer_cli.starter;
+import 'package:analyzer/plugin/embedded_resolver_provider.dart';
import 'package:analyzer/plugin/resolver_provider.dart';
import 'package:analyzer_cli/src/driver.dart';
import 'package:plugin/plugin.dart';
@@ -22,6 +23,14 @@ abstract class CommandLineStarter {
factory CommandLineStarter() = Driver;
/**
+ * Set the embedded resolver provider used to override the way embedded
+ * library URI's are resolved in some contexts. The provider should return
+ * `null` if the embedded library URI resolution scheme should be used
+ * instead.
+ */
+ void set embeddedUriResolverProvider(EmbeddedResolverProvider provider);
+
+ /**
* Set the package resolver provider used to override the way package URI's
* are resolved in some contexts. The provider should return `null` if the
* default package resolution scheme should be used instead.
« no previous file with comments | « pkg/analyzer_cli/lib/src/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698