MCPcopy Create free account
hub / github.com/microsoft/typescript-go / getInferredTypes

Method getInferredTypes

internal/checker/inference.go:1372–1378  ·  view source on GitHub ↗
(n *InferenceContext)

Source from the content-addressed store, hash-verified

1370}
1371
1372func (c *Checker) getInferredTypes(n *InferenceContext) []*Type {
1373 result := make([]*Type, len(n.inferences))
1374 for i := range n.inferences {
1375 result[i] = c.getInferredType(n, i)
1376 }
1377 return result
1378}
1379
1380func (c *Checker) getMapperFromContext(n *InferenceContext) *TypeMapper {
1381 if n == nil {

Callers 3

inferJsxTypeArgumentsMethod · 0.95
inferTypeArgumentsMethod · 0.95

Calls 3

getInferredTypeMethod · 0.95
lenFunction · 0.85
makeFunction · 0.50

Tested by

no test coverage detected