Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Located ¶
Located pairs a Ref with the source range where the reference was written, so hcl.Diagnostic can point to the exact position.
func FromExpr ¶
func FromExpr(expr hcl.Expression) ([]Located, hcl.Diagnostics)
FromExpr extracts all references from the variables in an hcl.Expression. Traversals that cannot be resolved into a known reference kind are reported as hcl.Diagnostic and excluded from the result.
func FromTraversal ¶
func FromTraversal(t hcl.Traversal) (Located, hcl.Diagnostics)
FromTraversal resolves an hcl.Traversal into a Located reference. The traversal must have the form <kind>.<name>, where kind is one of "var", "computed", or "task". The returned Located carries the traversal's source range.
Click to show internal directories.
Click to hide internal directories.