Generated code

This commit is contained in:
Erik Arvidsson
2015-10-23 10:33:42 -04:00
parent 91e7ffb8e1
commit a60de44b13
22 changed files with 136 additions and 101 deletions
+7 -5
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_enum_struct_CachedRef = __testPackageInFile_enum_struct_Ref()
var __testPackageInFile_enum_struct_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_enum_struct_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeEnumTypeRef("Handedness", "right", "left", "switch"),
types.MakeStructTypeRef("EnumStruct",
@@ -22,7 +22,7 @@ func __testPackageInFile_enum_struct_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_enum_struct_CachedRef = types.RegisterPackage(&p)
}
// Handedness
@@ -39,13 +39,14 @@ func NewHandedness() Handedness {
return Handedness(0)
}
var __typeRefForHandedness = types.MakeTypeRef(__testPackageInFile_enum_struct_CachedRef, 0)
var __typeRefForHandedness types.TypeRef
func (e Handedness) TypeRef() types.TypeRef {
return __typeRefForHandedness
}
func init() {
__typeRefForHandedness = types.MakeTypeRef(__testPackageInFile_enum_struct_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForHandedness, func(v types.Value) types.Value {
return Handedness(uint32(v.(types.UInt32)))
})
@@ -100,13 +101,14 @@ func (s EnumStruct) Def() (d EnumStructDef) {
return
}
var __typeRefForEnumStruct = types.MakeTypeRef(__testPackageInFile_enum_struct_CachedRef, 1)
var __typeRefForEnumStruct types.TypeRef
func (m EnumStruct) TypeRef() types.TypeRef {
return __typeRefForEnumStruct
}
func init() {
__typeRefForEnumStruct = types.MakeTypeRef(__testPackageInFile_enum_struct_CachedRef, 1)
types.RegisterFromValFunction(__typeRefForEnumStruct, func(v types.Value) types.Value {
return EnumStructFromVal(v)
})
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef = __sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_Ref()
var __sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("S",
[]types.Field{
@@ -23,7 +23,7 @@ func __sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7e
),
types.MakeEnumTypeRef("E", "e1", "e2", "e3"),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef = types.RegisterPackage(&p)
}
// S
@@ -59,13 +59,14 @@ func (s S) Def() (d SDef) {
return
}
var __typeRefForS = types.MakeTypeRef(__sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef, 0)
var __typeRefForS types.TypeRef
func (m S) TypeRef() types.TypeRef {
return __typeRefForS
}
func init() {
__typeRefForS = types.MakeTypeRef(__sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForS, func(v types.Value) types.Value {
return SFromVal(v)
})
@@ -131,13 +132,14 @@ func NewE() E {
return E(0)
}
var __typeRefForE = types.MakeTypeRef(__sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef, 1)
var __typeRefForE types.TypeRef
func (e E) TypeRef() types.TypeRef {
return __typeRefForE
}
func init() {
__typeRefForE = types.MakeTypeRef(__sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288PackageInFile_sha1_bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288_CachedRef, 1)
types.RegisterFromValFunction(__typeRefForE, func(v types.Value) types.Value {
return E(uint32(v.(types.UInt32)))
})
@@ -9,12 +9,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef = __sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_Ref()
var __sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("D",
[]types.Field{
@@ -32,7 +32,7 @@ func __sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f4
}, []ref.Ref{
ref.Parse("sha1-bbf9c3d7eb6ed891f4b8490b5b81f21f89f7d288"),
})
return types.RegisterPackage(&p)
__sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef = types.RegisterPackage(&p)
}
// D
@@ -68,13 +68,14 @@ func (s D) Def() (d DDef) {
return
}
var __typeRefForD = types.MakeTypeRef(__sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef, 0)
var __typeRefForD types.TypeRef
func (m D) TypeRef() types.TypeRef {
return __typeRefForD
}
func init() {
__typeRefForD = types.MakeTypeRef(__sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForD, func(v types.Value) types.Value {
return DFromVal(v)
})
@@ -155,13 +156,14 @@ func (s DUser) Def() (d DUserDef) {
return
}
var __typeRefForDUser = types.MakeTypeRef(__sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef, 1)
var __typeRefForDUser types.TypeRef
func (m DUser) TypeRef() types.TypeRef {
return __typeRefForDUser
}
func init() {
__typeRefForDUser = types.MakeTypeRef(__sha1_d31b592f480b7659b03b72a7d1271f31dde57b2dPackageInFile_sha1_d31b592f480b7659b03b72a7d1271f31dde57b2d_CachedRef, 1)
types.RegisterFromValFunction(__typeRefForDUser, func(v types.Value) types.Value {
return DUserFromVal(v)
})
+5 -4
View File
@@ -8,12 +8,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_ref_CachedRef = __testPackageInFile_ref_Ref()
var __testPackageInFile_ref_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_ref_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("StructWithRef",
[]types.Field{
@@ -22,7 +22,7 @@ func __testPackageInFile_ref_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_ref_CachedRef = types.RegisterPackage(&p)
}
// StructWithRef
@@ -54,13 +54,14 @@ func (s StructWithRef) Def() (d StructWithRefDef) {
return
}
var __typeRefForStructWithRef = types.MakeTypeRef(__testPackageInFile_ref_CachedRef, 0)
var __typeRefForStructWithRef types.TypeRef
func (m StructWithRef) TypeRef() types.TypeRef {
return __typeRefForStructWithRef
}
func init() {
__typeRefForStructWithRef = types.MakeTypeRef(__testPackageInFile_ref_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForStructWithRef, func(v types.Value) types.Value {
return StructWithRefFromVal(v)
})
+5 -4
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_CachedRef = __testPackageInFile_struct_Ref()
var __testPackageInFile_struct_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("Struct",
[]types.Field{
@@ -22,7 +22,7 @@ func __testPackageInFile_struct_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_CachedRef = types.RegisterPackage(&p)
}
// Struct
@@ -58,13 +58,14 @@ func (s Struct) Def() (d StructDef) {
return
}
var __typeRefForStruct = types.MakeTypeRef(__testPackageInFile_struct_CachedRef, 0)
var __typeRefForStruct types.TypeRef
func (m Struct) TypeRef() types.TypeRef {
return __typeRefForStruct
}
func init() {
__typeRefForStruct = types.MakeTypeRef(__testPackageInFile_struct_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForStruct, func(v types.Value) types.Value {
return StructFromVal(v)
})
+5 -4
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_optional_CachedRef = __testPackageInFile_struct_optional_Ref()
var __testPackageInFile_struct_optional_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_optional_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("OptionalStruct",
[]types.Field{
@@ -22,7 +22,7 @@ func __testPackageInFile_struct_optional_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_optional_CachedRef = types.RegisterPackage(&p)
}
// OptionalStruct
@@ -59,13 +59,14 @@ func (s OptionalStruct) Def() (d OptionalStructDef) {
return
}
var __typeRefForOptionalStruct = types.MakeTypeRef(__testPackageInFile_struct_optional_CachedRef, 0)
var __typeRefForOptionalStruct types.TypeRef
func (m OptionalStruct) TypeRef() types.TypeRef {
return __typeRefForOptionalStruct
}
func init() {
__typeRefForOptionalStruct = types.MakeTypeRef(__testPackageInFile_struct_optional_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForOptionalStruct, func(v types.Value) types.Value {
return OptionalStructFromVal(v)
})
+5 -4
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_primitives_CachedRef = __testPackageInFile_struct_primitives_Ref()
var __testPackageInFile_struct_primitives_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_primitives_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("StructPrimitives",
[]types.Field{
@@ -34,7 +34,7 @@ func __testPackageInFile_struct_primitives_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_primitives_CachedRef = types.RegisterPackage(&p)
}
// StructPrimitives
@@ -118,13 +118,14 @@ func (s StructPrimitives) Def() (d StructPrimitivesDef) {
return
}
var __typeRefForStructPrimitives = types.MakeTypeRef(__testPackageInFile_struct_primitives_CachedRef, 0)
var __typeRefForStructPrimitives types.TypeRef
func (m StructPrimitives) TypeRef() types.TypeRef {
return __typeRefForStructPrimitives
}
func init() {
__typeRefForStructPrimitives = types.MakeTypeRef(__testPackageInFile_struct_primitives_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForStructPrimitives, func(v types.Value) types.Value {
return StructPrimitivesFromVal(v)
})
+5 -4
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_recursive_CachedRef = __testPackageInFile_struct_recursive_Ref()
var __testPackageInFile_struct_recursive_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_recursive_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("Tree",
[]types.Field{
@@ -21,7 +21,7 @@ func __testPackageInFile_struct_recursive_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_recursive_CachedRef = types.RegisterPackage(&p)
}
// Tree
@@ -53,13 +53,14 @@ func (s Tree) Def() (d TreeDef) {
return
}
var __typeRefForTree = types.MakeTypeRef(__testPackageInFile_struct_recursive_CachedRef, 0)
var __typeRefForTree types.TypeRef
func (m Tree) TypeRef() types.TypeRef {
return __typeRefForTree
}
func init() {
__typeRefForTree = types.MakeTypeRef(__testPackageInFile_struct_recursive_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForTree, func(v types.Value) types.Value {
return TreeFromVal(v)
})
+7 -5
View File
@@ -9,12 +9,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_with_imports_CachedRef = __testPackageInFile_struct_with_imports_Ref()
var __testPackageInFile_struct_with_imports_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_with_imports_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeEnumTypeRef("E", "E1", "Ignored"),
types.MakeStructTypeRef("ImportUser",
@@ -27,7 +27,7 @@ func __testPackageInFile_struct_with_imports_Ref() ref.Ref {
}, []ref.Ref{
ref.Parse("sha1-d31b592f480b7659b03b72a7d1271f31dde57b2d"),
})
return types.RegisterPackage(&p)
__testPackageInFile_struct_with_imports_CachedRef = types.RegisterPackage(&p)
}
// E
@@ -43,13 +43,14 @@ func NewE() E {
return E(0)
}
var __typeRefForE = types.MakeTypeRef(__testPackageInFile_struct_with_imports_CachedRef, 0)
var __typeRefForE types.TypeRef
func (e E) TypeRef() types.TypeRef {
return __typeRefForE
}
func init() {
__typeRefForE = types.MakeTypeRef(__testPackageInFile_struct_with_imports_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForE, func(v types.Value) types.Value {
return E(uint32(v.(types.UInt32)))
})
@@ -108,13 +109,14 @@ func (s ImportUser) Def() (d ImportUserDef) {
return
}
var __typeRefForImportUser = types.MakeTypeRef(__testPackageInFile_struct_with_imports_CachedRef, 1)
var __typeRefForImportUser types.TypeRef
func (m ImportUser) TypeRef() types.TypeRef {
return __typeRefForImportUser
}
func init() {
__typeRefForImportUser = types.MakeTypeRef(__testPackageInFile_struct_with_imports_CachedRef, 1)
types.RegisterFromValFunction(__typeRefForImportUser, func(v types.Value) types.Value {
return ImportUserFromVal(v)
})
+5 -4
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_with_list_CachedRef = __testPackageInFile_struct_with_list_Ref()
var __testPackageInFile_struct_with_list_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_with_list_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("StructWithList",
[]types.Field{
@@ -24,7 +24,7 @@ func __testPackageInFile_struct_with_list_Ref() ref.Ref {
types.Choices{},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_with_list_CachedRef = types.RegisterPackage(&p)
}
// StructWithList
@@ -68,13 +68,14 @@ func (s StructWithList) Def() (d StructWithListDef) {
return
}
var __typeRefForStructWithList = types.MakeTypeRef(__testPackageInFile_struct_with_list_CachedRef, 0)
var __typeRefForStructWithList types.TypeRef
func (m StructWithList) TypeRef() types.TypeRef {
return __typeRefForStructWithList
}
func init() {
__typeRefForStructWithList = types.MakeTypeRef(__testPackageInFile_struct_with_list_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForStructWithList, func(v types.Value) types.Value {
return StructWithListFromVal(v)
})
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_with_union_field_CachedRef = __testPackageInFile_struct_with_union_field_Ref()
var __testPackageInFile_struct_with_union_field_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_with_union_field_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("StructWithUnionField",
[]types.Field{
@@ -27,7 +27,7 @@ func __testPackageInFile_struct_with_union_field_Ref() ref.Ref {
},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_with_union_field_CachedRef = types.RegisterPackage(&p)
}
// StructWithUnionField
@@ -99,13 +99,14 @@ func (s StructWithUnionField) __unionValueToDef() interface{} {
panic("unreachable")
}
var __typeRefForStructWithUnionField = types.MakeTypeRef(__testPackageInFile_struct_with_union_field_CachedRef, 0)
var __typeRefForStructWithUnionField types.TypeRef
func (m StructWithUnionField) TypeRef() types.TypeRef {
return __typeRefForStructWithUnionField
}
func init() {
__typeRefForStructWithUnionField = types.MakeTypeRef(__testPackageInFile_struct_with_union_field_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForStructWithUnionField, func(v types.Value) types.Value {
return StructWithUnionFieldFromVal(v)
})
+9 -6
View File
@@ -7,12 +7,12 @@ import (
"github.com/attic-labs/noms/types"
)
var __testPackageInFile_struct_with_unions_CachedRef = __testPackageInFile_struct_with_unions_Ref()
var __testPackageInFile_struct_with_unions_CachedRef ref.Ref
// This function builds up a Noms value that describes the type
// package implemented by this file and registers it with the global
// type package definition cache.
func __testPackageInFile_struct_with_unions_Ref() ref.Ref {
func init() {
p := types.NewPackage([]types.TypeRef{
types.MakeStructTypeRef("StructWithUnions",
[]types.Field{
@@ -36,7 +36,7 @@ func __testPackageInFile_struct_with_unions_Ref() ref.Ref {
},
),
}, []ref.Ref{})
return types.RegisterPackage(&p)
__testPackageInFile_struct_with_unions_CachedRef = types.RegisterPackage(&p)
}
// StructWithUnions
@@ -72,13 +72,14 @@ func (s StructWithUnions) Def() (d StructWithUnionsDef) {
return
}
var __typeRefForStructWithUnions = types.MakeTypeRef(__testPackageInFile_struct_with_unions_CachedRef, 0)
var __typeRefForStructWithUnions types.TypeRef
func (m StructWithUnions) TypeRef() types.TypeRef {
return __typeRefForStructWithUnions
}
func init() {
__typeRefForStructWithUnions = types.MakeTypeRef(__testPackageInFile_struct_with_unions_CachedRef, 0)
types.RegisterFromValFunction(__typeRefForStructWithUnions, func(v types.Value) types.Value {
return StructWithUnionsFromVal(v)
})
@@ -183,13 +184,14 @@ func (s __unionOfBOfFloat64AndCOfString) __unionValueToDef() interface{} {
panic("unreachable")
}
var __typeRefFor__unionOfBOfFloat64AndCOfString = types.MakeTypeRef(__testPackageInFile_struct_with_unions_CachedRef, 1)
var __typeRefFor__unionOfBOfFloat64AndCOfString types.TypeRef
func (m __unionOfBOfFloat64AndCOfString) TypeRef() types.TypeRef {
return __typeRefFor__unionOfBOfFloat64AndCOfString
}
func init() {
__typeRefFor__unionOfBOfFloat64AndCOfString = types.MakeTypeRef(__testPackageInFile_struct_with_unions_CachedRef, 1)
types.RegisterFromValFunction(__typeRefFor__unionOfBOfFloat64AndCOfString, func(v types.Value) types.Value {
return __unionOfBOfFloat64AndCOfStringFromVal(v)
})
@@ -326,13 +328,14 @@ func (s __unionOfEOfFloat64AndFOfString) __unionValueToDef() interface{} {
panic("unreachable")
}
var __typeRefFor__unionOfEOfFloat64AndFOfString = types.MakeTypeRef(__testPackageInFile_struct_with_unions_CachedRef, 2)
var __typeRefFor__unionOfEOfFloat64AndFOfString types.TypeRef
func (m __unionOfEOfFloat64AndFOfString) TypeRef() types.TypeRef {
return __typeRefFor__unionOfEOfFloat64AndFOfString
}
func init() {
__typeRefFor__unionOfEOfFloat64AndFOfString = types.MakeTypeRef(__testPackageInFile_struct_with_unions_CachedRef, 2)
types.RegisterFromValFunction(__typeRefFor__unionOfEOfFloat64AndFOfString, func(v types.Value) types.Value {
return __unionOfEOfFloat64AndFOfStringFromVal(v)
})