src/jdk/nashorn/internal/ir/Node.java

changeset 1064
03c06c337d9d
parent 1063
8c51767d534d
child 1205
4112748288bb
child 1361
55c1eef5c4fc
equal deleted inserted replaced
1063:8c51767d534d 1064:03c06c337d9d
35 /** 35 /**
36 * Nodes are used to compose Abstract Syntax Trees. 36 * Nodes are used to compose Abstract Syntax Trees.
37 */ 37 */
38 public abstract class Node implements Cloneable, Serializable { 38 public abstract class Node implements Cloneable, Serializable {
39 private static final long serialVersionUID = 1L; 39 private static final long serialVersionUID = 1L;
40
41 /** Constant used for synthetic AST nodes that have no line number. */
42 public static final int NO_LINE_NUMBER = -1;
43
44 /** Constant used for synthetic AST nodes that have no token. */
45 public static final long NO_TOKEN = 0L;
46
47 /** Constant used for synthetic AST nodes that have no finish. */
48 public static final int NO_FINISH = 0;
40 49
41 /** Start of source range. */ 50 /** Start of source range. */
42 protected final int start; 51 protected final int start;
43 52
44 /** End of source range. */ 53 /** End of source range. */

mercurial