/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_message_field.cc | 127 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers() 132 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 133 printer->Print(variables_, in GenerateInterfaceMembers() 135 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 136 printer->Print(variables_, in GenerateInterfaceMembers() 140 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 141 printer->Print(variables_, in GenerateInterfaceMembers() 147 GenerateMembers(io::Printer* printer) const { in GenerateMembers() 148 printer->Print(variables_, in GenerateMembers() 150 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_string_field.cc | 171 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers() 172 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 173 printer->Print(variables_, in GenerateInterfaceMembers() 175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 176 printer->Print(variables_, in GenerateInterfaceMembers() 178 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 179 printer->Print(variables_, in GenerateInterfaceMembers() 185 GenerateMembers(io::Printer* printer) const { in GenerateMembers() 186 printer->Print(variables_, in GenerateMembers() 188 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_service.cc | 52 void ServiceGenerator::Generate(io::Printer* printer) { in Generate() argument 54 WriteServiceDocComment(printer, descriptor_); in Generate() 55 printer->Print( in Generate() 60 printer->Indent(); in Generate() 62 printer->Print( in Generate() 66 GenerateInterface(printer); in Generate() 68 GenerateNewReflectiveServiceMethod(printer); in Generate() 69 GenerateNewReflectiveBlockingServiceMethod(printer); in Generate() 71 GenerateAbstractMethods(printer); in Generate() 74 printer->Print( in Generate() [all …]
|
D | java_enum_field.cc | 128 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers() 129 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 130 printer->Print(variables_, in GenerateInterfaceMembers() 132 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 133 printer->Print(variables_, in GenerateInterfaceMembers() 138 GenerateMembers(io::Printer* printer) const { in GenerateMembers() 139 printer->Print(variables_, in GenerateMembers() 141 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 142 printer->Print(variables_, in GenerateMembers() 146 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
D | java_message.cc | 63 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() argument 67 printer->Print("// $def$\n", in PrintFieldComment() 162 void MessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument 188 printer->Print(vars, in GenerateStaticVariables() 193 printer->Print(vars, in GenerateStaticVariables() 203 .GenerateStaticVariables(printer); in GenerateStaticVariables() 208 io::Printer* printer) { in GenerateStaticVariableInitializers() argument 221 printer->Print(vars, in GenerateStaticVariableInitializers() 225 printer->Print(vars, in GenerateStaticVariableInitializers() 231 printer->Print(vars, in GenerateStaticVariableInitializers() [all …]
|
D | java_primitive_field.cc | 251 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers() 252 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 253 printer->Print(variables_, in GenerateInterfaceMembers() 255 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers() 256 printer->Print(variables_, in GenerateInterfaceMembers() 261 GenerateMembers(io::Printer* printer) const { in GenerateMembers() 262 printer->Print(variables_, in GenerateMembers() 265 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() 266 printer->Print(variables_, in GenerateMembers() 271 WriteFieldDocComment(printer, descriptor_); in GenerateMembers() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_message.cc | 60 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() argument 64 printer->Print("// $def$\n", in PrintFieldComment() 182 GenerateForwardDeclaration(io::Printer* printer) { in GenerateForwardDeclaration() argument 183 printer->Print("class $classname$;\n", in GenerateForwardDeclaration() 187 nested_generators_[i]->GenerateForwardDeclaration(printer); in GenerateForwardDeclaration() 192 GenerateEnumDefinitions(io::Printer* printer) { in GenerateEnumDefinitions() argument 194 nested_generators_[i]->GenerateEnumDefinitions(printer); in GenerateEnumDefinitions() 198 enum_generators_[i]->GenerateDefinition(printer); in GenerateEnumDefinitions() 203 GenerateGetEnumDescriptorSpecializations(io::Printer* printer) { in GenerateGetEnumDescriptorSpecializations() argument 205 nested_generators_[i]->GenerateGetEnumDescriptorSpecializations(printer); in GenerateGetEnumDescriptorSpecializations() [all …]
|
D | cpp_string_field.cc | 70 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 71 printer->Print(variables_, in GeneratePrivateMembers() 77 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 95 printer->Outdent(); in GenerateAccessorDeclarations() 96 printer->Print( in GenerateAccessorDeclarations() 99 printer->Indent(); in GenerateAccessorDeclarations() 102 printer->Print(variables_, in GenerateAccessorDeclarations() 111 printer->Outdent(); in GenerateAccessorDeclarations() 112 printer->Print(" public:\n"); in GenerateAccessorDeclarations() 113 printer->Indent(); in GenerateAccessorDeclarations() [all …]
|
D | cpp_file.cc | 91 void FileGenerator::GenerateHeader(io::Printer* printer) { in GenerateHeader() argument 95 printer->Print( in GenerateHeader() 107 printer->Print( in GenerateHeader() 113 printer->Print( in GenerateHeader() 130 printer->Print( in GenerateHeader() 136 printer->Print( in GenerateHeader() 141 printer->Print( in GenerateHeader() 147 printer->Print( in GenerateHeader() 152 printer->Print( in GenerateHeader() 156 GenerateNamespaceOpeners(printer); in GenerateHeader() [all …]
|
D | cpp_enum_field.cc | 69 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 70 printer->Print(variables_, "int $name$_;\n"); in GeneratePrivateMembers() 74 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 75 printer->Print(variables_, in GenerateAccessorDeclarations() 81 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions() 82 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 94 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode() 95 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode() 99 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode() 100 printer->Print(variables_, "set_$name$(from.$name$());\n"); in GenerateMergingCode() [all …]
|
D | cpp_primitive_field.cc | 110 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 111 printer->Print(variables_, "$type$ $name$_;\n"); in GeneratePrivateMembers() 115 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 116 printer->Print(variables_, in GenerateAccessorDeclarations() 122 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions() 123 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 134 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode() 135 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode() 139 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode() 140 printer->Print(variables_, "set_$name$(from.$name$());\n"); in GenerateMergingCode() [all …]
|
D | cpp_message_field.cc | 70 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 71 printer->Print(variables_, "$type$* $name$_;\n"); in GeneratePrivateMembers() 75 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 76 printer->Print(variables_, in GenerateAccessorDeclarations() 82 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions() 83 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 95 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode() 96 printer->Print(variables_, in GenerateClearingCode() 101 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode() 102 printer->Print(variables_, in GenerateMergingCode() [all …]
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_service.cc | 51 void ServiceGenerator::Generate(io::Printer* printer) { in Generate() argument 53 printer->Print( in Generate() 58 printer->Indent(); in Generate() 60 printer->Print( in Generate() 64 GenerateInterface(printer); in Generate() 66 GenerateNewReflectiveServiceMethod(printer); in Generate() 67 GenerateNewReflectiveBlockingServiceMethod(printer); in Generate() 69 GenerateAbstractMethods(printer); in Generate() 72 printer->Print( in Generate() 80 GenerateGetDescriptorForType(printer); in Generate() [all …]
|
D | java_message.cc | 57 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() argument 61 printer->Print("// $def$\n", in PrintFieldComment() 156 void MessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument 182 printer->Print(vars, in GenerateStaticVariables() 187 printer->Print(vars, in GenerateStaticVariables() 197 .GenerateStaticVariables(printer); in GenerateStaticVariables() 202 io::Printer* printer) { in GenerateStaticVariableInitializers() argument 215 printer->Print(vars, in GenerateStaticVariableInitializers() 219 printer->Print(vars, in GenerateStaticVariableInitializers() 225 printer->Print(vars, in GenerateStaticVariableInitializers() [all …]
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_message.cc | 62 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() argument 66 printer->Print("// $def$\n", in PrintFieldComment() 323 GenerateForwardDeclaration(io::Printer* printer) { in GenerateForwardDeclaration() argument 324 printer->Print("class $classname$;\n", in GenerateForwardDeclaration() 328 nested_generators_[i]->GenerateForwardDeclaration(printer); in GenerateForwardDeclaration() 333 GenerateEnumDefinitions(io::Printer* printer) { in GenerateEnumDefinitions() argument 335 nested_generators_[i]->GenerateEnumDefinitions(printer); in GenerateEnumDefinitions() 339 enum_generators_[i]->GenerateDefinition(printer); in GenerateEnumDefinitions() 344 GenerateGetEnumDescriptorSpecializations(io::Printer* printer) { in GenerateGetEnumDescriptorSpecializations() argument 346 nested_generators_[i]->GenerateGetEnumDescriptorSpecializations(printer); in GenerateGetEnumDescriptorSpecializations() [all …]
|
D | cpp_file.cc | 91 void FileGenerator::GenerateHeader(io::Printer* printer) { in GenerateHeader() argument 95 printer->Print( in GenerateHeader() 108 printer->Print( in GenerateHeader() 114 printer->Print( in GenerateHeader() 131 printer->Print( in GenerateHeader() 135 printer->Print( in GenerateHeader() 138 printer->Print( in GenerateHeader() 142 printer->Print( in GenerateHeader() 147 printer->Print( in GenerateHeader() 152 printer->Print( in GenerateHeader() [all …]
|
D | cpp_enum_field.cc | 71 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 72 printer->Print(variables_, "int $name$_;\n"); in GeneratePrivateMembers() 76 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 77 printer->Print(variables_, in GenerateAccessorDeclarations() 83 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions() 84 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 96 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode() 97 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode() 101 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode() 102 printer->Print(variables_, "set_$name$(from.$name$());\n"); in GenerateMergingCode() [all …]
|
D | cpp_string_field.cc | 76 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 77 printer->Print(variables_, "::std::string* $name$_;\n"); in GeneratePrivateMembers() 79 printer->Print(variables_, "static ::std::string* $default_variable$;\n"); in GeneratePrivateMembers() 84 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 102 printer->Outdent(); in GenerateAccessorDeclarations() 103 printer->Print( in GenerateAccessorDeclarations() 106 printer->Indent(); in GenerateAccessorDeclarations() 109 printer->Print(variables_, in GenerateAccessorDeclarations() 121 printer->Outdent(); in GenerateAccessorDeclarations() 122 printer->Print(" public:\n"); in GenerateAccessorDeclarations() [all …]
|
D | cpp_primitive_field.cc | 112 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 113 printer->Print(variables_, "$type$ $name$_;\n"); in GeneratePrivateMembers() 117 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 118 printer->Print(variables_, in GenerateAccessorDeclarations() 124 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions() 125 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 136 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode() 137 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode() 141 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode() 142 printer->Print(variables_, "set_$name$(from.$name$());\n"); in GenerateMergingCode() [all …]
|
D | cpp_message_field.cc | 72 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers() 73 printer->Print(variables_, "$type$* $name$_;\n"); in GeneratePrivateMembers() 77 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations() 78 printer->Print(variables_, in GenerateAccessorDeclarations() 86 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions() 87 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 91 variables_, descriptor_->file(), printer, in GenerateInlineAccessorDefinitions() 97 printer->Print(variables_, in GenerateInlineAccessorDefinitions() 122 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode() 123 printer->Print(variables_, in GenerateClearingCode() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_message.cc | 89 void MessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument 94 .GenerateStaticVariables(printer); in GenerateStaticVariables() 99 io::Printer* printer) { in GenerateStaticVariableInitializers() argument 104 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers() 108 void MessageGenerator::Generate(io::Printer* printer) { in Generate() argument 124 printer->Print( in Generate() 130 printer->Print( in Generate() 136 printer->Print( in Generate() 140 printer->Print( in Generate() 144 printer->Print( in Generate() [all …]
|
D | javanano_enum_field.cc | 95 io::Printer* printer, const vector<string>& canonical_values) { in PrintCaseLabels() argument 97 printer->Print( in PrintCaseLabels() 117 GenerateMembers(io::Printer* printer, bool /* unused lazy_init */) const { in GenerateMembers() argument 118 printer->Print(variables_, in GenerateMembers() 122 printer->Print(variables_, in GenerateMembers() 128 GenerateClearCode(io::Printer* printer) const { in GenerateClearCode() 129 printer->Print(variables_, in GenerateClearCode() 133 printer->Print(variables_, in GenerateClearCode() 139 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode() 140 printer->Print(variables_, in GenerateMergingCode() [all …]
|
D | javanano_primitive_field.cc | 270 void PrimitiveFieldGenerator::GenerateInitSavedDefaultCode(io::Printer* printer) const { in GenerateInitSavedDefaultCode() 272 printer->Print(variables_, in GenerateInitSavedDefaultCode() 278 GenerateMembers(io::Printer* printer, bool lazy_init) const { in GenerateMembers() argument 282 printer->Print(variables_, in GenerateMembers() 285 printer->Print(variables_, in GenerateMembers() 291 printer->Print(variables_, in GenerateMembers() 295 printer->Print(variables_, in GenerateMembers() 301 GenerateClearCode(io::Printer* printer) const { in GenerateClearCode() 302 printer->Print(variables_, in GenerateClearCode() 306 printer->Print(variables_, in GenerateClearCode() [all …]
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/io/ |
D | printer_unittest.cc | 57 Printer printer(&output, '\0'); in TEST() local 58 EXPECT_TRUE(!printer.failed()); in TEST() 68 Printer printer(&output, '\0'); in TEST() local 70 printer.Print("Hello World!"); in TEST() 71 printer.Print(" This is the same line.\n"); in TEST() 72 printer.Print("But this is a new one.\nAnd this is another one."); in TEST() 74 EXPECT_FALSE(printer.failed()); in TEST() 94 Printer printer(&output, '$'); in TEST() local 95 printer.WriteRaw("Hello World!", 12); in TEST() 96 printer.PrintRaw(" This is the same line.\n"); in TEST() [all …]
|
/external/protobuf/src/google/protobuf/io/ |
D | printer_unittest.cc | 57 Printer printer(&output, '\0'); in TEST() local 58 EXPECT_TRUE(!printer.failed()); in TEST() 68 Printer printer(&output, '\0'); in TEST() local 70 printer.Print("Hello World!"); in TEST() 71 printer.Print(" This is the same line.\n"); in TEST() 72 printer.Print("But this is a new one.\nAnd this is another one."); in TEST() 74 EXPECT_FALSE(printer.failed()); in TEST() 94 Printer printer(&output, '$'); in TEST() local 95 printer.WriteRaw("Hello World!", 12); in TEST() 96 printer.PrintRaw(" This is the same line.\n"); in TEST() [all …]
|