(typeNode, annotatedDeclaration, type)
| 53938 | return result; |
| 53939 | } |
| 53940 | function typeNodeIsEquivalentToType(typeNode, annotatedDeclaration, type) { |
| 53941 | var typeFromTypeNode = getTypeFromTypeNode(typeNode); |
| 53942 | if (typeFromTypeNode === type) { |
| 53943 | return true; |
| 53944 | } |
| 53945 | if (ts.isParameter(annotatedDeclaration) && annotatedDeclaration.questionToken) { |
| 53946 | return getTypeWithFacts(type, 524288 /* TypeFacts.NEUndefined */) === typeFromTypeNode; |
| 53947 | } |
| 53948 | return false; |
| 53949 | } |
| 53950 | function serializeReturnTypeForSignature(context, type, signature, includePrivateSymbol, bundled) { |
| 53951 | if (!isErrorType(type) && context.enclosingDeclaration) { |
| 53952 | var annotation = signature.declaration && ts.getEffectiveReturnTypeNode(signature.declaration); |
no test coverage detected
searching dependent graphs…