github.com/opentofu/opentofu@v1.7.1/internal/configs/shim.go (about) 1 package configs 2 3 import ( 4 "github.com/hashicorp/hcl/v2" 5 "github.com/opentofu/opentofu/internal/configs/hcl2shim" 6 "github.com/zclconf/go-cty/cty" 7 ) 8 9 // These were all moved to the hcl2shim package, but still have uses referenced from this package 10 // TODO Call sites through opentofu to these functions should be migrated to hcl2shim eventually and this file removed 11 func MergeBodies(base, override hcl.Body) hcl.Body { 12 return hcl2shim.MergeBodies(base, override) 13 } 14 15 func exprIsNativeQuotedString(expr hcl.Expression) bool { 16 return hcl2shim.ExprIsNativeQuotedString(expr) 17 } 18 19 func schemaForOverrides(schema *hcl.BodySchema) *hcl.BodySchema { 20 return hcl2shim.SchemaForOverrides(schema) 21 } 22 23 func SynthBody(filename string, values map[string]cty.Value) hcl.Body { 24 return hcl2shim.SynthBody(filename, values) 25 }