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

Unified Diff: lib/src/protobuf/generated_message.dart

Issue 2778923002: Avoid private override via mixin (Closed)
Patch Set: Created 3 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 | lib/src/protobuf/readonly_message.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/protobuf/generated_message.dart
diff --git a/lib/src/protobuf/generated_message.dart b/lib/src/protobuf/generated_message.dart
index 40b4ea50db05e0eb623bc4736f86f4badb63308d..e29bf28823adb7fd496cc9c62be424960d19d300 100644
--- a/lib/src/protobuf/generated_message.dart
+++ b/lib/src/protobuf/generated_message.dart
@@ -50,7 +50,7 @@ abstract class GeneratedMessage {
UnknownFieldSet get unknownFields => _fieldSet._ensureUnknownFields();
- bool get _isReadOnly => false;
+ bool get _isReadOnly => this is ReadonlyMessageMixin;
bool hasRequiredFields() => info_.hasRequiredFields;
« no previous file with comments | « no previous file | lib/src/protobuf/readonly_message.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698