code: func (s *State) RootModule() *ModuleState {
  	root := s.ModuleByPath(addrs.RootModuleInstance)
  	if root == nil {
  		panic("missing root module")
  	}
  	return root
  }
docs: // RootModule returns the ModuleState for the root module