mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-05 18:58:58 -06:00
This solves the bootstrapping problems we are encountering. Previously Package was a Struct but structs depend on Package.
27 lines
658 B
Cheetah
27 lines
658 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.NewPackage([]types.TypeRef{
|
|
{{range $t := .Types}}
|
|
{{toTypesTypeRef $t "" ""}},{{end}}
|
|
}, []ref.Ref{})
|
|
return types.RegisterPackage(&p)
|
|
}
|
|
{{end}}
|
|
|