(node, checkMode, forceTuple)
| 79853 | } |
| 79854 | } |
| 79855 | function checkExpression(node, checkMode, forceTuple) { |
| 79856 | ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push("check" /* tracing.Phase.Check */, "checkExpression", { kind: node.kind, pos: node.pos, end: node.end, path: node.tracingPath }); |
| 79857 | var saveCurrentNode = currentNode; |
| 79858 | currentNode = node; |
| 79859 | instantiationCount = 0; |
| 79860 | var uninstantiatedType = checkExpressionWorker(node, checkMode, forceTuple); |
| 79861 | var type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode); |
| 79862 | if (isConstEnumObjectType(type)) { |
| 79863 | checkConstEnumAccess(node, type); |
| 79864 | } |
| 79865 | currentNode = saveCurrentNode; |
| 79866 | ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop(); |
| 79867 | return type; |
| 79868 | } |
| 79869 | function checkConstEnumAccess(node, type) { |
| 79870 | // enum object type for const enums are only permitted in: |
| 79871 | // - 'left' in property access |
no test coverage detected
searching dependent graphs…