(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult)
| 4513 | } |
| 4514 | |
| 4515 | func (ec *executionContext) _SearchResult_startLine(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult) (ret graphql.Marshaler) { |
| 4516 | fc, err := ec.fieldContext_SearchResult_startLine(ctx, field) |
| 4517 | if err != nil { |
| 4518 | return graphql.Null |
| 4519 | } |
| 4520 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4521 | defer func() { |
| 4522 | if r := recover(); r != nil { |
| 4523 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4524 | ret = graphql.Null |
| 4525 | } |
| 4526 | }() |
| 4527 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4528 | ctx = rctx // use context from middleware stack in children |
| 4529 | return obj.StartLine, nil |
| 4530 | }) |
| 4531 | if err != nil { |
| 4532 | ec.Error(ctx, err) |
| 4533 | return graphql.Null |
| 4534 | } |
| 4535 | if resTmp == nil { |
| 4536 | if !graphql.HasFieldError(ctx, fc) { |
| 4537 | ec.Errorf(ctx, "must not be null") |
| 4538 | } |
| 4539 | return graphql.Null |
| 4540 | } |
| 4541 | res := resTmp.(int) |
| 4542 | fc.Result = res |
| 4543 | return ec.marshalNInt2int(ctx, field.Selections, res) |
| 4544 | } |
| 4545 | |
| 4546 | func (ec *executionContext) fieldContext_SearchResult_startLine(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4547 | fc = &graphql.FieldContext{ |
no test coverage detected