summaryrefslogtreecommitdiff
path: root/ext/transform/transform_test.go
AgeCommit message (Collapse)Author
2023-02-28[COMPLIANCE] Add Copyright and License Headers (#586)hashicorp-copywrite[bot]
* [COMPLIANCE] Add Copyright and License Headers * add copywrite file and revert headers in testdata --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
2019-09-09Unfold the "hcl" directory up into the rootMartin Atkins
The main HCL package is more visible this way, and so it's easier than having to pick it out from dozens of other package directories.
2019-09-09Change module path to github.com/hashicorp/hcl/v2Martin Atkins
This is in preparation for the first v2 release from the main HCL repository.
2018-12-11go fmt updatesMartin Atkins
2017-09-11Move the zcl package and its two parsing subpackages to "hcl" namesMartin Atkins
This is a super-invasive update since the "zcl" package in particular is referenced all over. There are probably still a few zcl references hanging around in comments, etc but this takes care of most of it.
2017-09-11Rename the ancillary packages from "zcl" to "hcl".Martin Atkins
The main "zcl" package requires a bit more care because of how many callers it has and because of its two subpackages, so we'll take care of that one separately.
2017-09-11Adjust import paths for hashicorp/hcl2 repoMartin Atkins
This begins 'the great fork' of zcl to HCL.
2017-07-27ext/transform: helper package for applying transforms to bodiesMartin Atkins
This utility is intended to support the extension packages that are siblings of this package, along with third-party extensions, by providing a way to transform bodies in arbitrary ways. The "Deep" function then provides a means to apply a particular transform recursively to a nested block tree, allowing a particular extension to be supported at arbitrary nesting levels. This functionality is provided in terms of the standard zcl.Body interface, so that transform results can be used with any code that operates generically on bodies. This includes the zcldec and gozcl packages, so files with extensions can still be decoded in the usual way.