Searched refs:sorted_extensions (Results 1 – 3 of 3) sorted by relevance
/third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_message.cc | 417 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateSource() local 418 sorted_extensions.reserve(descriptor_->extension_range_count()); in GenerateSource() 420 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateSource() 423 std::sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateSource() 570 if (!sorted_extensions.empty()) { in GenerateSource() 573 for (int i = 0; i < sorted_extensions.size(); i++) { in GenerateSource() 575 "start", StrCat(sorted_extensions[i]->start), in GenerateSource() 576 "end", StrCat(sorted_extensions[i]->end)); in GenerateSource()
|
/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_message.cc | 572 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateMessageSerializationMethods() local 574 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateMessageSerializationMethods() 576 std::sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateMessageSerializationMethods() 614 i < descriptor_->field_count() || j < sorted_extensions.size();) { in GenerateMessageSerializationMethods() 616 GenerateSerializeOneExtensionRange(printer, sorted_extensions[j++]); in GenerateMessageSerializationMethods() 617 } else if (j == sorted_extensions.size()) { in GenerateMessageSerializationMethods() 619 } else if (sorted_fields[i]->number() < sorted_extensions[j]->start) { in GenerateMessageSerializationMethods() 622 GenerateSerializeOneExtensionRange(printer, sorted_extensions[j++]); in GenerateMessageSerializationMethods()
|
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_message.cc | 1828 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateFieldMetadata() local 1829 sorted_extensions.reserve(descriptor_->extension_range_count()); in GenerateFieldMetadata() 1831 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateFieldMetadata() 1833 std::sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateFieldMetadata() 1836 for (; extension_idx < sorted_extensions.size() && in GenerateFieldMetadata() 1838 sorted_extensions[extension_idx]->start < sorted[i]->number()); in GenerateFieldMetadata() 1841 sorted_extensions[extension_idx]; in GenerateFieldMetadata() 1935 int num_field_metadata = 1 + sorted.size() + sorted_extensions.size(); in GenerateFieldMetadata() 3618 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateSerializeWithCachedSizesBody() local 3619 sorted_extensions.reserve(descriptor_->extension_range_count()); in GenerateSerializeWithCachedSizesBody() [all …]
|