Use the span of the method name for the ES6 -> ES3 method name rewrite
@@ -500,7 +500,8 @@ public final class Es6RewriteClass implements NodeTraversal.Callback, HotSwapCom
return IR.getelem(context, member.removeFirstChild());
} else {
Node methodName = member.getFirstFirstChild();
- return IR.getprop(context, IR.string(member.getString()).useSourceInfoFrom(methodName));
+ return IR.getprop(context, IR.string(member.getString()))
+ .useSourceInfoFromForTree(methodName);
}
}
