(node *Node)
| 2569 | } |
| 2570 | |
| 2571 | func GetDeclarationContainer(node *Node) *Node { |
| 2572 | return FindAncestor(GetRootDeclaration(node), func(node *Node) bool { |
| 2573 | switch node.Kind { |
| 2574 | case KindVariableDeclaration, |
| 2575 | KindVariableDeclarationList, |
| 2576 | KindImportSpecifier, |
| 2577 | KindNamedImports, |
| 2578 | KindNamespaceImport, |
| 2579 | KindImportClause: |
| 2580 | return false |
| 2581 | default: |
| 2582 | return true |
| 2583 | } |
| 2584 | }).Parent |
| 2585 | } |
| 2586 | |
| 2587 | // Indicates that a symbol is an alias that does not merge with a local declaration. |
| 2588 | // OR Is a JSContainer which may merge an alias with a local declaration |
no test coverage detected