Exemple #1
0
 /*
     public YYNode compact() {
         return this;
     }
 */
 protected final void setBounds(ILocationContext cxt) {
   YYLocation l;
   l = cxt.lbeg();
   beg_lineno = l.lineno;
   beg_charno = l.charno;
   beg_charno0 = l.charno0;
   beg_line_beg = l.line_beg;
   l = cxt.lend();
   end_lineno = l.lineno;
   end_charno = l.charno;
   end_charno0 = l.charno0;
   end_line_beg = l.line_beg;
 }
Exemple #2
0
 public final YYNode expand(ILocationContext cxt) {
   YYLocation l;
   if ((l = cxt.lbeg()).charno0 < beg_charno0) {
     this.beg_lineno = l.lineno;
     this.beg_charno = l.charno;
     this.beg_charno0 = l.charno0;
     this.beg_line_beg = l.line_beg;
   }
   if ((l = cxt.lend()).charno0 > end_charno0) {
     this.end_lineno = l.lineno;
     this.end_charno = l.charno;
     this.end_charno0 = l.charno0;
     this.end_line_beg = l.line_beg;
   }
   return this;
 }
Exemple #3
0
 public YYNode(ILocationContext cxt) {
   ibuf = cxt.ibuf();
   setBounds(cxt);
 }