diff options
author | paltherr <paltherr@epfl.ch> | 2003-06-24 08:57:30 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-06-24 08:57:30 +0000 |
commit | 9753961477f1f648656ec130675ed1b78f4f73b1 (patch) | |
tree | 3d0d93f692d5f7ca3a0eedfe1b0b74eab6dd027d /sources/scalac/ast/parser | |
parent | 3102d7d40fcc65e6174e84d5424cd45d688c0257 (diff) | |
download | scala-9753961477f1f648656ec130675ed1b78f4f73b1.tar.gz scala-9753961477f1f648656ec130675ed1b78f4f73b1.tar.bz2 scala-9753961477f1f648656ec130675ed1b78f4f73b1.zip |
- Removed file from encoded positions
Diffstat (limited to 'sources/scalac/ast/parser')
-rw-r--r-- | sources/scalac/ast/parser/Scanner.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sources/scalac/ast/parser/Scanner.java b/sources/scalac/ast/parser/Scanner.java index 3555dcad5e..c2eb82a27e 100644 --- a/sources/scalac/ast/parser/Scanner.java +++ b/sources/scalac/ast/parser/Scanner.java @@ -66,10 +66,6 @@ public class Scanner extends TokenData { public int cline; public int ccol; - /** the current sourcefile - */ - public SourceFile currentSource; - /** a buffer for character and string literals */ protected byte[] lit = new byte[64]; @@ -84,7 +80,7 @@ public class Scanner extends TokenData { */ public Scanner(Unit unit) { this.unit = unit; - buf = (currentSource = unit.source).bytes(); + buf = unit.source.bytes(); cline = 1; bp = -1; ccol = 0; @@ -167,7 +163,7 @@ public class Scanner extends TokenData { */ public void fetchToken() { if (token == EOF) return; - lastpos = Position.encode(currentSource, cline, ccol); + lastpos = Position.encode(cline, ccol); int index = bp; while(true) { switch (ch) { @@ -194,7 +190,7 @@ public class Scanner extends TokenData { nextch(); break; default: - pos = Position.encode(currentSource, cline, ccol); + pos = Position.encode(cline, ccol); index = bp; switch (ch) { case 'A': case 'B': case 'C': case 'D': case 'E': @@ -574,7 +570,7 @@ public class Scanner extends TokenData { putch(ch); break; default: - syntaxError(Position.encode(currentSource, cline, ccol) - 1, "invalid escape character"); + syntaxError(Position.encode(cline, ccol) - 1, "invalid escape character"); putch(ch); } nextch(); |