MCPcopy Create free account
hub / github.com/nodejs/node / checkTemplateLiteralType

Function checkTemplateLiteralType

test/fixtures/snapshot/typescript.js:80861–80869  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

80859 registerForUnusedIdentifiersCheck(node);
80860 }
80861 function checkTemplateLiteralType(node) {
80862 for (var _i = 0, _a = node.templateSpans; _i < _a.length; _i++) {
80863 var span = _a[_i];
80864 checkSourceElement(span.type);
80865 var type = getTypeFromTypeNode(span.type);
80866 checkTypeAssignableTo(type, templateConstraintType, span.type);
80867 }
80868 getTypeFromTypeNode(node);
80869 }
80870 function checkImportType(node) {
80871 checkSourceElement(node.argument);
80872 if (node.assertions) {

Callers 1

checkSourceElementWorkerFunction · 0.85

Calls 3

checkSourceElementFunction · 0.85
getTypeFromTypeNodeFunction · 0.85
checkTypeAssignableToFunction · 0.85

Tested by

no test coverage detected