(specifier *ast.Expression)
| 5297 | } |
| 5298 | |
| 5299 | func isModuleSpecifierMissingOrEmpty(specifier *ast.Expression) bool { |
| 5300 | if ast.NodeIsMissing(specifier) { |
| 5301 | return true |
| 5302 | } |
| 5303 | node := specifier |
| 5304 | if ast.IsExternalModuleReference(node) { |
| 5305 | node = node.Expression() |
| 5306 | } |
| 5307 | if !ast.IsStringLiteralLike(node) { |
| 5308 | return true |
| 5309 | } |
| 5310 | return node.Text() == "" |
| 5311 | } |
| 5312 | |
| 5313 | func hasDocComment(file *ast.SourceFile, position int) bool { |
| 5314 | token := astnav.GetTokenAtPosition(file, position) |
no test coverage detected