hcl/hcldec
Martin Atkins bbbd0ef30d hcldec: Fix DefaultSpec to allow attribute and block specs
Previously it was not implementing the two optional interfaces required
for this, and so decoding would fail for any AttrSpec or block spec nested
inside.

Now it passes through attribute requirements from both the primary and
default, and passes block requirements only from the primary, thus
allowing either fallback between two attributes, fallback from an
attribute to a constant, or fallback from a block to a constant. Other
permutations are also possible, but not very important.
2018-05-22 15:06:42 -07:00
..
block_labels.go hcldec: BlockLabelSpec decoding 2017-10-03 15:59:20 -07:00
decode.go hcldec: ImpliedType function 2017-10-03 16:27:34 -07:00
doc.go Update doc comments and readmes for zcl -> HCL. 2017-09-11 16:56:31 -07:00
gob.go hcldec: BlockLabelSpec decoding 2017-10-03 15:59:20 -07:00
public_test.go hcldec: ImpliedType function 2017-10-03 16:27:34 -07:00
public.go hcldec: Fix DefaultSpec to allow attribute and block specs 2018-05-22 15:06:42 -07:00
schema.go hcldec: ImpliedSchema must visit deep specs 2017-10-03 12:17:47 -07:00
spec_test.go hcldec: Fix DefaultSpec to allow attribute and block specs 2018-05-22 15:06:42 -07:00
spec.go hcldec: Fix DefaultSpec to allow attribute and block specs 2018-05-22 15:06:42 -07:00
variables_test.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00
variables.go Move the zcl package and its two parsing subpackages to "hcl" names 2017-09-11 16:40:37 -07:00