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 test.operation.queue; | |
6 | |
7 import 'package:analysis_server/src/analysis_server.dart'; | 5 import 'package:analysis_server/src/analysis_server.dart'; |
8 import 'package:analysis_server/src/context_manager.dart'; | 6 import 'package:analysis_server/src/context_manager.dart'; |
9 import 'package:analysis_server/src/operation/operation.dart'; | 7 import 'package:analysis_server/src/operation/operation.dart'; |
10 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 8 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
11 import 'package:analysis_server/src/operation/operation_queue.dart'; | 9 import 'package:analysis_server/src/operation/operation_queue.dart'; |
12 import 'package:analysis_server/src/services/search/search_engine.dart'; | 10 import 'package:analysis_server/src/services/search/search_engine.dart'; |
13 import 'package:analyzer/file_system/file_system.dart'; | 11 import 'package:analyzer/file_system/file_system.dart'; |
14 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
15 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
16 import 'package:test/test.dart'; | 14 import 'package:test/test.dart'; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 @override | 241 @override |
244 ServerOperationPriority get priority { | 242 ServerOperationPriority get priority { |
245 return ServerOperationPriority.ANALYSIS_NOTIFICATION; | 243 return ServerOperationPriority.ANALYSIS_NOTIFICATION; |
246 } | 244 } |
247 | 245 |
248 @override | 246 @override |
249 bool shouldBeDiscardedOnSourceChange(Source source) { | 247 bool shouldBeDiscardedOnSourceChange(Source source) { |
250 return source == this.source; | 248 return source == this.source; |
251 } | 249 } |
252 } | 250 } |
OLD | NEW |