/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/java/ |
D | java_message.cc | 87 : descriptor_(descriptor) {} in MessageGenerator() 114 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariables() 115 vars["index"] = SimpleItoa(descriptor_->index()); in GenerateStaticVariables() 116 vars["classname"] = name_resolver_->GetImmutableClassName(descriptor_); in GenerateStaticVariables() 117 if (descriptor_->containing_type() != NULL) { in GenerateStaticVariables() 119 descriptor_->containing_type()); in GenerateStaticVariables() 121 if (MultipleJavaFiles(descriptor_->file(), /* immutable = */ true)) { in GenerateStaticVariables() 147 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 149 ImmutableMessageGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables() 158 vars["identifier"] = UniqueFileScopeIdentifier(descriptor_); in GenerateStaticVariableInitializers() [all …]
|
D | java_enum_field_lite.cc | 123 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableEnumFieldLiteGenerator() 143 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 144 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 148 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers() 149 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 153 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 163 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 170 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateMembers() 171 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_message_builder.cc | 81 : descriptor_(descriptor), context_(context), in MessageBuilderGenerator() 93 WriteMessageDocComment(printer, descriptor_); in Generate() 94 if (descriptor_->extension_range_count() > 0) { in Generate() 101 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate() 102 "extra_interfaces", ExtraBuilderInterfaces(descriptor_), in Generate() 110 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate() 111 "extra_interfaces", ExtraBuilderInterfaces(descriptor_), in Generate() 119 if (context_->HasGeneratedMethods(descriptor_)) { in Generate() 126 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in Generate() 128 descriptor_->oneof_decl(i))->name; in Generate() [all …]
|
D | java_message_lite.cc | 100 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariables() 102 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariables() 111 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateStaticVariableInitializers() 114 ImmutableMessageLiteGenerator(descriptor_->nested_type(i), context_) in GenerateStaticVariableInitializers() 123 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in GenerateInterface() 125 if (descriptor_->extension_range_count() > 0) { in GenerateInterface() 132 "extra_interfaces", ExtraMessageOrBuilderInterfaces(descriptor_), in GenerateInterface() 133 "classname", descriptor_->name(), in GenerateInterface() 140 "extra_interfaces", ExtraMessageOrBuilderInterfaces(descriptor_), in GenerateInterface() 141 "classname", descriptor_->name(), in GenerateInterface() [all …]
|
D | java_enum.cc | 66 : descriptor_(descriptor), immutable_api_(immutable_api), in EnumGenerator() 69 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumGenerator() 70 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator() 72 descriptor_->FindValueByNumber(value->number()); in EnumGenerator() 88 WriteEnumDocComment(printer, descriptor_); in Generate() 89 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, immutable_api_); in Generate() 93 "classname", descriptor_->name()); in Generate() 94 printer->Annotate("classname", descriptor_); in Generate() 125 if (SupportUnknownEnumValue(descriptor_->file())) { in Generate() 141 vars["classname"] = descriptor_->name(); in Generate() [all …]
|
D | java_lazy_message_field_lite.cc | 65 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 66 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 78 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 88 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 102 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 114 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 132 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 146 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 152 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 159 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() [all …]
|
D | java_message_field_lite.cc | 111 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableMessageFieldLiteGenerator() 135 if (SupportFieldPresence(descriptor_->file()) || in GenerateInterfaceMembers() 136 descriptor_->containing_oneof() == NULL) { in GenerateInterfaceMembers() 137 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 141 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 152 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 153 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 158 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 169 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_enum_field.cc | 142 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableEnumFieldGenerator() 162 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 163 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 167 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers() 168 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 172 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 182 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 183 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 189 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateMembers() 190 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_map_field_lite.cc | 147 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableMapFieldLiteGenerator() 166 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 170 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 175 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers() 184 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 189 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 195 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 200 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers() 209 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 214 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() [all …]
|
D | java_string_field_lite.cc | 125 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableStringFieldLiteGenerator() 170 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 171 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 178 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 190 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 191 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 198 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 203 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 210 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_lazy_message_field.cc | 65 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 70 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 76 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 104 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 116 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 132 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 146 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 166 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 178 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 185 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() [all …]
|
D | java_message_field.cc | 129 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableMessageFieldGenerator() 153 if (SupportFieldPresence(descriptor_->file()) || in GenerateInterfaceMembers() 154 descriptor_->containing_oneof() == NULL) { in GenerateInterfaceMembers() 155 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 159 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 163 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 174 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 175 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 180 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 186 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_string_field.cc | 144 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutableStringFieldGenerator() 196 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 197 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 201 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 204 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 216 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 217 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 224 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 234 if (CheckUtf8(descriptor_)) { in GenerateMembers() 247 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_primitive_field_lite.cc | 178 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutablePrimitiveFieldLiteGenerator() 198 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 199 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 203 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 210 if (IsByteStringWithCustomDefaultValue(descriptor_)) { in GenerateMembers() 220 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 221 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 228 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 234 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 242 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_map_field.cc | 159 : descriptor_(descriptor), name_resolver_(context->GetNameResolver()) { in ImmutableMapFieldGenerator() 178 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 182 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 187 if (GetJavaType(ValueField(descriptor_)) == JAVATYPE_ENUM) { in GenerateInterfaceMembers() 196 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 201 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 207 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 212 if (SupportUnknownEnumValue(descriptor_->file())) { in GenerateInterfaceMembers() 221 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 226 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() [all …]
|
D | java_enum_lite.cc | 65 : descriptor_(descriptor), in EnumLiteGenerator() 69 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumLiteGenerator() 70 const EnumValueDescriptor* value = descriptor_->value(i); in EnumLiteGenerator() 72 descriptor_->FindValueByNumber(value->number()); in EnumLiteGenerator() 88 WriteEnumDocComment(printer, descriptor_); in Generate() 89 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, immutable_api_); in Generate() 93 "classname", descriptor_->name()); in Generate() 94 printer->Annotate("classname", descriptor_); in Generate() 109 if (SupportUnknownEnumValue(descriptor_->file())) { in Generate() 121 vars["classname"] = descriptor_->name(); in Generate() [all …]
|
D | java_message_builder_lite.cc | 81 : descriptor_(descriptor), context_(context), in MessageBuilderLiteGenerator() 93 WriteMessageDocComment(printer, descriptor_); in Generate() 100 "classname", name_resolver_->GetImmutableClassName(descriptor_), in Generate() 101 "extra_interfaces", ExtraBuilderInterfaces(descriptor_), in Generate() 103 descriptor_->extension_range_count() > 0 ? "Extendable" : ""); in Generate() 110 for (int i = 0; i < descriptor_->oneof_decl_count(); i++) { in Generate() 112 descriptor_->oneof_decl(i))->name; in Generate() 114 descriptor_->oneof_decl(i))->capitalized_name; in Generate() 115 vars["oneof_index"] = SimpleItoa(descriptor_->oneof_decl(i)->index()); in Generate() 132 if (GenerateHasBits(descriptor_)) { in Generate() [all …]
|
D | java_primitive_field.cc | 154 : descriptor_(descriptor), messageBitIndex_(messageBitIndex), in ImmutablePrimitiveFieldGenerator() 174 if (SupportFieldPresence(descriptor_->file())) { in GenerateInterfaceMembers() 175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 179 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 189 if (SupportFieldPresence(descriptor_->file())) { in GenerateMembers() 190 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 197 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 209 if (SupportFieldPresence(descriptor_->file())) { in GenerateBuilderMembers() 210 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() 217 WriteFieldDocComment(printer, descriptor_); in GenerateBuilderMembers() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/ |
D | cpp_extension.cc | 61 : descriptor_(descriptor), in ExtensionGenerator() 64 if (descriptor_->is_repeated()) { in ExtensionGenerator() 68 switch (descriptor_->cpp_type()) { in ExtensionGenerator() 71 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator() 73 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator() 81 type_traits_.append(ClassName(descriptor_->message_type(), true)); in ExtensionGenerator() 86 type_traits_.append(PrimitiveTypeName(descriptor_->cpp_type())); in ExtensionGenerator() 96 vars["extendee" ] = ExtendeeClassName(descriptor_); in GenerateDeclaration() 97 vars["number" ] = SimpleItoa(descriptor_->number()); in GenerateDeclaration() 99 vars["name" ] = descriptor_->name(); in GenerateDeclaration() [all …]
|
D | cpp_message.cc | 380 : descriptor_(descriptor), in MessageGenerator() 426 (*class_names)[classname_] = descriptor_; in FillMessageForwardDeclarations() 428 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in FillMessageForwardDeclarations() 432 if (IsMapEntryMessage(descriptor_->nested_type(i))) continue; in FillMessageForwardDeclarations() 439 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in FillEnumForwardDeclarations() 442 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in FillEnumForwardDeclarations() 449 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateEnumDefinitions() 453 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in GenerateEnumDefinitions() 460 for (int i = 0; i < descriptor_->nested_type_count(); i++) { in GenerateGetEnumDescriptorSpecializations() 463 for (int i = 0; i < descriptor_->enum_type_count(); i++) { in GenerateGetEnumDescriptorSpecializations() [all …]
|
D | cpp_enum.cc | 64 : descriptor_(descriptor), in EnumGenerator() 77 (*enum_names)[classname_] = descriptor_; in FillForwardDeclaration() 83 vars["short_name"] = descriptor_->name(); in GenerateDefinition() 87 printer->Annotate("enumbase", descriptor_); in GenerateDefinition() 90 const EnumValueDescriptor* min_value = descriptor_->value(0); in GenerateDefinition() 91 const EnumValueDescriptor* max_value = descriptor_->value(0); in GenerateDefinition() 93 for (int i = 0; i < descriptor_->value_count(); i++) { in GenerateDefinition() 94 vars["name"] = EnumValueName(descriptor_->value(i)); in GenerateDefinition() 98 vars["number"] = Int32ToString(descriptor_->value(i)->number()); in GenerateDefinition() 99 vars["prefix"] = (descriptor_->containing_type() == NULL) ? in GenerateDefinition() [all …]
|
D | cpp_string_field.cc | 81 : FieldGenerator(options), descriptor_(descriptor) { in StringFieldGenerator() 106 if (!descriptor_->default_value_string().empty()) { in GenerateStaticMembers() 131 descriptor_->options().ctype() != EffectiveStringCType(descriptor_); in GenerateAccessorDeclarations() 150 if (SupportsArenas(descriptor_)) { in GenerateAccessorDeclarations() 170 if (SupportsArenas(descriptor_)) { in GenerateInlineAccessorDefinitions() 284 if (!descriptor_->default_value_string().empty()) { in GenerateNonInlineAccessorDefinitions() 297 if (SupportsArenas(descriptor_)) { in GenerateClearingCode() 298 if (descriptor_->default_value_string().empty()) { in GenerateClearingCode() 306 if (descriptor_->default_value_string().empty()) { in GenerateClearingCode() 318 if (SupportsArenas(descriptor_) || descriptor_->containing_oneof() != NULL) { in GenerateMergingCode() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/ |
D | csharp_message.cc | 66 descriptor_(descriptor) { in MessageGenerator() 69 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator() 70 field_names_.push_back(descriptor_->field(i)->name()); in MessageGenerator() 75 for (int i = 0; i < descriptor_->field_count(); i++) { in MessageGenerator() 76 fields_by_number_.push_back(descriptor_->field(i)); in MessageGenerator() 86 return descriptor_->name(); in class_name() 90 return GetClassName(descriptor_); in full_class_name() 106 WriteMessageDocComment(printer, descriptor_); in Generate() 123 if (!descriptor_->containing_type()) { in Generate() 124 vars["descriptor_accessor"] = GetReflectionClassName(descriptor_->file()) in Generate() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/ |
D | objectivec_extension.cc | 48 descriptor_(descriptor) { in ExtensionGenerator() 65 if (descriptor_->GetSourceLocation(&location)) { in GenerateMembersHeader() 79 vars["extended_type"] = ClassName(descriptor_->containing_type()); in GenerateStaticVariablesInitialization() 80 vars["number"] = SimpleItoa(descriptor_->number()); in GenerateStaticVariablesInitialization() 83 if (descriptor_->is_repeated()) options.push_back("GPBExtensionRepeated"); in GenerateStaticVariablesInitialization() 84 if (descriptor_->is_packed()) options.push_back("GPBExtensionPacked"); in GenerateStaticVariablesInitialization() 85 if (descriptor_->containing_type()->options().message_set_wire_format()) in GenerateStaticVariablesInitialization() 90 ObjectiveCType objc_type = GetObjectiveCType(descriptor_); in GenerateStaticVariablesInitialization() 94 ClassName(descriptor_->message_type()) + ")"; in GenerateStaticVariablesInitialization() 99 vars["default_name"] = GPBGenericValueFieldName(descriptor_); in GenerateStaticVariablesInitialization() [all …]
|