Skip to content

Commit

Permalink
[dev.typeparams] go/constant: implement Kind.String
Browse files Browse the repository at this point in the history
Fixes #46211.

Change-Id: I7e373be5ccf9c6b53d58ed942addd17d28c3efa1
Reviewed-on: https://go-review.googlesource.com/c/go/+/320491
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
  • Loading branch information
griesemer committed May 17, 2021
1 parent 0d1e293 commit f39200b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/go/constant/kind_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/go/constant/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
"unicode/utf8"
)

//go:generate stringer -type Kind

// Kind specifies the kind of value represented by a Value.
type Kind int

Expand Down

0 comments on commit f39200b

Please sign in to comment.