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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart

Issue 2789863002: Sort procedures by source positions. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
index d7486c99a62baddc322c194bf65f3be9abcc176f..c393515d9ce5a05d294a117bcaa70f8aebb751e7 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_builder.dart
@@ -106,3 +106,9 @@ dynamic memberError(Member member, Object error, [int charOffset]) {
name = (cls == null ? "" : "${cls.name}::") + name;
return inputError(uri, charOffset, "Error in $name: $error");
}
+
+int compareProcedures(Procedure a, Procedure b) {
+ int i = a.fileUri.compareTo(b.fileUri);
+ if (i != 0) return i;
+ return a.fileOffset.compareTo(b.fileOffset);
+}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698