File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -718,22 +718,11 @@ func (a *Attribute) ReferencesBlock(b *Block) bool {
718
718
return false
719
719
}
720
720
721
- // nolint
722
- func (a * Attribute ) AllReferences (blocks ... * Block ) []* Reference {
721
+ func (a * Attribute ) AllReferences () []* Reference {
723
722
if a == nil {
724
723
return nil
725
724
}
726
- refs := a .referencesFromExpression (a .hclAttribute .Expr )
727
- for _ , block := range blocks {
728
- for _ , ref := range refs {
729
- if ref .TypeLabel () == "each" {
730
- if forEachAttr := block .GetAttribute ("for_each" ); forEachAttr .IsNotNil () {
731
- refs = append (refs , forEachAttr .AllReferences ()... )
732
- }
733
- }
734
- }
735
- }
736
- return refs
725
+ return a .referencesFromExpression (a .hclAttribute .Expr )
737
726
}
738
727
739
728
func (a * Attribute ) referencesFromExpression (expr hcl.Expression ) []* Reference {
You can’t perform that action at this time.
0 commit comments