AddImport adds an import to the import map.
(imp ImportMeta, noSRI bool)
| 303 | |
| 304 | // AddImport adds an import to the import map. |
| 305 | func (im *ImportMap) AddImport(imp ImportMeta, noSRI bool) (warnings []string, errors []error) { |
| 306 | return im.addImport(set.New[string](), imp, false, nil, noSRI) |
| 307 | } |
| 308 | |
| 309 | // addImport adds an import to the import map. |
| 310 | func (im *ImportMap) addImport(mark *set.Set[string], imp ImportMeta, indirect bool, targetImports *Imports, noSRI bool) (warnings []string, errors []error) { |
no test coverage detected