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

Function nodeHasAnyModifiersExcept

test/fixtures/snapshot/typescript.js:88016–88018  ·  view source on GitHub ↗
(node, allowedModifier)

Source from the content-addressed store, hash-verified

88014 }
88015 }
88016 function nodeHasAnyModifiersExcept(node, allowedModifier) {
88017 return node.modifiers.length > 1 || node.modifiers[0].kind !== allowedModifier;
88018 }
88019 function checkGrammarAsyncModifier(node, asyncModifier) {
88020 switch (node.kind) {
88021 case 169 /* SyntaxKind.MethodDeclaration */:

Callers 1

shouldReportBadModifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected