Alisdair McDiarmid
d58c873a08
hclwrite: Fix panic for dotted full splat (foo.*)
...
The following expression caused a panic in hclwrite:
a = foo.*
This was due to the unusual dotted form of a full splat (where the splat
operator is at the end of the expression) being generated with an
invalid source range. In the full splat case, the end of the range was
uninitialized, which caused the token slice to be empty, and thus the
panic.
This commit fixes the bug, adds test coverage, and includes some bonus
tests for other splat expression cases.
2020-05-13 16:23:21 -04:00
..
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-10-01 15:59:10 -07:00
2019-09-09 16:08:19 -07:00
2019-10-01 15:59:10 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-12-17 07:51:07 -08:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2020-03-09 09:16:33 -07:00
2019-12-06 09:09:18 -08:00
2019-09-09 16:08:19 -07:00
2020-05-13 16:23:21 -04:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2020-03-05 09:51:26 -08:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2020-03-09 09:16:33 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00
2019-09-09 16:08:19 -07:00