LookupFile looks up a file by name.
(name string)
| 405 | |
| 406 | // LookupFile looks up a file by name. |
| 407 | func (r *Registry) LookupFile(name string) (*File, error) { |
| 408 | f, ok := r.files[name] |
| 409 | if !ok { |
| 410 | return nil, fmt.Errorf("no such file given: %s", name) |
| 411 | } |
| 412 | return f, nil |
| 413 | } |
| 414 | |
| 415 | func (r *Registry) GetUseProto3FieldSemantics() bool { |
| 416 | return r.useProto3FieldSemantics |
no outgoing calls