[Nice-commit] Nice/src/bossa/util Location.java,1.26,1.27
Brought to you by:
bonniot
From: Arjan B. <ar...@us...> - 2004-06-29 15:14:38
|
Update of /cvsroot/nice/Nice/src/bossa/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8932/F:/nice/src/bossa/util Modified Files: Location.java Log Message: Make bossa.util not depend on bossa.parser. Index: Location.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/util/Location.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** Location.java 25 Aug 2003 18:09:10 -0000 1.26 --- Location.java 29 Jun 2004 15:13:52 -0000 1.27 *************** *** 15,20 **** import java.util.*; - import bossa.parser.Token; - /** Represents a portion of the input file. --- 15,18 ---- *************** *** 49,63 **** } ! public static Location make (Token t) ! { ! return make(t.beginLine, t.beginColumn, t.endLine, t.endColumn); ! } ! ! /** ! Return a location that goes from start to end. ! */ ! public static Location make (Token start, Token end) { ! return make(start.beginLine, start.beginColumn, end.endLine, end.endColumn); } --- 47,53 ---- } ! public static Location make(int startLine, int startColumn) { ! return make(currentFile, startLine, startColumn, -1, -1); } |