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

Unified Diff: sky/sdk/lib/widgets/widget.dart

Issue 1194583002: Cleaned up a few analyzer warnings (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
« sky/sdk/lib/rendering/paragraph.dart ('K') | « sky/sdk/lib/widgets/basic.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/widget.dart
diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart
index 7d450c98b11bdc330f7d7a1c48fb41004364fb4f..8381fc51befa12af6fe0dea18cb47244435266ce 100644
--- a/sky/sdk/lib/widgets/widget.dart
+++ b/sky/sdk/lib/widgets/widget.dart
@@ -109,7 +109,8 @@ abstract class Widget {
// Returns the child which should be retained as the child of this node.
Widget syncChild(Widget node, Widget oldNode, dynamic slot) {
- assert(oldNode is! Component || !oldNode._disqualifiedFromEverAppearingAgain);
+ assert(oldNode is! Component ||
+ !(oldNode as Component)._disqualifiedFromEverAppearingAgain);
Hixie 2015/06/17 17:11:17 this warning is a bug in the analyzer, you should
hansmuller 2015/06/17 17:35:39 Done.
if (node == oldNode) {
assert(node == null || node.mounted);
« sky/sdk/lib/rendering/paragraph.dart ('K') | « sky/sdk/lib/widgets/basic.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698