(node)
| 17446 | FunctionFlags[FunctionFlags["AsyncGenerator"] = 3] = "AsyncGenerator"; |
| 17447 | })(FunctionFlags = ts.FunctionFlags || (ts.FunctionFlags = {})); |
| 17448 | function getFunctionFlags(node) { |
| 17449 | if (!node) { |
| 17450 | return 4 /* FunctionFlags.Invalid */; |
| 17451 | } |
| 17452 | var flags = 0 /* FunctionFlags.Normal */; |
| 17453 | switch (node.kind) { |
| 17454 | case 256 /* SyntaxKind.FunctionDeclaration */: |
| 17455 | case 213 /* SyntaxKind.FunctionExpression */: |
| 17456 | case 169 /* SyntaxKind.MethodDeclaration */: |
| 17457 | if (node.asteriskToken) { |
| 17458 | flags |= 1 /* FunctionFlags.Generator */; |
| 17459 | } |
| 17460 | // falls through |
| 17461 | case 214 /* SyntaxKind.ArrowFunction */: |
| 17462 | if (hasSyntacticModifier(node, 256 /* ModifierFlags.Async */)) { |
| 17463 | flags |= 2 /* FunctionFlags.Async */; |
| 17464 | } |
| 17465 | break; |
| 17466 | } |
| 17467 | if (!node.body) { |
| 17468 | flags |= 4 /* FunctionFlags.Invalid */; |
| 17469 | } |
| 17470 | return flags; |
| 17471 | } |
| 17472 | ts.getFunctionFlags = getFunctionFlags; |
| 17473 | function isAsyncFunction(node) { |
| 17474 | switch (node.kind) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…