diff --git a/cue/ast/ast.go b/cue/ast/ast.go index 6959747a8..1a6841198 100644 --- a/cue/ast/ast.go +++ b/cue/ast/ast.go @@ -1053,6 +1053,8 @@ outer: // VisitImports iterates through the import declarations in the file. // // Deprecated: use [File.ImportDecls]. +// +//go:fix inline func (f *File) VisitImports(fn func(d *ImportDecl)) { for d := range f.ImportDecls() { fn(d) diff --git a/internal/mod/modfiledata/modfile.go b/internal/mod/modfiledata/modfile.go index bf4de1d33..b6cc3e760 100644 --- a/internal/mod/modfiledata/modfile.go +++ b/internal/mod/modfiledata/modfile.go @@ -81,6 +81,8 @@ func (f *File) QualifiedModule() string { // Deprecated: this method is misnamed; use [File.ModuleRootPath] // instead. +// +//go:fix inline func (f *File) ModulePath() string { return f.ModuleRootPath() }