original_docstring: 
              Check the ref and resolve it as the base_ref if it matches. If the
              resulting env is exposed via whitelist/blacklist, add it to the
              env_set.
              
docstring: Check the ref and resolve it as the base_ref if it matches. If the
  resulting env is exposed via whitelist/blacklist, add it to the
  env_set.
docstring_tokens: Check the ref and resolve it as the base_ref if it matches . If the resulting env is exposed via whitelist / blacklist add it to the env_set .
code: def _check_ref(env_set, base_ref, rname):
              '''
              Check the ref and resolve it as the base_ref if it matches. If the
              resulting env is exposed via whitelist/blacklist, add it to the
              env_set.
              '''
              _envs = []
              if rname in self.saltenv_revmap:
                  _envs.extend(self.saltenv_revmap[rname])
                  if base_ref == rname:
                      _envs.append('base')
              else:
                  if base_ref == rname:
                      _envs.append('base')
                  else:
                      _envs.append(rname)
              for env_name in _envs:
                  if self.env_is_exposed(env_name):
                      env_set.add(env_name)
code_tokens: def _check_ref ( env_set , base_ref , rname ) : _envs = [ ] if rname in self . saltenv_revmap : _envs . extend ( self . saltenv_revmap [ rname ] ) if base_ref == rname : _envs . append ( 'base' ) else : if base_ref == rname : _envs . append ( 'base' ) else : _envs . append ( rname ) for env_name in _envs : if self . env_is_exposed ( env_name ) : env_set . add ( env_name )
short_docstring: Check the ref and resolve it as the base_ref if it matches.
short_docstring_tokens: Check the ref and resolve it as the base_ref if it matches .
comment: '''
              Check the ref and resolve it as the base_ref if it matches. If the
              resulting env is exposed via whitelist/blacklist, add it to the
              env_set.
              '''