terraform/lang/blocktoattr
Martin Atkins 003317d7c8 lang: Detect references when a list/set attr is defined using blocks
For compatibility with documented patterns from existing providers we are
now allowing (via a pre-processing step) any attribute whose type is a
list-of-object or set-of-object type to optionally be assigned using one
or more blocks whose type is the attribute name.

The pre-processing functionality was implemented in previous commits but
we were not correctly detecting references within these blocks that are,
from the perspective of the primary schema, invalid. Now we'll use an
alternative implementation of variable detection that is able to apply the
same schema rewriting technique we used to implement the transform and
thus can find all of the references as if they were already in their
final locations.
2019-03-28 10:41:01 -07:00
..
doc.go lang/blocktoattr: Selectively allow block syntax to be used for attributes 2019-03-28 10:41:01 -07:00
fixup.go lang/blocktoattr: ExpandedVariables function 2019-03-28 10:41:01 -07:00
fixup_test.go lang/blocktoattr: Selectively allow block syntax to be used for attributes 2019-03-28 10:41:01 -07:00
schema.go lang: Detect references when a list/set attr is defined using blocks 2019-03-28 10:41:01 -07:00
variables.go lang/blocktoattr: ExpandedVariables function 2019-03-28 10:41:01 -07:00
variables_test.go lang/blocktoattr: ExpandedVariables function 2019-03-28 10:41:01 -07:00