hcl/zcl/zclsyntax/file.go

19 lines
348 B
Go

package zclsyntax
import "github.com/hashicorp/hcl2/zcl"
// File is the top-level object resulting from parsing a configuration file.
type File struct {
Body *Body
Bytes []byte
}
func (f *File) AsZCLFile() *zcl.File {
return &zcl.File{
Body: f.Body,
Bytes: f.Bytes,
// TODO: The Nav object, once we have an implementation of it
}
}