(node *Node)
| 3016 | } |
| 3017 | |
| 3018 | func HasInitializer(node *Node) bool { |
| 3019 | switch node.Kind { |
| 3020 | case KindVariableDeclaration, KindParameter, KindBindingElement, KindPropertyDeclaration, |
| 3021 | KindPropertyAssignment, KindEnumMember, KindForStatement, KindForInStatement, KindForOfStatement, |
| 3022 | KindJsxAttribute: |
| 3023 | return node.Initializer() != nil |
| 3024 | default: |
| 3025 | return false |
| 3026 | } |
| 3027 | } |
| 3028 | |
| 3029 | func IsVariableParameterOrProperty(node *Node) bool { |
| 3030 | switch node.Kind { |
no test coverage detected