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

Function checkClassDeclaration

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

Source from the content-addressed store, hash-verified

84069 registerForUnusedIdentifiersCheck(node);
84070 }
84071 function checkClassDeclaration(node) {
84072 if (ts.some(node.decorators) && ts.some(node.members, function (p) { return ts.hasStaticModifier(p) && ts.isPrivateIdentifierClassElementDeclaration(p); })) {
84073 grammarErrorOnNode(node.decorators[0], ts.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator);
84074 }
84075 if (!node.name && !ts.hasSyntacticModifier(node, 512 /* ModifierFlags.Default */)) {
84076 grammarErrorOnFirstToken(node, ts.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name);
84077 }
84078 checkClassLikeDeclaration(node);
84079 ts.forEach(node.members, checkSourceElement);
84080 registerForUnusedIdentifiersCheck(node);
84081 }
84082 function checkClassLikeDeclaration(node) {
84083 checkGrammarClassLikeDeclaration(node);
84084 checkDecorators(node);

Callers 1

checkSourceElementWorkerFunction · 0.85

Calls 6

grammarErrorOnNodeFunction · 0.85
grammarErrorOnFirstTokenFunction · 0.85
someMethod · 0.80
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…