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

Unified Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 1281793004: fix sorting of compilation unit members - related to #23947 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge Created 5 years, 4 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/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index f110d52d77135305c8e267538d3fc7d521880161..2b4d1a7633f21e8b0f07266aa3bd8b1d7b94c075 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -2730,7 +2730,7 @@ abstract class AstNode {
* greater than the offset of the second node.
*/
static Comparator<AstNode> LEXICAL_ORDER =
- (AstNode first, AstNode second) => second.offset - first.offset;
+ (AstNode first, AstNode second) => first.offset - second.offset;
/**
* The parent of the node, or `null` if the node is the root of an AST
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698