{{$typesPackage := .TypesPackage}} // This file was generated by nomdl/codegen. package {{.Name}} import ( "github.com/attic-labs/noms/ref" "github.com/attic-labs/noms/types" ) {{if .HasTypes}} var __{{.Name}}PackageInFile_{{.FileID}}_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 init() { p := {{$typesPackage}}NewPackage([]{{$typesPackage}}Type{ {{range $t := .Types}} {{toTypesType $t "" ""}},{{end}} }, []ref.Ref{ {{range $deps := .Dependencies}} ref.Parse("{{$deps}}"),{{end}} }) __{{.Name}}PackageInFile_{{.FileID}}_CachedRef = {{$typesPackage}}RegisterPackage(&p) } {{end}}