]> Cypherpunks repositories - gostls13.git/commit
go/parser: clean up unnecessary arguments and replace an if statement
authorRobert Findley <rfindley@google.com>
Fri, 8 Oct 2021 15:14:35 +0000 (11:14 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 11 Oct 2021 12:53:11 +0000 (12:53 +0000)
commit34f7b1f841cc450cc3aba42019e613fd03a84fce
treefa9942c8df17b6f56900a7175b190b1ff114e344
parent59b2f516e8ec66b76789142fbba4787a0e80d09a
go/parser: clean up unnecessary arguments and replace an if statement

Eliminate an unnecessary argument from parseGenericType, and replace an
if statement with a switch.

Change-Id: Iaa8afeface929332579f183c8e523961cca9aca4
Reviewed-on: https://go-review.googlesource.com/c/go/+/354869
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/parser/parser.go