Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.24.1 to 2.26.0. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.24.1...v2.26.0) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
24 lines
421 B
Go
24 lines
421 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
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
|
|
}
|
|
}
|