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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 19391004: Implement reflective access to static methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
Index: dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 7411bc9aec29ea998e3288ffdd487318cfd032df..51ffcfc1b7bc593802e25de4c693499527f68c32 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -497,7 +497,9 @@ class Elements {
if (r != 0) return r;
Token positionA = a.position();
Token positionB = b.position();
- r = positionA.charOffset.compareTo(positionB.charOffset);
+ int offsetA = positionA == null ? -1 : positionA.charOffset;
+ int offsetB = positionB == null ? -1 : positionB.charOffset;
+ r = offsetA.compareTo(offsetB);
if (r != 0) return r;
r = a.name.slowToString().compareTo(b.name.slowToString());
if (r != 0) return r;

Powered by Google App Engine
This is Rietveld 408576698