Substitute replaces references to type params in the provided type definition with the corresponding concrete types.
(typ types.Type)
| 147 | // Substitute replaces references to type params in the provided type definition |
| 148 | // with the corresponding concrete types. |
| 149 | func (r *Resolver) Substitute(typ types.Type) types.Type { |
| 150 | if r == nil || typ == nil { |
| 151 | return typ // No substitutions to be made. |
| 152 | } |
| 153 | return r.subster.Type(typ) |
| 154 | } |
| 155 | |
| 156 | // SubstituteAll same as Substitute, but accepts a TypeList are returns |
| 157 | // substitution results as a slice in the same order. |
no test coverage detected