1
0
mirror of https://github.com/golang/go synced 2024-10-01 07:38:32 -06:00
The Go programming language
Go to file
Alan Donovan 8c66e887f7 go.tools/ssa: a blocking select's implicit "default" case should runtime-panic, not fall through.
Although such a control-flow path is impossible by
construction, we must avoid no-arg returns (even if
unreachable) in non-void functions.

Tested by adding a sanity-check that ssa.Return has the correct arity.
Also: added ssautil.Switches() test.

Fixes golang/go#7702

R=gri, axwalk
CC=golang-codereviews
https://golang.org/cl/46520043
2014-01-02 15:12:23 -05:00
astutil astutil: fix a comment corruption case 2013-12-16 14:43:29 -08:00
blog go.tools/blog: strip prefix when serving static content 2013-11-08 13:28:32 +11:00
call go.tools/pointer: use new callgraph API. 2013-09-25 17:17:42 -04:00
cmd go.tools/cmd/goimports: Fixed url 2014-01-02 11:02:13 -08:00
cover go.tools/cover: split parsing code out from cmd/cover 2013-12-03 20:55:21 -08:00
dashboard dashboard/app: properly limit commit description length 2013-12-17 12:14:27 +04:00
go go.tools/go.types: cleanups 2014-01-02 10:07:48 -08:00
godoc go.tools/godoc/static: add 'fmtImportEl' option to playground 2013-12-18 09:32:51 +11:00
importer go.tools/oracle: improvements to command set and performance. 2013-12-13 10:04:55 -05:00
imports go.tools/imports: fix fileset mismatch bug 2013-12-18 09:09:37 -08:00
oracle go.tools/go/types: use types.ChanDir instead of ast.ChanDir 2013-12-17 15:45:01 -08:00
playground go.tools/present: add support for non Go code execution 2013-10-14 14:14:08 -07:00
pointer go.tools/go/types: use types.ChanDir instead of ast.ChanDir 2013-12-17 15:45:01 -08:00
present go.tools/present: Open links with local (non absolute) URLs in the same window. 2013-12-28 21:10:40 -08:00
ssa go.tools/ssa: a blocking select's implicit "default" case should runtime-panic, not fall through. 2014-01-02 15:12:23 -05:00
.hgignore .hgignore: add comment setting policy 2013-12-20 16:28:57 -08:00
AUTHORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
codereview.cfg codereview: switch defaultcc to golang-codereviews 2013-12-20 10:54:33 -05:00
CONTRIBUTORS go.empty: prototype for new subrepository 2012-01-25 14:45:13 -05:00
LICENSE LICENSE: add 2012-03-17 15:20:58 +11:00
PATENTS go.empty: add PATENTS file to the subrepo. 2012-04-16 11:24:04 +10:00
README go.tools/README: minor correction. 2013-10-29 13:20:58 -04:00

This subrepository holds the source for various packages and tools that support
the Go programming language.

Some of the tools, godoc and vet for example, are included in binary Go distributions.
Others, including the Go oracle and the test coverage tool, can be fetched with "go get".

Packages include a type-checker for Go and an implementation of the
Static Single Assignment form (SSA) representation for Go programs.

To submit changes to this repository, see http://golang.org/doc/contribute.html.