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

Unified Diff: pkg/dartdoc/lib/src/mirrors/util.dart

Issue 10985085: Members and comments inherited in dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased. Created 8 years, 2 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: pkg/dartdoc/lib/src/mirrors/util.dart
diff --git a/pkg/dartdoc/lib/src/mirrors/util.dart b/pkg/dartdoc/lib/src/mirrors/util.dart
index 1dec4e15c68c2877df602c9835fdee7f6e17ef1a..dca7a857c6bdf296dcbaab507cb700a402c60ea9 100644
--- a/pkg/dartdoc/lib/src/mirrors/util.dart
+++ b/pkg/dartdoc/lib/src/mirrors/util.dart
@@ -145,7 +145,10 @@ class AsFilteredImmutableMap<K, Vin, Vout> extends AbstractMap<K, Vout> {
Vout operator [](K key) {
if (key is K) {
- return _filter(_map[key]);
+ Vin value = _map[key];
+ if (value !== null) {
Lasse Reichstein Nielsen 2012/10/04 07:41:19 I think you can start using != instead of !==.
Johnni Winther 2012/10/04 12:46:21 Done.
+ return _filter(value);
+ }
}
return null;
}

Powered by Google App Engine
This is Rietveld 408576698