| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 /** | 51 /** |
| 52 * A list of code completion peformance measurements for the latest | 52 * A list of code completion peformance measurements for the latest |
| 53 * completion operation up to [performanceListMaxLength] measurements. | 53 * completion operation up to [performanceListMaxLength] measurements. |
| 54 */ | 54 */ |
| 55 final List<CompletionPerformance> performanceList = | 55 final List<CompletionPerformance> performanceList = |
| 56 new List<CompletionPerformance>(); | 56 new List<CompletionPerformance>(); |
| 57 | 57 |
| 58 /** | 58 /** |
| 59 * The maximum number of performance measurements to keep. | 59 * The maximum number of performance measurements to keep. |
| 60 */ | 60 */ |
| 61 static const int performanceListMaxLength = 50; | 61 static const int performanceListMaxLength = 0; |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * Performance for the last priority change event. | 64 * Performance for the last priority change event. |
| 65 */ | 65 */ |
| 66 CompletionPerformance priorityChangedPerformance; | 66 CompletionPerformance priorityChangedPerformance; |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * Initialize a new request handler for the given [server]. | 69 * Initialize a new request handler for the given [server]. |
| 70 */ | 70 */ |
| 71 CompletionDomainHandler(this.server) { | 71 CompletionDomainHandler(this.server) { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 if (_sourcesChangedSubscription != null) { | 267 if (_sourcesChangedSubscription != null) { |
| 268 _sourcesChangedSubscription.cancel(); | 268 _sourcesChangedSubscription.cancel(); |
| 269 _sourcesChangedSubscription = null; | 269 _sourcesChangedSubscription = null; |
| 270 } | 270 } |
| 271 if (_manager != null) { | 271 if (_manager != null) { |
| 272 _manager.dispose(); | 272 _manager.dispose(); |
| 273 _manager = null; | 273 _manager = null; |
| 274 } | 274 } |
| 275 } | 275 } |
| 276 } | 276 } |
| OLD | NEW |