 +        if (n.getType() == Token.NAME) {
 +          String name = n.getString();
 +          Var aliasVar = aliases.get(name);
-+
 +          if (aliasVar != null &&
 +              t.getScope().getVar(name) == aliasVar) {
            // Note, to support the transitive case, it's important we don't

       }
     }
 
@@ -269,84 +268,62 @@ class ScopedAliases implements HotSwapCompilerPass {
       hasErrors = true;
     }
 

   @Override
   public Iterable<Var> getReferences(Var var) {
diff --git a/src/com/google/javascript/jscomp/ScopedAliases.java b/src/com/google/javascript/jscomp/ScopedAliases.java
index 2b447cc3..ba316807 100644
--- a/src/com/google/javascript/jscomp/ScopedAliases.java
+++ b/src/com/google/javascript/jscomp/ScopedAliases.java
@@ -223,7 +223,6 @@ class ScopedAliases implements HotSwapCompilerPass {
       if (n != null && isCallToScopeMethod(n)) {
         transformation = transformationHandler.logAliasTransformation(
