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

Function visitSetAccessor

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

Source from the content-addressed store, hash-verified

93270 return updated;
93271 }
93272 function visitSetAccessor(node) {
93273 if (!shouldEmitAccessorDeclaration(node)) {
93274 return undefined;
93275 }
93276 var updated = factory.updateSetAccessorDeclaration(node,
93277 /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), visitPropertyNameOfClassElement(node), ts.visitParameterList(node.parameters, visitor, context), ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));
93278 if (updated !== node) {
93279 // While we emit the source map for the node after skipping decorators and modifiers,
93280 // we need to emit the comments for the original range.
93281 ts.setCommentRange(updated, node);
93282 ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));
93283 }
93284 return updated;
93285 }
93286 function visitFunctionDeclaration(node) {
93287 if (!shouldEmitFunctionLikeDeclaration(node)) {
93288 return factory.createNotEmittedStatement(node);

Callers 1

visitTypeScriptFunction · 0.85

Tested by

no test coverage detected