public static StringSet declaredSymbolsInScopeSet(ModuleNode module,Location loc){
  StringSet result=new StringSet();
  addDeclaredSymbolsInScopeSet(result,module,loc);
  return result;
}

public static StringSet declaredSymbolsInScopeSet ( ModuleNode module , Location loc ) { StringSet result = new StringSet ( ) ; addDeclaredSymbolsInScopeSet ( result , module , loc ) ; return result ; }
returns a hashset containing all user - definable names that are globally defined or declared at location loc of the module . the returned value may or may not contain strings that are not user - definable names - - in particular strings like " i ! bar " . if the statement at loc defines or declares a symbol , that symbol does not appear in the returned value . however , the implementation assumes that there there is no declaration or definition that begins on the same line as the beginning of loc . if there is , the symbol it defines will not appear in the returned result . the method also assumes that loc is after any extends statement in the module .
