summaryrefslogtreecommitdiff
path: root/src/cmd/api/goapi.go
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-09-05 10:04:16 -0400
committerKeith Randall <khr@golang.org>2014-09-05 10:04:16 -0400
commit3f94b79d4827411c92a95d8e3c76049a3784e3e0 (patch)
treeeac953b858b2d8f49e96e9853740e879663975b4 /src/cmd/api/goapi.go
parent1dba806d6a948976a2ecdb08a7c4839ff0a42766 (diff)
downloadgo-3f94b79d4827411c92a95d8e3c76049a3784e3e0.tar.gz
runtime: convert panic/recover to Go
created panic1.go just so diffs were available. After this CL is in, I'd like to move panic.go -> defer.go and panic1.go -> panic.go. LGTM=rsc R=rsc, khr CC=golang-codereviews https://codereview.appspot.com/133530045 Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/api/goapi.go')
-rw-r--r--src/cmd/api/goapi.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index 18c36bb17..7e8f85848 100644
--- a/src/cmd/api/goapi.go
+++ b/src/cmd/api/goapi.go
@@ -381,6 +381,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) {
src := "package runtime; type (" +
" _defer struct{};" +
" _func struct{};" +
+ " _panic struct{};" +
" _select struct{}; " +
" _type struct{};" +
" alg struct{};" +