MCPcopy Create free account
hub / github.com/decomp/decomp / imports

Function imports

cmd/go-post/fix.go:286–288  ·  view source on GitHub ↗

imports returns true if f imports path.

(f *ast.File, path string)

Source from the content-addressed store, hash-verified

284
285// imports returns true if f imports path.
286func imports(f *ast.File, path string) bool {
287 return importSpec(f, path) != nil
288}
289
290// importSpec returns the import spec if f imports path,
291// or nil otherwise.

Callers 6

addImportFnFunction · 0.85
deleteImportFnFunction · 0.85
addDelImportFnFunction · 0.85
rewriteImportFnFunction · 0.85
addImportFunction · 0.85
renameFixTabFunction · 0.85

Calls 1

importSpecFunction · 0.85

Tested by 4

addImportFnFunction · 0.68
deleteImportFnFunction · 0.68
addDelImportFnFunction · 0.68
rewriteImportFnFunction · 0.68