(kind Kind)
| 481 | } |
| 482 | |
| 483 | func isFunctionLikeDeclarationKind(kind Kind) bool { |
| 484 | switch kind { |
| 485 | case KindFunctionDeclaration, |
| 486 | KindMethodDeclaration, |
| 487 | KindConstructor, |
| 488 | KindGetAccessor, |
| 489 | KindSetAccessor, |
| 490 | KindFunctionExpression, |
| 491 | KindArrowFunction: |
| 492 | return true |
| 493 | } |
| 494 | return false |
| 495 | } |
| 496 | |
| 497 | // Determines if a node is function-like (but is not a signature declaration) |
| 498 | func IsFunctionLikeDeclaration(node *Node) bool { |
no outgoing calls
no test coverage detected