1package hclsyntax 2 3import ( 4 "github.com/hashicorp/hcl2/hcl" 5) 6 7// File is the top-level object resulting from parsing a configuration file. 8type File struct { 9 Body *Body 10 Bytes []byte 11} 12 13func (f *File) AsHCLFile() *hcl.File { 14 return &hcl.File{ 15 Body: f.Body, 16 Bytes: f.Bytes, 17 18 // TODO: The Nav object, once we have an implementation of it 19 } 20} 21