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

Function visitPropertyDeclaration

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

Source from the content-addressed store, hash-verified

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;
93148 }
93149 var updated = factory.updatePropertyDeclaration(node,
93150 /*decorators*/ undefined, ts.visitNodes(node.modifiers, visitor, ts.isModifier), visitPropertyNameOfClassElement(node),
93151 /*questionOrExclamationToken*/ undefined,
93152 /*type*/ undefined, ts.visitNode(node.initializer, visitor));
93153 if (updated !== node) {
93154 // While we emit the source map for the node after skipping decorators and modifiers,
93155 // we need to emit the comments for the original range.
93156 ts.setCommentRange(updated, node);
93157 ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));
93158 }
93159 return updated;
93160 }
93161 function visitConstructor(node) {
93162 if (!shouldEmitFunctionLikeDeclaration(node)) {
93163 return undefined;

Callers 4

visitTypeScriptFunction · 0.85
visitorWorkerFunction · 0.85
classElementVisitorFunction · 0.85

Calls 8

accessPrivateIdentifierFunction · 0.85
getPendingExpressionsFunction · 0.85
assertMethod · 0.80
someMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…