MCPcopy Create free account
hub / github.com/nodejs/node / shouldEmitAccessorDeclaration

Function shouldEmitAccessorDeclaration

test/fixtures/snapshot/typescript.js:93254–93256  ·  view source on GitHub ↗

* Determines whether to emit an accessor declaration. We should not emit the * declaration if it does not have a body and is abstract. * * @param node The declaration node.

(node)

Source from the content-addressed store, hash-verified

93252 * @param node The declaration node.
93253 */
93254 function shouldEmitAccessorDeclaration(node) {
93255 return !(ts.nodeIsMissing(node.body) && ts.hasSyntacticModifier(node, 128 /* ModifierFlags.Abstract */));
93256 }
93257 function visitGetAccessor(node) {
93258 if (!shouldEmitAccessorDeclaration(node)) {
93259 return undefined;

Callers 2

visitGetAccessorFunction · 0.85
visitSetAccessorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected