| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analyzer_plugin/protocol/generated_protocol.dart'; | 5 import 'package:analyzer_plugin/protocol/protocol_generated.dart'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * An object that manages the subscriptions for analysis results. | 8 * An object that manages the subscriptions for analysis results. |
| 9 */ | 9 */ |
| 10 class SubscriptionManager { | 10 class SubscriptionManager { |
| 11 /** | 11 /** |
| 12 * The current set of subscriptions. | 12 * The current set of subscriptions. |
| 13 */ | 13 */ |
| 14 Map<AnalysisService, List<String>> _subscriptions; | 14 Map<AnalysisService, List<String>> _subscriptions; |
| 15 | 15 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * Set the current set of subscriptions to those described by the given map of | 38 * Set the current set of subscriptions to those described by the given map of |
| 39 * [subscriptions]. | 39 * [subscriptions]. |
| 40 */ | 40 */ |
| 41 void setSubscriptions(Map<AnalysisService, List<String>> subscriptions) { | 41 void setSubscriptions(Map<AnalysisService, List<String>> subscriptions) { |
| 42 _subscriptions = subscriptions; | 42 _subscriptions = subscriptions; |
| 43 } | 43 } |
| 44 } | 44 } |
| OLD | NEW |