in base_config.go [58:72]
func (c *BaseConfig) EvalContext() *hcl.EvalContext {
ctx := c.EmptyEvalContext()
for bt, bs := range c.blocksByTypes() {
sample := bs[0]
if s, ok := sample.(BlockCustomizedRefType); ok {
bt = s.CustomizedRefType()
}
if _, ok := sample.(SingleValueBlock); ok {
ctx.Variables[bt] = SingleValues(castBlock[SingleValueBlock](bs))
continue
}
ctx.Variables[bt] = Values(bs)
}
return ctx
}