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

Function shouldEmitFunctionLikeDeclaration

test/fixtures/snapshot/typescript.js:93142–93144  ·  view source on GitHub ↗

* Determines whether to emit a function-like declaration. We should not emit the * declaration if it does not have a body. * * @param node The declaration node.

(node)

Source from the content-addressed store, hash-verified

93140 * @param node The declaration node.
93141 */
93142 function shouldEmitFunctionLikeDeclaration(node) {
93143 return !ts.nodeIsMissing(node.body);
93144 }
93145 function visitPropertyDeclaration(node) {
93146 if (node.flags & 16777216 /* NodeFlags.Ambient */ || ts.hasSyntacticModifier(node, 128 /* ModifierFlags.Abstract */)) {
93147 return undefined;

Callers 4

visitConstructorFunction · 0.85
visitMethodDeclarationFunction · 0.85
visitFunctionDeclarationFunction · 0.85
visitFunctionExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…