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

Function visitFunctionDeclaration

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

Source from the content-addressed store, hash-verified

93284 return updated;
93285 }
93286 function visitFunctionDeclaration(node) {
93287 if (!shouldEmitFunctionLikeDeclaration(node)) {
93288 return factory.createNotEmittedStatement(node);
93289 }
93290 var updated = factory.updateFunctionDeclaration(node,
93291 /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, node.name,
93292 /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context),
93293 /*type*/ undefined, ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));
93294 if (isExportOfNamespace(node)) {
93295 var statements = [updated];
93296 addExportMemberAssignment(statements, node);
93297 return statements;
93298 }
93299 return updated;
93300 }
93301 function visitFunctionExpression(node) {
93302 if (!shouldEmitFunctionLikeDeclaration(node)) {
93303 return factory.createOmittedExpression();

Callers 6

visitTypeScriptFunction · 0.85
visitorWorkerFunction · 0.85
visitGeneratorFunction · 0.85
topLevelVisitorFunction · 0.85
topLevelNestedVisitorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…