diff options
author | paltherr <paltherr@epfl.ch> | 2003-06-16 12:37:20 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-06-16 12:37:20 +0000 |
commit | 9c9dfb24a48f11e175d8f82417e7b9c7ab78f7c7 (patch) | |
tree | eada2530c9586b6c61afaedffa30c023a4d12c49 /sources/scalac/util/OptionParser.java | |
parent | 97e75ddc91094834f60b868e16e14d3417359791 (diff) | |
download | scala-9c9dfb24a48f11e175d8f82417e7b9c7ab78f7c7.tar.gz scala-9c9dfb24a48f11e175d8f82417e7b9c7ab78f7c7.tar.bz2 scala-9c9dfb24a48f11e175d8f82417e7b9c7ab78f7c7.zip |
- Made SourceFile and Position scala-independan...
- Made SourceFile and Position scala-independant (moved them to
ch.epfl.lamp.util) - Added position arguments to methods of class
Reporter - Changed printing of positions to display the whole path not
only the file name.
Diffstat (limited to 'sources/scalac/util/OptionParser.java')
-rw-r--r-- | sources/scalac/util/OptionParser.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/scalac/util/OptionParser.java b/sources/scalac/util/OptionParser.java index 4796c96f93..c2c3af6e6f 100644 --- a/sources/scalac/util/OptionParser.java +++ b/sources/scalac/util/OptionParser.java @@ -8,6 +8,8 @@ package scalac.util; +import ch.epfl.lamp.util.Position; + import java.text.Format; import java.text.MessageFormat; import java.util.List; @@ -106,11 +108,11 @@ public class CommandParser { } public void error(String message) { - reporter.error(product + ": " + message); + reporter.error(new Position(product), message); } public void warning(String message) { - reporter.warning(product + ": " + message); + reporter.warning(new Position(product), message); } } |