MCPcopy Index your code
hub / github.com/nodejs/node / checkExpression

Function checkExpression

test/fixtures/snapshot/typescript.js:79855–79868  ·  view source on GitHub ↗
(node, checkMode, forceTuple)

Source from the content-addressed store, hash-verified

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

Calls 6

checkExpressionWorkerFunction · 0.85
isConstEnumObjectTypeFunction · 0.85
checkConstEnumAccessFunction · 0.85
popMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…