We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03de06f commit 6400639Copy full SHA for 6400639
types_builtin.go
@@ -7,22 +7,24 @@ import (
7
func newTypeBuiltin(kind Kind, value string) Type {
8
return &typeBuiltin{
9
kind: kind,
10
+ name: strings.ToLower(kind.String()),
11
value: value,
12
}
13
14
15
type typeBuiltin struct {
16
typeBase
17
kind Kind
18
+ name string
19
value string
20
21
22
func (t *typeBuiltin) String() string {
- return strings.ToLower(t.kind.String())
23
+ return t.name
24
25
26
func (t *typeBuiltin) Name() string {
27
28
29
30
func (t *typeBuiltin) Kind() Kind {
0 commit comments