mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-26 10:37:04 -06:00
29 lines
708 B
Cheetah
29 lines
708 B
Cheetah
// This file was generated by nomdl/codegen.
|
|
|
|
package {{.Name}}
|
|
|
|
{{if .HasImports}}
|
|
import (
|
|
{{range $imp := .Imports}}"{{$imp}}"
|
|
{{end}}
|
|
)
|
|
{{end}}
|
|
|
|
{{if .HasTypes}}
|
|
var __{{.Name}}PackageInFile_{{.FileID}}_CachedRef = __{{.Name}}PackageInFile_{{.FileID}}_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 __{{.Name}}PackageInFile_{{.FileID}}_Ref() ref.Ref {
|
|
p := types.PackageDef{
|
|
NamedTypes: types.MapOfStringToTypeRefDef{
|
|
{{range $name, $t := .NamedTypes}}
|
|
"{{$name}}": {{toTypesTypeRef $t "" ""}},{{end}}
|
|
},
|
|
}.New()
|
|
return types.RegisterPackage(&p)
|
|
}
|
|
{{end}}
|
|
|