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

Function visitConstructor

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

Source from the content-addressed store, hash-verified

93159 return updated;
93160 }
93161 function visitConstructor(node) {
93162 if (!shouldEmitFunctionLikeDeclaration(node)) {
93163 return undefined;
93164 }
93165 return factory.updateConstructorDeclaration(node,
93166 /*decorators*/ undefined,
93167 /*modifiers*/ undefined, ts.visitParameterList(node.parameters, visitor, context), transformConstructorBody(node.body, node));
93168 }
93169 function transformConstructorBody(body, constructor) {
93170 var parametersWithPropertyAssignments = constructor &&
93171 ts.filter(constructor.parameters, function (p) { return ts.isParameterPropertyDeclaration(p, constructor); });

Callers 2

visitTypeScriptFunction · 0.85

Calls 2

transformConstructorBodyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…