Allow classes to be declared with let or const.
This is in preparation for splitting class-related work in Es6ToEs3Converter into its own compiler pass.
@@ -211,7 +211,7 @@ implements NodeTraversal.Callback, HotSwapCompilerPass {
Node declaredValue = null;
if (declaration.isFunction()) {
declaredValue = declaration;
- } else if (declaration.isVar() && declaredVarOrProp.isName()) {
+ } else if (NodeUtil.isNameDeclaration(declaration) && declaredVarOrProp.isName()) {
if (declaredVarOrProp.hasChildren()) {
declaredValue = checkNotNull(declaredVarOrProp.getFirstChild());
} else {
