@@ -28,7 +28,6 @@ func TriBool(b bool) TriBoolean {
2828 } else {
2929 return TriBooleanFalse
3030 }
31-
3231}
3332
3433type Implementation string
@@ -57,32 +56,32 @@ func (r ResourceIdentity) HasResourceIdentity() bool {
5756 return r .IsParameterizedIdentity () || r .isARNIdentity || r .isSingletonIdentity || r .isCustomInherentRegionIdentity
5857}
5958
60- func (d ResourceIdentity ) HasInherentRegionIdentity () bool {
61- return d .isARNIdentity || d .isCustomInherentRegionIdentity
59+ func (r ResourceIdentity ) HasInherentRegionIdentity () bool {
60+ return r .isARNIdentity || r .isCustomInherentRegionIdentity
6261}
6362
64- func (d ResourceIdentity ) IsARNIdentity () bool {
65- return d .isARNIdentity
63+ func (r ResourceIdentity ) IsARNIdentity () bool {
64+ return r .isARNIdentity
6665}
6766
68- func (d ResourceIdentity ) IsCustomInherentRegionIdentity () bool {
69- return d .isCustomInherentRegionIdentity
67+ func (r ResourceIdentity ) IsCustomInherentRegionIdentity () bool {
68+ return r .isCustomInherentRegionIdentity
7069}
7170
7271func (r ResourceIdentity ) IsParameterizedIdentity () bool {
7372 return len (r .IdentityAttributes ) > 0
7473}
7574
76- func (d ResourceIdentity ) IsSingletonIdentity () bool {
77- return d .isSingletonIdentity
75+ func (r ResourceIdentity ) IsSingletonIdentity () bool {
76+ return r .isSingletonIdentity
7877}
7978
80- func (d ResourceIdentity ) IdentityAttribute () string {
81- return namesgen .ConstOrQuote (d .IdentityAttributeName ())
79+ func (r ResourceIdentity ) IdentityAttribute () string {
80+ return namesgen .ConstOrQuote (r .IdentityAttributeName ())
8281}
8382
84- func (d ResourceIdentity ) IdentityAttributeName () string {
85- return d .identityAttributeName
83+ func (r ResourceIdentity ) IdentityAttributeName () string {
84+ return r .identityAttributeName
8685}
8786
8887func (r ResourceIdentity ) HasIdentityDuplicateAttrs () bool {
@@ -269,5 +268,4 @@ func parseIdentityDuplicateAttrNames(args Args, implementation Implementation, d
269268 }
270269 })
271270 d .IdentityDuplicateAttrNames = slices .Compact (attrs )
272-
273271}
0 commit comments