(list []*bindings.ImportSpecifier, target *bindings.ImportSpecifier)
| 275 | } |
| 276 | |
| 277 | func containsImportSpecifier(list []*bindings.ImportSpecifier, target *bindings.ImportSpecifier) bool { |
| 278 | for _, s := range list { |
| 279 | if s.Name == target.Name && s.Alias == target.Alias && s.IsTypeOnly == target.IsTypeOnly { |
| 280 | return true |
| 281 | } |
| 282 | } |
| 283 | return false |
| 284 | } |
| 285 | |
| 286 | // sortImports stabilizes the emission order for the imports list and the |
| 287 | // specifiers within each entry. Without this the output would depend on the |
no outgoing calls
no test coverage detected
searching dependent graphs…