(type, checker, node, failedAliasResolution)
| 139891 | } |
| 139892 | GoToDefinition.getTypeDefinitionAtPosition = getTypeDefinitionAtPosition; |
| 139893 | function definitionFromType(type, checker, node, failedAliasResolution) { |
| 139894 | return ts.flatMap(type.isUnion() && !(type.flags & 32 /* TypeFlags.Enum */) ? type.types : [type], function (t) { |
| 139895 | return t.symbol && getDefinitionFromSymbol(checker, t.symbol, node, failedAliasResolution); |
| 139896 | }); |
| 139897 | } |
| 139898 | function tryGetReturnTypeOfFunction(symbol, type, checker) { |
| 139899 | // If the type is just a function's inferred type, |
| 139900 | // go-to-type should go to the return type instead, since go-to-definition takes you to the function anyway. |
no test coverage detected