func getAttributeValueTokens()

in mpdev/internal/tf/overwrite.go [142:161]


func getAttributeValueTokens(value string) hclwrite.Tokens {
	// Use logic similar to https://github.com/hashicorp/hcl/blob/4679383728fe331fc8a6b46036a27b8f818d9bc0/hclwrite/generate.go#L217-L234
	// for writing string values
	return hclwrite.Tokens{
		{
			Type:         hclsyntax.TokenOQuote,
			Bytes:        []byte(`"`),
			SpacesBefore: 1,
		},
		{
			Type:  hclsyntax.TokenQuotedLit,
			Bytes: []byte(value),
		},
		{
			Type:  hclsyntax.TokenCQuote,
			Bytes: []byte(`"`),
		},
	}

}