| OLD | NEW |
| 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 domain.completion; | 5 library domain.completion; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
| 10 import 'package:analysis_server/src/constants.dart'; | 10 import 'package:analysis_server/src/constants.dart'; |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 } | 258 } |
| 259 | 259 |
| 260 /** | 260 /** |
| 261 * Discard the sourcesChanged subscription if any | 261 * Discard the sourcesChanged subscription if any |
| 262 */ | 262 */ |
| 263 void _discardManager() { | 263 void _discardManager() { |
| 264 if (_sourcesChangedSubscription != null) { | 264 if (_sourcesChangedSubscription != null) { |
| 265 _sourcesChangedSubscription.cancel(); | 265 _sourcesChangedSubscription.cancel(); |
| 266 _sourcesChangedSubscription = null; | 266 _sourcesChangedSubscription = null; |
| 267 } | 267 } |
| 268 _manager = null; | 268 if (_manager != null) { |
| 269 _manager.dispose(); |
| 270 _manager = null; |
| 271 } |
| 269 } | 272 } |
| 270 } | 273 } |
| OLD | NEW |