Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(605)

Unified Diff: pkg/analyzer/lib/task/model.dart

Issue 2005403005: Gather and report stats on the number of times flushed results are recomputed (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/lib/src/context/cache.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/task/model.dart
diff --git a/pkg/analyzer/lib/task/model.dart b/pkg/analyzer/lib/task/model.dart
index 557a763d7a4993226327fefd71a2b54d322eb0ab..dd1062fc9f067fe46da68cdb94428656c1d56b27 100644
--- a/pkg/analyzer/lib/task/model.dart
+++ b/pkg/analyzer/lib/task/model.dart
@@ -457,6 +457,13 @@ abstract class ResultCachingPolicy<T> {
*/
abstract class ResultDescriptor<V> {
/**
+ * A comparator that can be used to sort result descriptors by their name.
+ */
+ static final Comparator<ResultDescriptor> SORT_BY_NAME =
+ (ResultDescriptor first, ResultDescriptor second) =>
+ first.name.compareTo(second.name);
+
+ /**
* Initialize a newly created analysis result to have the given [name] and
* [defaultValue].
*
« no previous file with comments | « pkg/analyzer/lib/src/context/cache.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698