(node *Node)
| 4413 | } |
| 4414 | |
| 4415 | func IsAsyncFunction(node *Node) bool { |
| 4416 | switch node.Kind { |
| 4417 | case KindFunctionDeclaration, KindFunctionExpression, KindArrowFunction, KindMethodDeclaration: |
| 4418 | data := node.BodyData() |
| 4419 | return data.Body != nil && data.AsteriskToken == nil && HasSyntacticModifier(node, ModifierFlagsAsync) |
| 4420 | } |
| 4421 | return false |
| 4422 | } |
| 4423 | |
| 4424 | /** |
| 4425 | * Gets the most likely element type for a TypeNode. This is not an exhaustive test |
no test coverage detected