Expression is the abstract type for nodes that behave as HCL expressions.
| 18 | |
| 19 | // Expression is the abstract type for nodes that behave as HCL expressions. |
| 20 | type Expression interface { |
| 21 | Node |
| 22 | |
| 23 | // The hcl.Expression methods are duplicated here, rather than simply |
| 24 | // embedded, because both Node and hcl.Expression have a Range method |
| 25 | // and so they conflict. |
| 26 | |
| 27 | Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) |
| 28 | Variables() []hcl.Traversal |
| 29 | StartRange() hcl.Range |
| 30 | } |
| 31 | |
| 32 | // Assert that Expression implements hcl.Expression |
| 33 | var _ hcl.Expression = Expression(nil) |
no outgoing calls
no test coverage detected