Home
last modified time | relevance | path

Searched refs:sorted_extensions (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_message.cc395 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateSource() local
397 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateSource()
400 std::sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateSource()
545 if (sorted_extensions.size() != 0) { in GenerateSource()
548 for (int i = 0; i < sorted_extensions.size(); i++) { in GenerateSource()
550 "start", StrCat(sorted_extensions[i]->start), in GenerateSource()
551 "end", StrCat(sorted_extensions[i]->end)); in GenerateSource()
/external/protobuf/src/google/protobuf/compiler/java/
Djava_message.cc565 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateMessageSerializationMethods() local
567 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateMessageSerializationMethods()
569 std::sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateMessageSerializationMethods()
607 i < descriptor_->field_count() || j < sorted_extensions.size();) { in GenerateMessageSerializationMethods()
609 GenerateSerializeOneExtensionRange(printer, sorted_extensions[j++]); in GenerateMessageSerializationMethods()
610 } else if (j == sorted_extensions.size()) { in GenerateMessageSerializationMethods()
612 } else if (sorted_fields[i]->number() < sorted_extensions[j]->start) { in GenerateMessageSerializationMethods()
615 GenerateSerializeOneExtensionRange(printer, sorted_extensions[j++]); in GenerateMessageSerializationMethods()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc1778 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateFieldMetadata() local
1779 sorted_extensions.reserve(descriptor_->extension_range_count()); in GenerateFieldMetadata()
1781 sorted_extensions.push_back(descriptor_->extension_range(i)); in GenerateFieldMetadata()
1783 std::sort(sorted_extensions.begin(), sorted_extensions.end(), in GenerateFieldMetadata()
1786 for (; extension_idx < sorted_extensions.size() && in GenerateFieldMetadata()
1788 sorted_extensions[extension_idx]->start < sorted[i]->number()); in GenerateFieldMetadata()
1791 sorted_extensions[extension_idx]; in GenerateFieldMetadata()
1887 int num_field_metadata = 1 + sorted.size() + sorted_extensions.size(); in GenerateFieldMetadata()
3928 std::vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateSerializeWithCachedSizesBody() local
3929 sorted_extensions.reserve(descriptor_->extension_range_count()); in GenerateSerializeWithCachedSizesBody()
[all …]