terraform/lang
Martin Atkins 742deca3e9 lang/funcs: Short-circuit if start or end index is unknown
Previously the type-selection codepath for an input tuple referred
unconditionally to the start and end index values. In the Type callback,
only the types of the arguments are guaranteed to be known, so any access
to the values must be guarded with an .IsKnown check, or else the function
will not short-circuit properly when an unknown value is passed.

Now we will check the start and end indices are in range when we have
enough information to do so, but we'll return an approximate result if
either is unknown.
2019-05-17 08:48:02 -07:00
..
blocktoattr lang/blocktoattr: Apply fixup within already-fixed-up blocks too 2019-04-05 14:22:41 -07:00
funcs lang/funcs: Short-circuit if start or end index is unknown 2019-05-17 08:48:02 -07:00
testdata/functions-test lang/funcs: add acc tests for functions (#21112) 2019-04-29 13:11:28 -04:00
data.go core: Static-validate resource references against schemas 2018-11-26 08:25:03 -08:00
data_test.go core: Static-validate resource references against schemas 2018-11-26 08:25:03 -08:00
doc.go
eval.go lang: EvalBlock should use ReferencesInBlock 2019-04-03 15:57:17 -07:00
eval_test.go lang: EvalBlock should use ReferencesInBlock 2019-04-03 15:57:17 -07:00
functions.go lang/funcs: remove sethaselement function and documentation (#21164) 2019-05-02 10:47:19 -04:00
functions_test.go lang/funcs: remove sethaselement function and documentation (#21164) 2019-05-02 10:47:19 -04:00
references.go lang: Detect references when a list/set attr is defined using blocks 2019-03-28 10:41:01 -07:00
scope.go terraform: ugly huge change to weave in new HCL2-oriented types 2018-10-16 18:46:46 -07:00