aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go')
-rw-r--r--vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go b/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go
new file mode 100644
index 0000000..490c025
--- /dev/null
+++ b/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/file.go
@@ -0,0 +1,20 @@
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}