Chromium Code Reviews| 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; }
|
| } |