summaryrefslogtreecommitdiff
path: root/sources/scalac/atree
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-11-05 16:35:15 +0000
committerpaltherr <paltherr@epfl.ch>2003-11-05 16:35:15 +0000
commit57875e803374bf38d8ff5006c76aa2bb87fc2958 (patch)
treecdda11feb60195393181cb0af0933c7ac0910a98 /sources/scalac/atree
parent49625177f16d47c1dc83b53f3f533808d6db3ca5 (diff)
downloadscala-57875e803374bf38d8ff5006c76aa2bb87fc2958.tar.gz
scala-57875e803374bf38d8ff5006c76aa2bb87fc2958.tar.bz2
scala-57875e803374bf38d8ff5006c76aa2bb87fc2958.zip
- Added field Unit.repository
Diffstat (limited to 'sources/scalac/atree')
-rw-r--r--sources/scalac/atree/ATreePrinter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/scalac/atree/ATreePrinter.java b/sources/scalac/atree/ATreePrinter.java
index 971ede91ac..779a6c853e 100644
--- a/sources/scalac/atree/ATreePrinter.java
+++ b/sources/scalac/atree/ATreePrinter.java
@@ -237,6 +237,12 @@ public class ATreePrinter {
//########################################################################
// Public Methods - Printing trees
+ /** Prints the unit. */
+ public ATreePrinter printUnit(Unit unit) {
+ println("// Scala source: " + unit.source);
+ return printRepository(unit.repository);
+ }
+
/** Prints the repository. */
public ATreePrinter printRepository(ARepository repository) {
AClass[] classes = repository.classes();