Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gopls/internal/goxls/imports: fix imports support Go+ style func #33

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

visualfc
Copy link
Member

@visualfc visualfc commented Oct 21, 2023

Go+ style func: startLower func and overload

pkgName = f.Name.Name
for name := range f.Scope.Objects {
}
// goxls: export Go+ style func, startLower and overload (GopPackage)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this code size is big and should be written in fix_gox.go

@@ -1483,6 +1484,7 @@ func loadExportsFromFiles(ctx context.Context, env *ProcessEnv, dir string, incl
var pkgName string
var exports []string
fset := token.NewFileSet()
var scopes []*ast.Scope
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't change too many places.

@xushiwei xushiwei merged commit 780f016 into goplus:goplus Oct 21, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants