MCPcopy
hub / github.com/golang/protobuf / objectNamed

Method objectNamed

protoc-gen-go/grpc/grpc.go:67–70  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
67func (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.
73func (g *grpc) typeName(str string) string {

Callers 1

typeNameMethod · 0.95

Calls 2

RecordTypeUseMethod · 0.80
ObjectNamedMethod · 0.80

Tested by

no test coverage detected