Given a type name defined in a .proto, return its object. Also record that we're using it, to guarantee the associated import.
(name string)
| 65 | // Given a type name defined in a .proto, return its object. |
| 66 | // Also record that we're using it, to guarantee the associated import. |
| 67 | func (g *grpc) objectNamed(name string) generator.Object { |
| 68 | g.gen.RecordTypeUse(name) |
| 69 | return g.gen.ObjectNamed(name) |
| 70 | } |
| 71 | |
| 72 | // Given a type name defined in a .proto, return its name as we will print it. |
| 73 | func (g *grpc) typeName(str string) string { |
no test coverage detected