1
0
mirror of https://github.com/golang/go synced 2024-09-23 23:20:14 -06:00
go/src/go
Rob Findley 7696c94334 [dev.regabi] go/types: type alias decl requires go1.9
This is a port of CL 289570 to go/types. It has some notable differences
with that CL:
 + A new _BadDecl error code is added, to indicate declarations with bad
   syntax.
 + declInfo is updated hold not an 'alias' bool, but an aliasPos
   token.Pos to identify the location of the type aliasing '=' token.
   This allows for error messages to be accurately placed on the '='

For #31793

Change-Id: Ib15969f9cd5be30228b7a4c6406f978d6fc58018
Reviewed-on: https://go-review.googlesource.com/c/go/+/291318
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2021-02-16 21:01:14 +00:00
..
ast go/ast: document invalid comment end positions with CRLF line endings 2020-11-18 06:29:09 +00:00
build [dev.regabi] reflect: support for register ABI on amd64 for reflect.(Value).Call 2021-02-16 15:51:50 +00:00
constant [dev.regabi] merge master 4481ad6eb6 into dev.regabi 2020-11-25 16:48:58 -05:00
doc all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
format all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
importer all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
internal [dev.regabi] go/types: adjust importer to match compiler importer 2021-02-09 14:15:43 +00:00
parser all: update to use os.ReadDir where appropriate 2020-12-09 19:12:27 +00:00
printer all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
scanner all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
token token: more descriptive panics 2020-10-14 22:35:32 +00:00
types [dev.regabi] go/types: type alias decl requires go1.9 2021-02-16 21:01:14 +00:00