servicesForFile method

List<AnalysisService> servicesForFile(
  1. String filePath
)

Return a list of the services for which the file with the given filePath has been subscribed.

Implementation

List<AnalysisService> servicesForFile(String filePath) {
  var services = <AnalysisService>[];
  var subscriptions = _subscriptions;
  if (subscriptions != null) {
    subscriptions.forEach((AnalysisService service, List<String> files) {
      if (files.contains(filePath)) {
        services.add(service);
      }
    });
  }
  return services;
}