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
@@ -48,6 +48,6 @@ func TestUserName(t *testing.T) {
g := Generator{R: &res}
assert.Equal(localStructName, g.UserName(resolved))
listOfImported := types.MakeCompoundTypeRef("", types.ListKind, types.MakeTypeRef(imported.Ref(), 1))
listOfImported := types.MakeCompoundTypeRef(types.ListKind, types.MakeTypeRef(imported.Ref(), 1))
assert.Equal(fmt.Sprintf("ListOfS1"), g.UserName(listOfImported))
}