Skip to content

Commit 6400639

Browse files
committed
cleanup
1 parent 03de06f commit 6400639

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

types_builtin.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,24 @@ import (
77
func newTypeBuiltin(kind Kind, value string) Type {
88
return &typeBuiltin{
99
kind: kind,
10+
name: strings.ToLower(kind.String()),
1011
value: value,
1112
}
1213
}
1314

1415
type typeBuiltin struct {
1516
typeBase
1617
kind Kind
18+
name string
1719
value string
1820
}
1921

2022
func (t *typeBuiltin) String() string {
21-
return strings.ToLower(t.kind.String())
23+
return t.name
2224
}
2325

2426
func (t *typeBuiltin) Name() string {
25-
return strings.ToLower(t.kind.String())
27+
return t.name
2628
}
2729

2830
func (t *typeBuiltin) Kind() Kind {

0 commit comments

Comments
 (0)