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

Function checkGrammarTypeArguments

test/fixtures/snapshot/typescript.js:88173–88176  ·  view source on GitHub ↗
(node, typeArguments)

Source from the content-addressed store, hash-verified

88171 return false;
88172 }
88173 function checkGrammarTypeArguments(node, typeArguments) {
88174 return checkGrammarForDisallowedTrailingComma(typeArguments) ||
88175 checkGrammarForAtLeastOneTypeArgument(node, typeArguments);
88176 }
88177 function checkGrammarTaggedTemplateChain(node) {
88178 if (node.questionDotToken || node.flags & 32 /* NodeFlags.OptionalChain */) {
88179 return grammarErrorOnNode(node.template, ts.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);

Callers 5

checkCallExpressionFunction · 0.85
checkTypeReferenceNodeFunction · 0.85
checkGrammarJsxElementFunction · 0.85

Tested by

no test coverage detected