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 operation; | |
6 | |
7 import 'package:analysis_server/src/analysis_server.dart'; | 5 import 'package:analysis_server/src/analysis_server.dart'; |
8 import 'package:analyzer/src/generated/engine.dart'; | 6 import 'package:analyzer/src/generated/engine.dart'; |
9 import 'package:analyzer/src/generated/source.dart'; | 7 import 'package:analyzer/src/generated/source.dart'; |
10 | 8 |
11 /** | 9 /** |
12 * [MergeableOperation] can decide whether other operation can be merged into | 10 * [MergeableOperation] can decide whether other operation can be merged into |
13 * it, so that it should not be added as a separate operation. | 11 * it, so that it should not be added as a separate operation. |
14 */ | 12 */ |
15 abstract class MergeableOperation extends ServerOperation { | 13 abstract class MergeableOperation extends ServerOperation { |
16 MergeableOperation(AnalysisContext context) : super(context); | 14 MergeableOperation(AnalysisContext context) : super(context); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 */ | 86 */ |
89 abstract class SourceSensitiveOperation extends ServerOperation { | 87 abstract class SourceSensitiveOperation extends ServerOperation { |
90 SourceSensitiveOperation(AnalysisContext context) : super(context); | 88 SourceSensitiveOperation(AnalysisContext context) : super(context); |
91 | 89 |
92 /** | 90 /** |
93 * The given [source] is about to be changed. | 91 * The given [source] is about to be changed. |
94 * Check if this [SourceSensitiveOperation] should be discarded. | 92 * Check if this [SourceSensitiveOperation] should be discarded. |
95 */ | 93 */ |
96 bool shouldBeDiscardedOnSourceChange(Source source); | 94 bool shouldBeDiscardedOnSourceChange(Source source); |
97 } | 95 } |
OLD | NEW |