41cff854d8
During implementation of HCL in other applications, it became clear that the overloading of the word "attribute" to mean both a key/value pair in a body and an element within an object value creates confusion. It's too late to change that in the HCL Go API now, but here we at least update the diagnostic messages. The new convention is that a key/value pair within a block is now called an "argument", while an element of an object is still called an "attribute". It is unfortunate that the Go-facing API still uses the word "attribute" for both, but the user experience is the most important thing and in practice many applications will treat block arguments as one way to set the attributes of some object anyway, and in that case arguments can be thought of as the subset of attributes of an object whose values come from that object's associated block. This also includes a few other minor terminology tweaks in the diagnostic messages the reflect how our lexicon has evolved during development and authoring of user-facing documentation. |
||
---|---|---|
.. | ||
doc.go | ||
mock_test.go | ||
mock.go |