mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-26 03:30:09 -05:00
Update TypeRef comment and get rid of useless param
The name param of MakeCompoundTypeRef is always the empty string. I didn't change the underlying storage or serialization. Fixes #436, #477
This commit is contained in:
@@ -293,7 +293,7 @@ func (gen Generator) ToTypeRef(t types.TypeRef, fileID, packageName string) stri
|
||||
for i, t := range desc.ElemTypes {
|
||||
typerefs[i] = gen.ToTypeRef(t, fileID, packageName)
|
||||
}
|
||||
return fmt.Sprintf(`%sMakeCompoundTypeRef("%s", %s%sKind, %s)`, gen.TypesPackage, t.Name(), gen.TypesPackage, kindToString(t.Kind()), strings.Join(typerefs, ", "))
|
||||
return fmt.Sprintf(`%sMakeCompoundTypeRef(%s%sKind, %s)`, gen.TypesPackage, gen.TypesPackage, kindToString(t.Kind()), strings.Join(typerefs, ", "))
|
||||
case types.EnumDesc:
|
||||
return fmt.Sprintf(`%sMakeEnumTypeRef("%s", "%s")`, gen.TypesPackage, t.Name(), strings.Join(desc.IDs, `", "`))
|
||||
case types.StructDesc:
|
||||
|
||||
Reference in New Issue
Block a user