/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_enum_field_lite.cc | 128 : descriptor_(descriptor), in ImmutableEnumFieldLiteGenerator() 140 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 145 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 146 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 150 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers() 151 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 155 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 163 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 171 printer->Annotate("{", "}", descriptor_); in GenerateMembers() [all …]
|
D | java_message_field_lite.cc | 108 : descriptor_(descriptor), in ImmutableMessageFieldLiteGenerator() 119 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 124 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 126 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 136 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 137 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 144 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 145 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 152 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 154 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_map_field_lite.cc | 145 : descriptor_(descriptor), in ImmutableMapFieldLiteGenerator() 159 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 162 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 163 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 167 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 168 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers() 176 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 177 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 182 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 183 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() [all …]
|
D | java_string_field_lite.cc | 124 : descriptor_(descriptor), in ImmutableStringFieldLiteGenerator() 135 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 165 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 166 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 170 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 173 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 184 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 185 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 192 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 195 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_enum_field.cc | 140 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableEnumFieldGenerator() 149 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 158 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 159 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 163 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers() 164 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 168 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 175 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 176 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 182 printer->Annotate("{", "}", descriptor_); in GenerateMembers() [all …]
|
D | java_message_lite.cc | 85 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 87 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables() 96 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers() 99 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariableInitializers() 108 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in GenerateInterface() 110 if (descriptor_->extension_range_count() > 0) { in GenerateInterface() 118 descriptor_->options().deprecated() ? "@java.lang.Deprecated " : "", in GenerateInterface() 119 "extra_interfaces", ExtraMessageOrBuilderInterfaces(descriptor_), in GenerateInterface() 120 "classname", descriptor_->name(), "{", "", "}", ""); in GenerateInterface() 127 descriptor_->options().deprecated() ? "@java.lang.Deprecated " : "", in GenerateInterface() [all …]
|
D | java_message.cc | 80 : descriptor_(descriptor) {} in MessageGenerator() 108 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariables() 109 vars["index"] = StrCat(descriptor_->index()); in GenerateStaticVariables() 110 vars["classname"] = name_resolver_->GetImmutableClassName(descriptor_); in GenerateStaticVariables() 111 if (descriptor_->containing_type() != NULL) { in GenerateStaticVariables() 112 vars["parent"] = UniqueFileScopeIdentifier(descriptor_->containing_type()); in GenerateStaticVariables() 114 if (MultipleJavaFiles(descriptor_->file(), /* immutable = */ true)) { in GenerateStaticVariables() 141 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 143 ImmutableMessageGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables() 152 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariableInitializers() [all …]
|
D | java_primitive_field_lite.cc | 184 : descriptor_(descriptor), in ImmutablePrimitiveFieldLiteGenerator() 195 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 200 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 201 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 205 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 211 if (IsByteStringWithCustomDefaultValue(descriptor_)) { in GenerateMembers() 220 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 221 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 228 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 231 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_map_field.cc | 162 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableMapFieldGenerator() 176 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 179 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 180 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 184 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 185 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers() 193 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 194 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 199 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers() 200 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() [all …]
|
D | java_message_field.cc | 125 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableMessageFieldGenerator() 134 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 147 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 149 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 152 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 163 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 170 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 171 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 177 printer->Annotate("{", "}", descriptor_); in GenerateMembers() [all …]
|
D | java_string_field.cc | 142 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableStringFieldGenerator() 151 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 192 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 193 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 197 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 200 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 211 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 212 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 218 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 221 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_message_builder.cc | 74 : descriptor_(descriptor), in MessageBuilderGenerator() 86 WriteMessageDocComment(printer, descriptor_); in Generate() 87 if (descriptor_->extension_range_count() > 0) { in Generate() 94 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate() 95 "extra_interfaces", ExtraBuilderInterfaces(descriptor_), "ver", in Generate() 104 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate() 105 "extra_interfaces", ExtraBuilderInterfaces(descriptor_), "ver", in Generate() 113 if (context_->HasGeneratedMethods(descriptor_)) { in Generate() 120 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in Generate() 122 context_->GetOneofGeneratorInfo(descriptor_->oneof_decl(i))->name; in Generate() [all …]
|
D | java_primitive_field.cc | 190 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutablePrimitiveFieldGenerator() 199 return SupportFieldPresence(descriptor_->file()) ? 1 : 0; in GetNumBitsForMessage() 208 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 209 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 213 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 221 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 222 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 228 printer->Annotate("{", "}", descriptor_); in GenerateMembers() 231 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 236 printer->Annotate("{", "}", descriptor_); in GenerateMembers() [all …]
|
D | java_enum.cc | 55 : descriptor_(descriptor), in EnumGenerator() 59 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumGenerator() 60 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator() 62 descriptor_->FindValueByNumber(value->number()); in EnumGenerator() 78 WriteEnumDocComment(printer, descriptor_); in Generate() 79 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, immutable_api_); in Generate() 83 "classname", descriptor_->name()); in Generate() 84 printer->Annotate("classname", descriptor_); in Generate() 114 if (SupportUnknownEnumValue(descriptor_->file())) { in Generate() 120 printer->Annotate("{", "}", descriptor_); in Generate() [all …]
|
D | java_enum_lite.cc | 56 : descriptor_(descriptor), in EnumLiteGenerator() 60 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumLiteGenerator() 61 const EnumValueDescriptor* value = descriptor_->value(i); in EnumLiteGenerator() 63 descriptor_->FindValueByNumber(value->number()); in EnumLiteGenerator() 79 WriteEnumDocComment(printer, descriptor_); in Generate() 80 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, immutable_api_); in Generate() 84 "classname", descriptor_->name()); in Generate() 85 printer->Annotate("classname", descriptor_); in Generate() 100 if (SupportUnknownEnumValue(descriptor_->file())) { in Generate() 102 printer->Annotate("{", "}", descriptor_); in Generate() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_enum.cc | 76 : descriptor_(descriptor), in EnumGenerator() 82 variables_["classtype"] = QualifiedClassName(descriptor_, options); in EnumGenerator() 83 variables_["short_name"] = descriptor_->name(); in EnumGenerator() 84 variables_["nested_name"] = descriptor_->name(); in EnumGenerator() 85 variables_["resolved_name"] = ResolveKeyword(descriptor_->name()); in EnumGenerator() 87 (descriptor_->containing_type() == NULL) ? "" : classname_ + "_"; in EnumGenerator() 94 format("enum ${1$$classname$$}$ : int {\n", descriptor_); in GenerateDefinition() 97 const EnumValueDescriptor* min_value = descriptor_->value(0); in GenerateDefinition() 98 const EnumValueDescriptor* max_value = descriptor_->value(0); in GenerateDefinition() 100 for (int i = 0; i < descriptor_->value_count(); i++) { in GenerateDefinition() [all …]
|
D | cpp_string_field.cc | 121 if (!descriptor_->default_value_string().empty()) { in GenerateStaticMembers() 152 bool unknown_ctype = descriptor_->options().ctype() != in GenerateAccessorDeclarations() 153 EffectiveStringCType(descriptor_, options_); in GenerateAccessorDeclarations() 168 descriptor_); in GenerateAccessorDeclarations() 172 descriptor_); in GenerateAccessorDeclarations() 182 descriptor_); in GenerateAccessorDeclarations() 184 if (SupportsArenas(descriptor_)) { in GenerateAccessorDeclarations() 197 descriptor_); in GenerateAccessorDeclarations() 211 if (SupportsArenas(descriptor_)) { in GenerateInlineAccessorDefinitions() 262 if (HasFieldPresence(descriptor_->file())) { in GenerateInlineAccessorDefinitions() [all …]
|
D | cpp_extension.cc | 63 : descriptor_(descriptor), options_(options) { in ExtensionGenerator() 65 if (descriptor_->is_repeated()) { in ExtensionGenerator() 69 switch (descriptor_->cpp_type()) { in ExtensionGenerator() 72 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator() 74 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator() 82 type_traits_.append(ClassName(descriptor_->message_type(), true)); in ExtensionGenerator() 87 type_traits_.append(PrimitiveTypeName(options_, descriptor_->cpp_type())); in ExtensionGenerator() 92 variables_["extendee"] = ExtendeeClassName(descriptor_); in ExtensionGenerator() 94 std::string name = descriptor_->name(); in ExtensionGenerator() 96 variables_["constant_name"] = FieldConstantName(descriptor_); in ExtensionGenerator() [all …]
|
D | cpp_message.cc | 609 : descriptor_(descriptor), in MessageGenerator() 624 variables_["classtype"] = QualifiedClassName(descriptor_, options); in MessageGenerator() 626 SccInfoSymbol(scc_analyzer_->GetSCC(descriptor_), options_); in MessageGenerator() 627 variables_["full_name"] = descriptor_->full_name(); in MessageGenerator() 628 variables_["superclass"] = SuperClassName(descriptor_, options_); in MessageGenerator() 632 for (auto field : FieldRange(descriptor_)) { in MessageGenerator() 642 if (HasFieldPresence(descriptor_->file())) { in MessageGenerator() 644 has_bit_indices_.resize(descriptor_->field_count(), -1); in MessageGenerator() 663 table_driven_ = TableDrivenParsingEnabled(descriptor_, options_); in MessageGenerator() 684 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in AddGenerators() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_message.cc | 83 descriptor_(descriptor), in MessageGenerator() 91 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 93 if (IsMapEntry(descriptor_->nested_type(i))) continue; in GenerateStaticVariables() 94 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariables() 102 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers() 104 if (IsMapEntry(descriptor_->nested_type(i))) continue; in GenerateStaticVariableInitializers() 105 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariableInitializers() 112 (descriptor_->extension_count() != 0 || descriptor_->extension_range_count() != 0)) { in Generate() 117 const string& file_name = descriptor_->file()->name(); in Generate() 120 && descriptor_->containing_type() == NULL; in Generate() [all …]
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_message.cc | 64 descriptor_(descriptor), in MessageGenerator() 69 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator() 70 fields_by_number_.push_back(descriptor_->field(i)); in MessageGenerator() 75 if (IsProto2(descriptor_->file())) { in MessageGenerator() 77 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator() 78 const FieldDescriptor* field = descriptor_->field(i); in MessageGenerator() 93 return descriptor_->name(); in class_name() 97 return GetClassName(descriptor_); in full_class_name() 105 if (descriptor_->options().deprecated()) { in AddDeprecatedFlag() 121 WriteMessageDocComment(printer, descriptor_); in Generate() [all …]
|
D | csharp_field_base.cc | 58 int tag_size = internal::WireFormat::TagSize(descriptor_->number(), descriptor_->type()); in SetCommonFieldVariables() 60 if (descriptor_->type() == FieldDescriptor::TYPE_GROUP) { in SetCommonFieldVariables() 63 uint tag = internal::WireFormat::MakeTag(descriptor_); in SetCommonFieldVariables() 75 if (descriptor_->type() == FieldDescriptor::Type::TYPE_GROUP) { in SetCommonFieldVariables() 77 descriptor_->number(), in SetCommonFieldVariables() 93 (*variables)["extended_type"] = GetClassName(descriptor_->containing_type()); in SetCommonFieldVariables() 95 (*variables)["descriptor_name"] = descriptor_->name(); in SetCommonFieldVariables() 99 if (has_default_value() && !IsProto2(descriptor_->file())) { in SetCommonFieldVariables() 105 if (IsProto2(descriptor_->file())) { in SetCommonFieldVariables() 128 if (IsProto2(descriptor_->file())) { in SetCommonOneofFieldVariables() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_message.cc | 143 descriptor_(descriptor), in MessageGenerator() 151 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 153 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariables() 161 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers() 163 MessageGenerator(descriptor_->nested_type(i), params_) in GenerateStaticVariableInitializers() 167 if (descriptor_->extension_count() != 0) { in GenerateStaticVariableInitializers() 173 const string& file_name = descriptor_->file()->name(); in Generate() 176 && descriptor_->containing_type() == NULL; in Generate() 178 if ((descriptor_->extension_count() != 0) in Generate() 179 || (descriptor_->extension_range_count() != 0)) { in Generate() [all …]
|
/external/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_message.cc | 180 descriptor_(descriptor), in MessageGenerator() 182 class_name_(ClassName(descriptor_)), in MessageGenerator() 186 for (int i = 0; i < descriptor_->extension_count(); i++) { in MessageGenerator() 188 new ExtensionGenerator(class_name_, descriptor_->extension(i))); in MessageGenerator() 191 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in MessageGenerator() 192 OneofGenerator* generator = new OneofGenerator(descriptor_->oneof_decl(i)); in MessageGenerator() 196 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in MessageGenerator() 197 EnumGenerator* generator = new EnumGenerator(descriptor_->enum_type(i)); in MessageGenerator() 201 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in MessageGenerator() 204 descriptor_->nested_type(i), in MessageGenerator() [all …]
|
D | objectivec_extension.cc | 48 descriptor_(descriptor) { in ExtensionGenerator() 70 if (descriptor_->GetSourceLocation(&location)) { in GenerateMembersHeader() 77 vars["deprecated_attribute"] = GetOptionalDeprecatedAttribute(descriptor_, descriptor_->file()); in GenerateMembersHeader() 87 vars["extended_type"] = ClassName(descriptor_->containing_type()); in GenerateStaticVariablesInitialization() 88 vars["number"] = StrCat(descriptor_->number()); in GenerateStaticVariablesInitialization() 91 if (descriptor_->is_repeated()) options.push_back("GPBExtensionRepeated"); in GenerateStaticVariablesInitialization() 92 if (descriptor_->is_packed()) options.push_back("GPBExtensionPacked"); in GenerateStaticVariablesInitialization() 93 if (descriptor_->containing_type()->options().message_set_wire_format()) in GenerateStaticVariablesInitialization() 98 ObjectiveCType objc_type = GetObjectiveCType(descriptor_); in GenerateStaticVariablesInitialization() 102 ClassName(descriptor_->message_type()) + ")"; in GenerateStaticVariablesInitialization() [all …]
|