(t *Type)
| 299 | } |
| 300 | |
| 301 | func (m *InferenceTypeMapper) Map(t *Type) *Type { |
| 302 | for i, inference := range m.n.inferences { |
| 303 | if t == inference.typeParameter { |
| 304 | if m.fixing && !inference.isFixed { |
| 305 | // Before we commit to a particular inference (and thus lock out any further inferences), |
| 306 | // we infer from any intra-expression inference sites we have collected. |
| 307 | m.c.inferFromIntraExpressionSites(m.n) |
| 308 | clearCachedInferences(m.n.inferences) |
| 309 | inference.isFixed = true |
| 310 | } |
| 311 | return m.c.getInferredType(m.n, i) |
| 312 | } |
| 313 | } |
| 314 | return t |
| 315 | } |
nothing calls this directly
no test coverage detected