2017-05-23 15:05:44 +00:00
|
|
|
package zclsyntax
|
|
|
|
|
2017-05-28 00:33:09 +00:00
|
|
|
import "github.com/zclconf/go-zcl/zcl"
|
2017-05-23 15:05:44 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|
|
|
|
}
|