Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make use of LoadAllSyntax compatible with the latest x/tools version
- Loading branch information
de1d1ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed?
de1d1ad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leonklingele : I made the change that broke this (sorry!)
LoadAllSyntax and LoadSyntax are now the equal in x/tools/go/packages, and the Go compiler will object to two identical switch cases, so that change breaks the compilation of this code.
Though I think more accurate solution would be to use the Need* bits instead...