Repository navigation
Tags
Tags
allow godef in stdlib Overlays in the standard library aren't allowed, which prevents using godef there because we always provide an overlay for the current file being edited, but usually we haven't changed the file, so we can avoid an overlay in that case, thus allowing jump-to-definition when inside the stdlib. Also update the tools version to make things work on the latest Go version.
Switching to using x/tools/go/packages This also replaces the custom parser and type checker with the standard ones. Right now this is approxmately half the speed of the old one, but it works and is correct in more cases, and works on top of modules. There are some minor differences in output, things like files may be absolute now, and constants are more likely to know their values etc. Also it does not currently support passing an expression on the command line.