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

Function checkTypeAliasDeclaration

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

Source from the content-addressed store, hash-verified

84657 });
84658 }
84659 function checkTypeAliasDeclaration(node) {
84660 // Grammar checking
84661 checkGrammarDecoratorsAndModifiers(node);
84662 checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_alias_name_cannot_be_0);
84663 checkExportsOnMergedDeclarations(node);
84664 checkTypeParameters(node.typeParameters);
84665 if (node.type.kind === 138 /* SyntaxKind.IntrinsicKeyword */) {
84666 if (!intrinsicTypeKinds.has(node.name.escapedText) || ts.length(node.typeParameters) !== 1) {
84667 error(node.type, ts.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types);
84668 }
84669 }
84670 else {
84671 checkSourceElement(node.type);
84672 registerForUnusedIdentifiersCheck(node);
84673 }
84674 }
84675 function computeEnumMemberValues(node) {
84676 var nodeLinks = getNodeLinks(node);
84677 if (!(nodeLinks.flags & 16384 /* NodeCheckFlags.EnumValuesComputed */)) {

Callers 1

checkSourceElementWorkerFunction · 0.85

Calls 9

checkTypeNameIsReservedFunction · 0.85
checkTypeParametersFunction · 0.85
checkSourceElementFunction · 0.85
errorFunction · 0.70
hasMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…