RemoveUnusedCode should consider a class declaration to be a local value
This fixes a small error that resulted from failing to override a method.
It has no immediate effect on the compiler's behavior, but is necessary for
a following change to work correctly.
@@ -2244,6 +2244,11 @@ class RemoveUnusedCode implements CompilerPass {
NodeUtil.deleteNode(classDeclarationNode, compiler);
}
+ @Override
+ boolean isAssignedValueLocal() {
+ return true;
+ }
+
@Override
public String toString() {
return "ClassDeclaration:" + classDeclarationNode;
