-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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: CodeAction: quickfix to generate missing method #528
base: master
Are you sure you want to change the base?
Conversation
This PR (HEAD: c6ebf29) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
Message from xxx Lulu: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
This PR (HEAD: 498f74b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
This PR (HEAD: 164b097) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
e60c303
to
b2156e9
Compare
This PR (HEAD: b2156e9) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
This PR (HEAD: 28d6ca0) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
This PR (HEAD: 618f3dd) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
This PR (HEAD: bd6d7e3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
This PR (HEAD: 4793313) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
This PR (HEAD: ad593a7) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from Alan Donovan: Patch Set 11: (24 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
Message from xxx Lulu: Patch Set 11: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
Message from Alan Donovan: Patch Set 11: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
This PR (HEAD: 68e660b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from xxx Lulu: Patch Set 12: (24 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
This PR (HEAD: 9fda81b) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from xxx Lulu: Patch Set 12: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
This PR (HEAD: 5a3acd9) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from Alan Donovan: Patch Set 14: (34 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
Message from xxx Lulu: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
Message from xxx Lulu: Patch Set 14: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
This PR (HEAD: 1ab9c55) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from xxx Lulu: Patch Set 14: (36 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
1ab9c55
to
393f468
Compare
This PR (HEAD: 393f468) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
- move FormatTypeParams from internal/golang/types_format.go to internal/util/typesutil.go - resolve TODO that check if the type is function-local early
393f468
to
2a9e003
Compare
- postpone param and return type caculation to Emit - add marker test - remove unnecessary test in stub.txt that test local type can not be stubbed
2a9e003
to
0bb1109
Compare
This PR (HEAD: 0bb1109) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/tools/+/617619. Important tips:
|
Message from xxx Lulu: Patch Set 17: (2 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/617619. |
Providing a code action to generate stub methods when encountering
“type X has no field or method Y” error.
generating diffs to a shared function.
stubMethodsFixer to stubMethodsIfaceFixer(for interfaces)
to make it not vague about which kind of stub it actually be.
My naming is poor...
for return values, currently only implement inferring from variable
assignment and parameter assignment, there seems to be
many different cases, not sure which set to implement.
There is a detailed test that demonstrated this pr.
Fixes golang/go#69692