Index: pkg/analysis_server/lib/plugin/analyzed_files.dart |
diff --git a/pkg/analysis_server/lib/plugin/analyzed_files.dart b/pkg/analysis_server/lib/plugin/analyzed_files.dart |
index 12c921469c8feca910f5f63301913e576405ff8d..7eda12c262d8fc3f1176cf32264914c0b9ee38dd 100644 |
--- a/pkg/analysis_server/lib/plugin/analyzed_files.dart |
+++ b/pkg/analysis_server/lib/plugin/analyzed_files.dart |
@@ -11,6 +11,20 @@ |
* The analysis server will invoke the contributed functions and analyze the |
* file if at least one of the functions returns `true`. (The server is not |
* required to invoke every function with every file.) |
+ * |
+ * If a plugin is interested in analyzing a certain kind of files, it needs to |
+ * ensure that files of that kind will be analyzed. It should register a |
+ * function by including code like the following in the plugin's |
+ * registerExtensions method: |
+ * |
+ * @override |
+ * void registerExtensions(RegisterExtension registerExtension) { |
+ * ... |
+ * registerExtension( |
+ * ANALYZE_FILE_EXTENSION_POINT_ID, |
+ * (File file) => file.path.endsWith(...)); |
+ * ... |
+ * } |
*/ |
library analysis_server.plugin.analyzed_files; |