src/com/google/javascript/jscomp/InlineAliases.java
/**
     * Use the alias table to look up the resolved name of the given alias. If the result is also an
     * alias repeat until the real name is resolved.
     * @param n
     */
Use the alias table to look up the resolved name of the given alias. If the result is also an
alias repeat until the real name is resolved.
@param n
Use the alias table to look up the resolved name of the given alias . If the result is also an alias repeat until the real name is resolved . @param n
private String resolveAlias(String name, Node n) {
      Set<String> aliasPath = new LinkedHashSet<>();
      while (aliases.containsKey(name)) {
        if (!aliasPath.add(name)) {
          compiler.report(JSError.make(n, ALIAS_CYCLE, aliasPath.toString(), name));
          aliases.remove(name);
          break;
        }
        name = aliases.get(name);
      }
      return name;
    }
private String resolveAlias ( String name , Node n ) { Set < String > aliasPath = new LinkedHashSet < > ( ) ; while ( aliases . containsKey ( name ) ) { if ( ! aliasPath . add ( name ) ) { compiler . report ( JSError . make ( n , ALIAS_CYCLE , aliasPath . toString ( ) , name ) ) ; aliases . remove ( name ) ; break ; } name = aliases . get ( name ) ; } return name ; }
Use the alias table to look up the resolved name of the given alias.
Use the alias table to look up the resolved name of the given alias .
// Cut the cycle so that it doesn't get reported more than once.