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:
Erik Arvidsson
2015-10-26 15:34:26 -04:00
parent 20b2839812
commit cdcf952270
39 changed files with 263 additions and 264 deletions
+1 -1
View File
@@ -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: