protobuf-go/internal/impl
Joe Tsai 34eb7ef6d5 reflect/protoreflect: clarify Clear and Remove operation on missing entries
Follow the precedence of Go maps where deletion on a key without an entry in
the map is a noop. Similarly, document that the following methods are safe
to call with entries that do not exist:
* Map.Clear
* KnownFields.Clear
* ExtensionFieldTypes.Remove

Change the implementation for each of these to match the documented behavior.

Change-Id: Ifccff9b7b03baaeffdc366d05f6286ba60e14934
Reviewed-on: https://go-review.googlesource.com/c/148317
Reviewed-by: Herbie Ong <herbie@google.com>
2018-11-08 02:34:04 +00:00
..
legacy_enum.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_extension_hack.go internal/impl: rename legacy_extension.go as legacy_extension_hack.go 2018-11-06 21:02:36 +00:00
legacy_file.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_message.go internal/impl: support message and enum fields 2018-11-05 22:25:52 +00:00
legacy_proto2_test.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_proto3_test.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_test.go internal/impl: support legacy unknown extension fields 2018-11-01 18:28:27 +00:00
legacy_unknown.go internal/value: extract Vector and Map logic as separate package 2018-11-06 01:20:32 +00:00
message_field.go internal/value: extract Vector and Map logic as separate package 2018-11-06 01:20:32 +00:00
message_test.go internal/impl: support message and enum fields 2018-11-05 22:25:52 +00:00
message.go reflect/protoreflect: clarify Clear and Remove operation on missing entries 2018-11-08 02:34:04 +00:00
pointer_reflect.go internal/impl: support wrapping Go structs to implement proto.Message 2018-10-03 02:10:04 +00:00
pointer_unsafe.go internal/impl: support wrapping Go structs to implement proto.Message 2018-10-03 02:10:04 +00:00