fieldType returns the type of the i-th field of the given struct after substituting type parameters with concrete types for nested context.
(t *types.Struct, i int)
| 620 | // fieldType returns the type of the i-th field of the given struct |
| 621 | // after substituting type parameters with concrete types for nested context. |
| 622 | func (fc *funcContext) fieldType(t *types.Struct, i int) types.Type { |
| 623 | return fc.typeResolver.Substitute(t.Field(i).Type()) |
| 624 | } |
| 625 | |
| 626 | func (fc *funcContext) selectionOf(e *ast.SelectorExpr) (typesutil.Selection, bool) { |
| 627 | if sel, ok := fc.pkgCtx.Selections[e]; ok { |
no test coverage detected