summaryrefslogtreecommitdiff
path: root/sources/scalac/util
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-06-16 12:38:45 +0000
committerpaltherr <paltherr@epfl.ch>2003-06-16 12:38:45 +0000
commitba5d59e9f697fc307140a67d37edbfeb2dc4d795 (patch)
tree6a1a04c1dc80978708b5dcf35beb89442fc154c6 /sources/scalac/util
parent9c9dfb24a48f11e175d8f82417e7b9c7ab78f7c7 (diff)
downloadscala-ba5d59e9f697fc307140a67d37edbfeb2dc4d795.tar.gz
scala-ba5d59e9f697fc307140a67d37edbfeb2dc4d795.tar.bz2
scala-ba5d59e9f697fc307140a67d37edbfeb2dc4d795.zip
- Removed scalac.util.Position
- Removed scalac.ast.parser.Sourcefile
Diffstat (limited to 'sources/scalac/util')
-rw-r--r--sources/scalac/util/Position.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/sources/scalac/util/Position.java b/sources/scalac/util/Position.java
deleted file mode 100644
index c2cd7f72d3..0000000000
--- a/sources/scalac/util/Position.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/* ____ ____ ____ ____ ______ *\
-** / __// __ \/ __// __ \/ ____/ SOcos COmpiles Scala **
-** __\_ \/ /_/ / /__/ /_/ /\_ \ (c) 2002, LAMP/EPFL **
-** /_____/\____/\___/\____/____/ **
-** **
-** $Id$
-\* */
-
-package scalac.util;
-
-
-public final class Position {
-
-/** source file positions are integers in the format:
- * line-number << LINESHIFT + column-number
- * NOPOS represents an undefined position.
- */
- public static final int LINESHIFT = 10;
- public static final int FILESHIFT = 26;
- public static final int COLUMNMASK = 1023;
- public static final int LINEMASK = 0xffff;
-
-/** predefined positions
- */
- public static final int NOPOS = 0;
-
-/** first position in a source file
- */
- public static final int FIRSTPOS = (1 << LINESHIFT) + 1;
-
-/** encode a line and column number into a single int
- */
- public static int encode(int line, int col, int file) {
- return (file << FILESHIFT) | (line << LINESHIFT) | col;
- }
-
-/** get the file id of an encoded position
- */
- public static int file(int pos) {
- return pos >>> FILESHIFT;
- }
-
-/** get the line number out of an encoded position
- */
- public static int line(int pos) {
- return (pos >>> LINESHIFT) & LINEMASK;
- }
-
-/** return the column number of an encoded position
- */
- public static int column(int pos) {
- return pos & COLUMNMASK;
- }
-}