(statement *Node, id *Node)
| 2428 | } |
| 2429 | |
| 2430 | func NodeHasName(statement *Node, id *Node) bool { |
| 2431 | name := statement.Name() |
| 2432 | if name != nil { |
| 2433 | return IsIdentifier(name) && name.Text() == id.Text() |
| 2434 | } |
| 2435 | if IsVariableStatement(statement) { |
| 2436 | declarations := statement.AsVariableStatement().DeclarationList.AsVariableDeclarationList().Declarations.Nodes |
| 2437 | return core.Some(declarations, func(d *Node) bool { return NodeHasName(d, id) }) |
| 2438 | } |
| 2439 | return false |
| 2440 | } |
| 2441 | |
| 2442 | func IsInternalModuleImportEqualsDeclaration(node *Node) bool { |
| 2443 | return IsImportEqualsDeclaration(node) && node.AsImportEqualsDeclaration().ModuleReference.Kind != KindExternalModuleReference |
no test coverage detected