func Type(expr hcl.Expression) (cty.Type, hcl.Diagnostics) {
	return getType(expr, false)
}
Type attempts to process the given expression as a type expression and, if
successful, returns the resulting type. If unsuccessful, error diagnostics
are returned.
package typeexpr
import (
	"bytes"
	"fmt"
	"sort"
	"github.com/hashicorp/hcl/v2/hclsyntax"
	"github.com/hashicorp/hcl/v2"
	"github.com/zclconf/go-cty/cty"
)