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

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

Issue 814213003: Allow constants as field initial values as well as creation thunks (Closed) Base URL: https://github.com/dart-lang/dart-protobuf@master
Patch Set: Created 6 years 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 | « lib/src/protobuf/builder_info.dart ('k') | lib/src/protobuf/field_info.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/protobuf/extension.dart
diff --git a/lib/src/protobuf/extension.dart b/lib/src/protobuf/extension.dart
index 39d194c66644707e6386507e38bf1b14837ffdb8..3845537a1c6147589e35900b272a25104e892bd8 100644
--- a/lib/src/protobuf/extension.dart
+++ b/lib/src/protobuf/extension.dart
@@ -12,10 +12,10 @@ class Extension extends FieldInfo {
final String extendee;
Extension(this.extendee, String name, int tagNumber, int fieldType,
- [MakeDefaultFunc makeDefault,
+ [dynamic defaultOrMaker,
CreateBuilderFunc subBuilder,
ValueOfFunc valueOf]) :
- super(name, tagNumber, fieldType, makeDefault, subBuilder, valueOf);
+ super(name, tagNumber, fieldType, defaultOrMaker, subBuilder, valueOf);
int get hashCode => extendee.hashCode * 31 + tagNumber;
@@ -26,4 +26,3 @@ class Extension extends FieldInfo {
return extendee == o.extendee && tagNumber == o.tagNumber;
}
}
-
« no previous file with comments | « lib/src/protobuf/builder_info.dart ('k') | lib/src/protobuf/field_info.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698