Determines whether a node is a DeclarationStatement. Ideally this does not use Parent pointers, but it may use them to rule out a Block node that is part of `try` or `catch` or is the Block-like body of a function. NOTE: ECMA262 would just call this a Declaration
(node *Node)
| 651 | // |
| 652 | // NOTE: ECMA262 would just call this a Declaration |
| 653 | func IsDeclarationStatement(node *Node) bool { |
| 654 | return isDeclarationStatementKind(node.Kind) |
| 655 | } |
| 656 | |
| 657 | func isStatementKindButNotDeclarationKind(kind Kind) bool { |
| 658 | switch kind { |
no test coverage detected