From 0d71e3976b88075bee9a1ad62d416e9ebb6d0de5 Mon Sep 17 00:00:00 2001 From: paltherr Date: Wed, 29 Oct 2003 21:11:00 +0000 Subject: - Removed reference to Definitions.ROOT_TYPE --- sources/scala/tools/scaladoc/HTMLGenerator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sources') diff --git a/sources/scala/tools/scaladoc/HTMLGenerator.java b/sources/scala/tools/scaladoc/HTMLGenerator.java index fc718f0e40..e97c6f3f1e 100644 --- a/sources/scala/tools/scaladoc/HTMLGenerator.java +++ b/sources/scala/tools/scaladoc/HTMLGenerator.java @@ -224,6 +224,7 @@ public class HTMLGenerator { protected final Symbol helpPage = new NoSymbol(); private final Symbol JAVALANG; // !!! remove ? + private final Type ROOT_TYPE; // !!! remove ? /** * Creates a new instance. @@ -238,6 +239,7 @@ public class HTMLGenerator { this.anchors = Anchors.apply(tree); this.JAVALANG = global.definitions.getClass(Names.java_lang); + this.ROOT_TYPE = global.definitions.ROOT.thisType(); assert global.args instanceof HTMLGeneratorCommand; HTMLGeneratorCommand args = (HTMLGeneratorCommand) global.args; this.representation = new HTMLRepresentation( @@ -1045,7 +1047,7 @@ public class HTMLGenerator { if (pre1 == null && args.length == 0 && isReferenced(sym)) return null; else { - pre1 = pre1 == null ? global.definitions.ROOT_TYPE : pre1; + pre1 = pre1 == null ? ROOT_TYPE : pre1; return Type.typeRef(pre1, sym, args); } case SingleType(Type pre, Symbol sym): @@ -1056,9 +1058,9 @@ public class HTMLGenerator { return null; } else - return Type.singleType(global.definitions.ROOT_TYPE, sym); + return Type.singleType(ROOT_TYPE, sym); else - return Type.singleType(global.definitions.ROOT_TYPE, sym); + return Type.singleType(ROOT_TYPE, sym); } else return Type.singleType(pre1, sym); -- cgit v1.2.3