Searched refs:printer_ (Results 1 – 7 of 7) sorted by relevance
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 340 printer_ = &printer; in Generate() 342 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 384 printer_->Print("import importlib\n"); in PrintImports() 385 printer_->Print("$alias$ = importlib.import_module('$name$')\n", "alias", in PrintImports() 398 printer_->Print("$statement$ as $alias$\n", "statement", import_statement, in PrintImports() 404 printer_->Print("\n"); in PrintImports() 409 printer_->Print("from $module$ import *\n", "module", module_name); in PrintImports() 411 printer_->Print("\n"); in PrintImports() 428 printer_->Print(m, file_descriptor_template); in PrintFileDescriptor() 429 printer_->Indent(); in PrintFileDescriptor() [all …]
|
D | python_generator.h | 168 mutable io::Printer* printer_; // Set in Generate(). Under mutex_. variable
|
/external/grpc-grpc/src/compiler/ |
D | protobuf_plugin.h | 136 : output_stream_(str), printer_(&output_stream_, '$') {} in ProtoBufPrinter() 140 printer_.Print(vars, string_template); in Print() 143 void Print(const char* string) { printer_.Print(string); } in Print() 144 void PrintRaw(const char* string) { printer_.PrintRaw(string); } in PrintRaw() 145 void Indent() { printer_.Indent(); } in Indent() 146 void Outdent() { printer_.Outdent(); } in Outdent() 150 grpc::protobuf::io::Printer printer_; variable
|
D | python_generator.cc | 72 explicit IndentScope(grpc_generator::Printer* printer) : printer_(printer) { in IndentScope() 73 printer_->Indent(); in IndentScope() 76 ~IndentScope() { printer_->Outdent(); } in ~IndentScope() 79 grpc_generator::Printer* printer_; member in grpc_python_generator::__anonb01d020d0111::IndentScope
|
/external/protobuf/src/google/protobuf/util/ |
D | message_differencer.cc | 1741 : printer_(new io::Printer(output, '$')), in StreamReporter() 1746 : printer_(printer), in StreamReporter() 1751 if (delete_printer_) delete printer_; in ~StreamReporter() 1758 printer_->Print("."); in PrintPath() 1765 printer_->Print("($name$)", "name", specific_field.field->full_name()); in PrintPath() 1767 printer_->PrintRaw(specific_field.field->name()); in PrintPath() 1774 printer_->PrintRaw(StrCat(specific_field.unknown_field_number)); in PrintPath() 1777 printer_->Print("[$name$]", "name", StrCat(specific_field.index)); in PrintPath() 1780 printer_->Print("[$name$]", "name", in PrintPath() 1808 printer_->Print("{ }"); in PrintValue() [all …]
|
D | message_differencer.h | 675 io::Printer* printer_;
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_helpers.h | 639 explicit Formatter(io::Printer* printer) : printer_(printer) {} in Formatter() 642 : printer_(printer), vars_(vars) {} in Formatter() 655 printer_->FormatInternal({ToString(args)...}, vars_, format); in operator() 658 void Indent() const { printer_->Indent(); } in Indent() 659 void Outdent() const { printer_->Outdent(); } in Outdent() 660 io::Printer* printer() const { return printer_; } in printer() 674 io::Printer* printer_; 709 : printer_(format.printer()) {} in NamespaceOpener() 727 printer_->Print("PROTOBUF_NAMESPACE_CLOSE\n"); in ChangeTo() 729 printer_->Print("} // namespace $ns$\n", "ns", name_stack_[i]); in ChangeTo() [all …]
|