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

Function isFunctionOrClassExpression

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

Source from the content-addressed store, hash-verified

141575 }
141576 }
141577 function isFunctionOrClassExpression(node) {
141578 switch (node.kind) {
141579 case 214 /* SyntaxKind.ArrowFunction */:
141580 case 213 /* SyntaxKind.FunctionExpression */:
141581 case 226 /* SyntaxKind.ClassExpression */:
141582 return true;
141583 default:
141584 return false;
141585 }
141586 }
141587 function cleanText(text) {
141588 // Truncate to maximum amount of characters as we don't want to do a big replace operation.
141589 text = text.length > maxLength ? text.substring(0, maxLength) + "..." : text;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected