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

Unified Diff: frog/leg/elements/elements.dart

Issue 9695059: Fix leg assert and NPE to make BB green. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | frog/leg/ssa/closure.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/elements/elements.dart
===================================================================
--- frog/leg/elements/elements.dart (revision 5433)
+++ frog/leg/elements/elements.dart (working copy)
@@ -425,7 +425,8 @@
// the compilation unit of the abstract element.
if (getter !== null && getter.enclosingElement === enclosingElement) {
return getter.position();
- } else {
+ } else if (setter != null) {
+ // TODO(ahe): checking for null should not be necessary.
ngeoffray 2012/03/13 20:08:24 Told you so :-)
ahe 2012/03/14 09:22:08 Why is this happening? I think this is a symptom f
return setter.position();
}
floitsch 2012/03/14 09:03:09 else { return null; }
}
« no previous file with comments | « no previous file | frog/leg/ssa/closure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698