Examples of adjustStartOffset()


Examples of org.jruby.lexer.yacc.ISourcePosition.adjustStartOffset()

                       ISourcePosition position = support.union(((Node)yyVals[-1+yyTop]), ((Token)yyVals[0+yyTop]));

                       /* We substract one since tsymbeg is longer than one*/
           /* and we cannot union it directly so we assume quote*/
                       /* is one character long and subtract for it.*/
           position.adjustStartOffset(-1);
                       ((Node)yyVals[-1+yyTop]).setPosition(position);
          
           yyVal = new DSymbolNode(support.union(((Token)yyVals[-2+yyTop]), ((Token)yyVals[0+yyTop])));
                       ((DSymbolNode)yyVal).add(((Node)yyVals[-1+yyTop]));
                   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.