MCPcopy
hub / github.com/hashicorp/hcl / variablesNeeded

Method variablesNeeded

hcldec/spec.go:176–183  ·  view source on GitHub ↗

specNeedingVariables implementation

(content *hcl.BodyContent)

Source from the content-addressed store, hash-verified

174
175// specNeedingVariables implementation
176func (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
186func (s *AttrSpec) attrSchemata() []hcl.AttributeSchema {

Callers

nothing calls this directly

Calls 1

VariablesMethod · 0.65

Tested by

no test coverage detected