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

Function visitGenerator

test/fixtures/snapshot/typescript.js:102114–102123  ·  view source on GitHub ↗

* Visits a generator function. * * @param node The node to visit.

(node)

Source from the content-addressed store, hash-verified

102112 * @param node The node to visit.
102113 */
102114 function visitGenerator(node) {
102115 switch (node.kind) {
102116 case 256 /* SyntaxKind.FunctionDeclaration */:
102117 return visitFunctionDeclaration(node);
102118 case 213 /* SyntaxKind.FunctionExpression */:
102119 return visitFunctionExpression(node);
102120 default:
102121 return ts.Debug.failBadSyntaxKind(node);
102122 }
102123 }
102124 /**
102125 * Visits a function declaration.
102126 *

Callers 1

visitorFunction · 0.85

Calls 2

visitFunctionDeclarationFunction · 0.85
visitFunctionExpressionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…