(node)
| 79601 | return false; |
| 79602 | } |
| 79603 | function isConstContext(node) { |
| 79604 | var parent = node.parent; |
| 79605 | return ts.isAssertionExpression(parent) && ts.isConstTypeReference(parent.type) || |
| 79606 | ts.isJSDocTypeAssertion(parent) && ts.isConstTypeReference(ts.getJSDocTypeAssertionType(parent)) || |
| 79607 | (ts.isParenthesizedExpression(parent) || ts.isArrayLiteralExpression(parent) || ts.isSpreadElement(parent)) && isConstContext(parent) || |
| 79608 | (ts.isPropertyAssignment(parent) || ts.isShorthandPropertyAssignment(parent) || ts.isTemplateSpan(parent)) && isConstContext(parent.parent); |
| 79609 | } |
| 79610 | function checkExpressionForMutableLocation(node, checkMode, contextualType, forceTuple) { |
| 79611 | var type = checkExpression(node, checkMode, forceTuple); |
| 79612 | return isConstContext(node) || ts.isCommonJsExportedExpression(node) ? getRegularTypeOfLiteralType(type) : |
no outgoing calls
no test coverage detected
searching dependent graphs…