mirror of
https://github.com/golang/go
synced 2024-11-18 21:24:44 -07:00
f02a19dded
This change adds command line support for symbols. Symbols are formatted as '{name} {type} {range}', with children being preceded by a \t. Example: $ gopls symbols ~/tmp/foo/main.go $ $ x Variable 7:5-7:6 $ y Constant 9:7-9:8 $ Quux Struct 29:6-29:10 $ Do Method 37:16-37:18 $ X Field 30:2-30:3 $ Y Field 30:5-30:6 Updates golang/go#32875 Change-Id: I1272fce733fb12b67e3d6fb948f5bf3de4ca2ca1 Reviewed-on: https://go-review.googlesource.com/c/tools/+/203609 Run-TryBot: Rebecca Stambler <rstambler@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
main.go | ||
main.go.golden |