specNeedingVariables implementation
(content *hcl.BodyContent)
| 174 | |
| 175 | // specNeedingVariables implementation |
| 176 | func (s *AttrSpec) variablesNeeded(content *hcl.BodyContent) []hcl.Traversal { |
| 177 | attr, exists := content.Attributes[s.Name] |
| 178 | if !exists { |
| 179 | return nil |
| 180 | } |
| 181 | |
| 182 | return attr.Expr.Variables() |
| 183 | } |
| 184 | |
| 185 | // attrSpec implementation |
| 186 | func (s *AttrSpec) attrSchemata() []hcl.AttributeSchema { |