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

Unified Diff: sky/sdk/lib/rendering/object.dart

Issue 1226113007: Add @override annotation to known overriden methods (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/sdk/lib/rendering/flex.dart ('k') | sky/sdk/lib/rendering/paragraph.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/rendering/object.dart
diff --git a/sky/sdk/lib/rendering/object.dart b/sky/sdk/lib/rendering/object.dart
index 2b80f396b49aeb99b589c608a1bf536e474eb509..e8a45943d0fd19704d92decc255c5d6774be05cd 100644
--- a/sky/sdk/lib/rendering/object.dart
+++ b/sky/sdk/lib/rendering/object.dart
@@ -23,6 +23,7 @@ class ParentData {
// override this in subclasses to merge in data from other into this
assert(other.runtimeType == this.runtimeType);
}
+ @override
String toString() => '<none>';
}
@@ -63,6 +64,7 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
child.parentData = new ParentData();
}
+ @override
void adoptChild(RenderObject child) { // only for use by subclasses
// call this whenever you decide a node is a child
assert(debugCanPerformMutations);
@@ -71,6 +73,8 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
super.adoptChild(child);
markNeedsLayout();
}
+
+ @override
void dropChild(RenderObject child) { // only for use by subclasses
assert(debugCanPerformMutations);
assert(child != null);
@@ -411,6 +415,7 @@ abstract class RenderObject extends AbstractNode implements HitTestTarget {
// You must not add yourself to /result/ if you return false.
+ @override
String toString([String prefix = '']) {
RenderObject debugPreviousActiveLayout = _debugActiveLayout;
_debugActiveLayout = null;
« no previous file with comments | « sky/sdk/lib/rendering/flex.dart ('k') | sky/sdk/lib/rendering/paragraph.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698