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

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

Issue 1277863003: cleanup: move fieldType constants and functions to a separate file (Closed) Base URL: git@github.com:dart-lang/dart-protobuf.git@master
Patch Set: _validateMessage should call _baseType, not callers Created 5 years, 4 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 | « lib/src/protobuf/generated_message.dart ('k') | lib/src/protobuf/wire_format.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/protobuf/unknown_field_set.dart
diff --git a/lib/src/protobuf/unknown_field_set.dart b/lib/src/protobuf/unknown_field_set.dart
index 7ce2fa40fb8a002ebd2da15b31d989a3f0539221..3f56517b6715649755fc87fe84b46e6a436440b2 100644
--- a/lib/src/protobuf/unknown_field_set.dart
+++ b/lib/src/protobuf/unknown_field_set.dart
@@ -223,11 +223,11 @@ class UnknownFieldSetField {
output.writeField(fieldNumber, type, value);
}
- write(GeneratedMessage._REPEATED_UINT64, varints);
- write(GeneratedMessage._REPEATED_FIXED32, fixed32s);
- write(GeneratedMessage._REPEATED_FIXED64, fixed64s);
- write(GeneratedMessage._REPEATED_BYTES, lengthDelimited);
- write(GeneratedMessage._REPEATED_GROUP, groups);
+ write(FieldType._REPEATED_UINT64, varints);
+ write(FieldType._REPEATED_FIXED32, fixed32s);
+ write(FieldType._REPEATED_FIXED64, fixed64s);
+ write(FieldType._REPEATED_BYTES, lengthDelimited);
+ write(FieldType._REPEATED_GROUP, groups);
}
void addGroup(UnknownFieldSet value) {
« no previous file with comments | « lib/src/protobuf/generated_message.dart ('k') | lib/src/protobuf/wire_format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698