mirror of https://github.com/golang/go.git
In type assertion expressions and type switch clauses we now infer the type from which candidates must be assertable. For example in: var foo io.Writer bar := foo.(<>) When suggesting concrete types we will prefer types that actually implement io.Writer. I also added support for the "*" type name modifier. Using the above example: bar := foo.(*<>) we will prefer type T such that *T implements io.Writer. Change-Id: Ib483bf5e7b339338adc1bfb17b34bc4050d05ad1 GitHub-Last-Rev: 965b028cc00b036019bfdc97561d9e09b7b912ec GitHub-Pull-Request: golang/tools#123 Reviewed-on: https://go-review.googlesource.com/c/tools/+/183137 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| analysis.go | ||
| completion.go | ||
| completion_format.go | ||
| completion_snippet.go | ||
| diagnostics.go | ||
| diagnostics_test.go | ||
| enums.go | ||
| format.go | ||
| highlight.go | ||
| hover.go | ||
| identifier.go | ||
| references.go | ||
| rename.go | ||
| rename_check.go | ||
| signature_help.go | ||
| source_test.go | ||
| suggested_fix.go | ||
| suggested_fix_experimental.go | ||
| symbols.go | ||
| util.go | ||
| view.go | ||