Insert the given code into the given file at the given insertion point.
| 145 | private: |
| 146 | // Insert the given code into the given file at the given insertion point. |
| 147 | void Insert(grpc::protobuf::compiler::GeneratorContext* context, |
| 148 | const TString& filename, const TString& insertion_point, |
| 149 | const TString& code) const { |
| 150 | std::unique_ptr<grpc::protobuf::io::ZeroCopyOutputStream> output( |
| 151 | context->OpenForInsert(filename, insertion_point)); |
| 152 | grpc::protobuf::io::CodedOutputStream coded_out(output.get()); |
| 153 | coded_out.WriteRaw(code.data(), code.size()); |
| 154 | } |
| 155 | }; |
| 156 | |
| 157 | #endif // GRPC_INTERNAL_COMPILER_CPP_PLUGIN_H |
nothing calls this directly
no test coverage detected