Determines if a node is function-like (but is not a signature declaration)
(node *Node)
| 496 | |
| 497 | // Determines if a node is function-like (but is not a signature declaration) |
| 498 | func IsFunctionLikeDeclaration(node *Node) bool { |
| 499 | // TODO(rbuckton): Move `node != nil` test to call sites |
| 500 | return node != nil && isFunctionLikeDeclarationKind(node.Kind) |
| 501 | } |
| 502 | |
| 503 | func IsFunctionLikeKind(kind Kind) bool { |
| 504 | switch kind { |
no test coverage detected