ObjectNamed, given a fully-qualified input type name as it appears in the input data, returns the descriptor for the message or enum with that name.
(typeName string)
| 951 | // ObjectNamed, given a fully-qualified input type name as it appears in the input data, |
| 952 | // returns the descriptor for the message or enum with that name. |
| 953 | func (g *Generator) ObjectNamed(typeName string) Object { |
| 954 | o, ok := g.typeNameToObject[typeName] |
| 955 | if !ok { |
| 956 | g.Fail("can't find object with type", typeName) |
| 957 | } |
| 958 | return o |
| 959 | } |
| 960 | |
| 961 | // AnnotatedAtoms is a list of atoms (as consumed by P) that records the file name and proto AST path from which they originated. |
| 962 | type AnnotatedAtoms struct { |
no test coverage detected