* Visits a generator function. * * @param node The node to visit.
(node)
| 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 | * |
no test coverage detected
searching dependent graphs…