1
0
mirror of https://github.com/golang/go synced 2024-11-23 05:00:07 -07:00
go/doc
Robert Griesemer 851e98f0ee spec: remove need for separate Function production (cleanup)
The EBNF production

	Function = Signature FunctionBody .

was used in FunctionDecl, MethodDecl, and FunctionLit, but only
for the latter it shortened the syntax slightly.

This change "inlines" Function which simplifies FunctionDecl and
MethodDecl and gets rid of the Function production.

This has no impact on the specified language. Also, the Function
production is never referred to by the prose, so it's safe to
remove it from the spec.

Finally, neither go/ast nor go/parser have a representation of
this production via a corresponding node or parse function, so
no possibly valuable documentation is lost, either.

Change-Id: Ia2875d31c6ec2d2079081ef481e50bad4f43c694
Reviewed-on: https://go-review.googlesource.com/91515
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
2018-02-02 00:22:16 +00:00
..
articles doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
codewalk
devel doc: document Go 1.8.6 2018-01-23 02:15:53 +00:00
editors doc: rename Gogland to GoLand 2017-11-22 01:18:45 +00:00
gopher
play
progs cmd/cgo: support niladic function-like macros 2017-08-30 18:28:58 +00:00
asm.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
cmd.html doc: website: changed link for cover 2017-06-18 16:19:31 +00:00
code.html doc: Proper default value for the $GOPATH. 2017-06-28 05:47:47 +00:00
conduct.html doc: remove Sarah Adams from conduct working group contacts 2018-01-25 17:27:24 +00:00
contrib.html doc/contrib.html: fix outdated link 2017-12-11 22:15:38 +00:00
contribute.html doc: fix the closing tag in contribute.html 2018-01-29 19:08:24 +00:00
debugging_with_gdb.html doc: remove interior <code> spaces in debugging, diagnostics docs 2018-01-09 21:48:03 +00:00
diagnostics.html doc: remove interior <code> spaces in debugging, diagnostics docs 2018-01-09 21:48:03 +00:00
docs.html doc: fix a sentence position. 2017-11-25 17:06:50 +00:00
editors.html doc: fix bad html tags in editors.html 2017-12-07 17:31:51 +00:00
effective_go.html doc: fix typo in Effective Go: s/ReaderWriter/ReadWriter/ 2017-11-23 04:07:39 +00:00
gccgo_contribute.html
gccgo_install.html doc: update GCC release info in gccgo_install 2017-10-03 14:33:14 +00:00
go1.1.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.2.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.3.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go1.4.html
go1.5.html
go1.6.html
go1.7.html doc: fix broken links in 1.7 release docs 2016-11-07 18:51:29 +00:00
go1.8.html doc: fix broken link in go1.8.html 2017-02-22 23:51:12 +00:00
go1.9.html doc/1.9: add mention of net/http.LocalAddrContextKey 2017-08-28 19:21:54 +00:00
go1.10.html doc: fix two small mistakes in 1.10 release notes 2018-01-29 18:34:00 +00:00
go1.html doc: change anchor URLs from golang.org/dl/ to /dl/ 2018-01-20 04:13:12 +00:00
go1compat.html doc: s/tool chain/toolchain/ 2018-01-09 21:47:03 +00:00
go_faq.html doc/faq: clarify that concurrent maps reads are safe 2018-01-20 01:58:21 +00:00
go_mem.html
go_spec.html spec: remove need for separate Function production (cleanup) 2018-02-02 00:22:16 +00:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html doc: hide content blocked by GFW when served in CN 2017-09-11 14:59:59 +00:00
ie.css
install-source.html doc: add GOMIPS to source installation docs 2018-01-30 19:54:01 +00:00
install.html doc: change anchor URLs from golang.org/dl/ to /dl/ 2018-01-20 04:13:12 +00:00
root.html doc: change anchor URLs from golang.org/dl/ to /dl/ 2018-01-20 04:13:12 +00:00
security.html doc: dissuade people from using PGP for security reports 2017-04-17 18:33:08 +00:00
share.png
tos.html