We were omitting the parens in function completions like "(foo<>)()" because our check thought "foo" was the Fun in the outer CallExpr so it already had parens. Fix by tightening up logic to only omit parens for cases like "foo<>()" and "foo.bar<>()". Change-Id: Ia602b80275f72baa6cdf6d61c22d3f3a6cfc3019 GitHub-Last-Rev: 41fecf92617e0812ee6552d8c43789eae83889bd GitHub-Pull-Request: golang/tools#98 Reviewed-on: https://go-review.googlesource.com/c/tools/+/176944 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
|---|---|---|
| .. | ||
| analysis.go | ||
| completion.go | ||
| completion_format.go | ||
| completion_snippet.go | ||
| diagnostics.go | ||
| enums.go | ||
| format.go | ||
| highlight.go | ||
| hover.go | ||
| identifier.go | ||
| signature_help.go | ||
| source_test.go | ||
| symbols.go | ||
| util.go | ||
| view.go | ||