mirror of https://github.com/golang/go.git
In cases like: foo.<> bar = 123 We weren't detecting that the selector preceding <> was a statement. The above is parsed as "foo.<>bar = 123", so it looks like <> is contained in an AssignStmt. This matters because we give different postfix completions depending on whether it is valid to replace the surrounding selector with a statement or not. Updates golang/go#45718. Change-Id: I8f74505b2c8c7060f1e94433904ff0a987d0cc57 Reviewed-on: https://go-review.googlesource.com/c/tools/+/313269 Run-TryBot: Muir Manders <muir@mnd.rs> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Trust: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| literal.go | ||
| literal.go.golden | ||
| literal_snippets.go.in | ||
| postfix.go | ||
| snippets.go.golden | ||
| snippets.go.in | ||