]> Cypherpunks repositories - gostls13.git/commit
go/parser: parse import specs the same way as the syntax parser
authorRobert Griesemer <gri@golang.org>
Wed, 31 Aug 2022 18:26:43 +0000 (11:26 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 2 Sep 2022 02:09:03 +0000 (02:09 +0000)
commita31c062c9fbf212b244fbece6295a2a4279459e0
treea9c87944f793f22e33d2b2e5844a5cc6181b168b
parent042f051c03d35fb0adcb0b6a7e2d78a35342ae98
go/parser: parse import specs the same way as the syntax parser

This results in better error recovery and allows us to use the
same tests for go/types and types2.

For #54511.

Change-Id: Ic11a9dafb8c62e0cb952b3924d55a28b438241c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/427154
Run-TryBot: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
src/go/parser/parser.go
src/go/types/resolver.go
src/go/types/testdata/fixedbugs/issue43190.go