mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-19 09:39:59 +00:00
21 lines
353 B
Go
21 lines
353 B
Go
|
package hclsyntax
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/hcl2/hcl"
|
||
|
)
|
||
|
|
||
|
// 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
|
||
|
}
|
||
|
}
|