( ctx context.Context, inputConfig bufconfig.InputConfig, )
| 418 | } |
| 419 | |
| 420 | func (a *refParser) GetDirRefForInputConfig( |
| 421 | ctx context.Context, |
| 422 | inputConfig bufconfig.InputConfig, |
| 423 | ) (DirRef, error) { |
| 424 | parsedRef, err := a.getParsedRefForInputConfig(ctx, inputConfig, dirFormats) |
| 425 | if err != nil { |
| 426 | return nil, err |
| 427 | } |
| 428 | parsedDirRef, ok := parsedRef.(internal.ParsedDirRef) |
| 429 | if !ok { |
| 430 | // this should never happen |
| 431 | return nil, fmt.Errorf("invalid ParsedRef type for source: %T", parsedRef) |
| 432 | } |
| 433 | return newDirRef(parsedDirRef), nil |
| 434 | } |
| 435 | |
| 436 | func (a *refParser) GetDirOrProtoFileRef( |
| 437 | ctx context.Context, |
nothing calls this directly
no test coverage detected