(node)
| 69765 | return getTypeWithDefault(type, node.initializer); |
| 69766 | } |
| 69767 | function getTypeOfInitializer(node) { |
| 69768 | // Return the cached type if one is available. If the type of the variable was inferred |
| 69769 | // from its initializer, we'll already have cached the type. Otherwise we compute it now |
| 69770 | // without caching such that transient types are reflected. |
| 69771 | var links = getNodeLinks(node); |
| 69772 | return links.resolvedType || getTypeOfExpression(node); |
| 69773 | } |
| 69774 | function getInitialTypeOfVariableDeclaration(node) { |
| 69775 | if (node.initializer) { |
| 69776 | return getTypeOfInitializer(node.initializer); |
no test coverage detected
searching dependent graphs…