(node *ast.Node)
| 445 | } |
| 446 | |
| 447 | func findContainingModuleSpecifier(node *ast.Node) *ast.Node { |
| 448 | for current := node; current != nil; current = current.Parent { |
| 449 | if ast.IsAnyImportOrReExport(current) || ast.IsRequireCall(current, true /*requireStringLiteralLikeArgument*/) || ast.IsImportCall(current) { |
| 450 | if moduleSpecifier := ast.GetExternalModuleName(current); moduleSpecifier != nil && ast.IsStringLiteralLike(moduleSpecifier) { |
| 451 | return moduleSpecifier |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | return nil |
| 456 | } |
| 457 | |
| 458 | func (r *sourceDefResolver) findDeclarationsInFile( |
| 459 | fileName string, |
no test coverage detected