1 // Protocol Buffers - Google's data interchange format 2 // Copyright 2008 Google Inc. All rights reserved. 3 // 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file or at 6 // https://developers.google.com/open-source/licenses/bsd 7 8 #include "google/protobuf/compiler/java/message_serialization.h" 9 10 #include "absl/strings/str_cat.h" 11 #include "google/protobuf/descriptor.h" 12 #include "google/protobuf/io/printer.h" 13 14 namespace google { 15 namespace protobuf { 16 namespace compiler { 17 namespace java { 18 GenerateSerializeExtensionRange(io::Printer * printer,const Descriptor::ExtensionRange * range)19void GenerateSerializeExtensionRange(io::Printer* printer, 20 const Descriptor::ExtensionRange* range) { 21 printer->Print("extensionWriter.writeUntil($end$, output);\n", "end", 22 absl::StrCat(range->end_number())); 23 } 24 25 } // namespace java 26 } // namespace compiler 27 } // namespace protobuf 28 } // namespace google 29