4 "github.com/hashicorp/terraform/config/module"
7 // RootVariableTransformer is a GraphTransformer that adds all the root
8 // variables to the graph.
10 // Root variables are currently no-ops but they must be added to the
11 // graph since downstream things that depend on them must be able to
13 type RootVariableTransformer struct {
17 func (t *RootVariableTransformer) Transform(g *Graph) error {
18 // If no config, no variables
23 // If we have no vars, we're done!
24 vars := t.Module.Config().Variables
29 // Add all variables here
30 for _, v := range vars {
31 node := &NodeRootVariable{