src/jdk/nashorn/internal/codegen/Lower.java

changeset 108
a971adb68f38
parent 89
43e32b36153c
child 137
e15806b9d716
equal deleted inserted replaced
107:671852e35ced 108:a971adb68f38
707 * Calculate a synthetic eval location for a node for the stacktrace, for example src#17<eval> 707 * Calculate a synthetic eval location for a node for the stacktrace, for example src#17<eval>
708 * @param node a node 708 * @param node a node
709 * @return eval location 709 * @return eval location
710 */ 710 */
711 private static String evalLocation(final IdentNode node) { 711 private static String evalLocation(final IdentNode node) {
712 //final StringBuilder sb = new StringBuilder(node.getSource().getName());
713 return new StringBuilder(). 712 return new StringBuilder().
714 append(node.getSource().getName()). 713 append(node.getSource().getName()).
715 append('#'). 714 append('#').
716 append(node.getSource().getLine(node.position())). 715 append(node.getSource().getLine(node.position())).
717 append("<eval>"). 716 append("<eval>").

mercurial