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

Function visitGetAccessor

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

Source from the content-addressed store, hash-verified

93255 return !(ts.nodeIsMissing(node.body) && ts.hasSyntacticModifier(node, 128 /* ModifierFlags.Abstract */));
93256 }
93257 function visitGetAccessor(node) {
93258 if (!shouldEmitAccessorDeclaration(node)) {
93259 return undefined;
93260 }
93261 var updated = factory.updateGetAccessorDeclaration(node,
93262 /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), visitPropertyNameOfClassElement(node), ts.visitParameterList(node.parameters, visitor, context),
93263 /*type*/ undefined, ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));
93264 if (updated !== node) {
93265 // While we emit the source map for the node after skipping decorators and modifiers,
93266 // we need to emit the comments for the original range.
93267 ts.setCommentRange(updated, node);
93268 ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));
93269 }
93270 return updated;
93271 }
93272 function visitSetAccessor(node) {
93273 if (!shouldEmitAccessorDeclaration(node)) {
93274 return undefined;

Callers 1

visitTypeScriptFunction · 0.85

Tested by

no test coverage detected