mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-27 09:21:14 -06:00
a16ca2ec53
Whereas package "configs" deals with the static structure of the configuration language, this new package "lang" deals with the dynamic aspects such as expression evaluation. So far this mainly consists of populating a hcl.EvalContext that contains the values necessary to evaluate a block or an expression. There is also special handling here for dynamic block generation using the HCL "dynblock" extension, which is exposed in the public interface (rather than hiding it as an implementation detail of EvalBlock) so that the caller can then extract proper source locations for any result values using the expanded body. This also includes the beginnings of a replacement for the function table handling that currently lives in the old "config" package, but most of the functions are not yet ported and so this will expand in subsequent commits.
6 lines
275 B
Go
6 lines
275 B
Go
// Package lang deals with the runtime aspects of Terraform's configuration
|
|
// language, with concerns such as expression evaluation. It is closely related
|
|
// to sibling package "configs", which is responsible for configuration
|
|
// parsing and static validation.
|
|
package lang
|