test/com/google/javascript/jscomp/ShadowVariablesTest.java
/** If we have a choice, pick out the most used variable to shadow. */
If we have a choice, pick out the most used variable to shadow.
If we have a choice pick out the most used variable to shadow .
@Test
  public void testShadowMostUsedVar() {
    generatePseudoNames = true;
    test("function  foo  () {var  x  ; var  y  ;  y  ; y  ; y  ; x  ;" +
         "  return function ( k  ) {} }",
         "function $foo$$() {var $x$$; var $y$$; $y$$;$y$$;$y$$;$x$$;" +
         "  return function ($y$$) {} }");
  }
@ Test public void testShadowMostUsedVar ( ) { generatePseudoNames = true ; test ( "function  foo  () {var  x  ; var  y  ;  y  ; y  ; y  ; x  ;" + "  return function ( k  ) {} }" , "function $foo$$() {var $x$$; var $y$$; $y$$;$y$$;$y$$;$x$$;" + "  return function ($y$$) {} }" ) ; }
If we have a choice, pick out the most used variable to shadow.
If we have a choice pick out the most used variable to shadow .