6c4344623b
The main HCL package is more visible this way, and so it's easier than having to pick it out from dozens of other package directories.
21 lines
351 B
Go
21 lines
351 B
Go
package hclsyntax
|
|
|
|
import (
|
|
"github.com/hashicorp/hcl/v2"
|
|
)
|
|
|
|
// File is the top-level object resulting from parsing a configuration file.
|
|
type File struct {
|
|
Body *Body
|
|
Bytes []byte
|
|
}
|
|
|
|
func (f *File) AsHCLFile() *hcl.File {
|
|
return &hcl.File{
|
|
Body: f.Body,
|
|
Bytes: f.Bytes,
|
|
|
|
// TODO: The Nav object, once we have an implementation of it
|
|
}
|
|
}
|