summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-11-22 16:15:40 +0000
committerpaltherr <paltherr@epfl.ch>2004-11-22 16:15:40 +0000
commit92bbd4610220cd1415223723ffb118200a66e5cc (patch)
tree650407425a7be216789ab9f9e1a88c89a89932cd /sources
parentd953b81b54ecff1760a2fa856304a95d9c9f4f97 (diff)
downloadscala-92bbd4610220cd1415223723ffb118200a66e5cc.tar.gz
scala-92bbd4610220cd1415223723ffb118200a66e5cc.tar.bz2
scala-92bbd4610220cd1415223723ffb118200a66e5cc.zip
- Fixed case of Int and Unit
- Removed tabs
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/tools/scalac/ast/printer/HTMLPrinter.scala32
1 files changed, 16 insertions, 16 deletions
diff --git a/sources/scala/tools/scalac/ast/printer/HTMLPrinter.scala b/sources/scala/tools/scalac/ast/printer/HTMLPrinter.scala
index 0fd59ed2f1..5f497dd0ec 100644
--- a/sources/scala/tools/scalac/ast/printer/HTMLPrinter.scala
+++ b/sources/scala/tools/scalac/ast/printer/HTMLPrinter.scala
@@ -33,7 +33,7 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
protected var outSectionLevel = 1;
protected var started = false;
- override def begin(): unit = {
+ override def begin(): Unit = {
assert(!started);
super.begin();
@@ -49,7 +49,7 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
started = true;
}
- override def end(): unit = {
+ override def end(): Unit = {
assert(started);
out.println("</body>");
@@ -59,12 +59,12 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
started = false;
}
- override def beginSection(level: int, title: String) = {
+ override def beginSection(level: Int, title: String) = {
outSectionLevel = Math.min(level, 4);
beginSection1(outSectionLevel, title);
}
- protected def beginSection1(level: int, title: String): unit = {
+ protected def beginSection1(level: Int, title: String): Unit = {
if (level == 1)
out.println("<hr/>");
val tag: String = "h" + level;
@@ -73,11 +73,11 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
endTag(tag);
}
- protected def startTag(tag: String): unit = {
+ protected def startTag(tag: String): Unit = {
out.print('<'); out.print(tag); out.print('>');
}
- protected def startTag(tag: String, attr1: String, val1: String): unit = {
+ protected def startTag(tag: String, attr1: String, val1: String): Unit = {
out.print('<');
out.print(tag);
out.print(' ');
@@ -87,19 +87,19 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
out.print("\">");
}
- protected def endTag(tag: String): unit = {
+ protected def endTag(tag: String): Unit = {
out.print("</"); out.print(tag); out.print(">");
}
- protected def startSpan(cls: String): unit = {
+ protected def startSpan(cls: String): Unit = {
startTag("span", "class", cls);
}
- protected def endSpan(): unit = {
+ protected def endSpan(): Unit = {
endTag("span");
}
- override protected def printString(str: String): unit = {
+ override protected def printString(str: String): Unit = {
for (val i <- Iterator.range(0, str.length())) {
val c = str.charAt(i);
val entity: String = c match {
@@ -132,7 +132,7 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
return "#" + anchorId.toString();
}
- override protected def print(text: Text): unit = text match {
+ override protected def print(text: Text): Unit = text match {
case Keyword(name) =>
startSpan("kw");
printString(name);
@@ -145,13 +145,13 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
val defined = (usage == Definition);
if (defined) startSpan("idDef");
if (symbol != null) {
- val attr = if (defined) "name" else "href";
- startTag("a", attr, symbolAnchor(symbol, usage));
+ val attr = if (defined) "name" else "href";
+ startTag("a", attr, symbolAnchor(symbol, usage));
if (usage == Use)
printString(symbol.simpleName().toString());
else
printString(symbol.name.toString());
- endTag("a");
+ endTag("a");
} else
printString(name.toString());
if (defined) endSpan();
@@ -163,12 +163,12 @@ class HTMLTreePrinter(global0: scalac_Global, out0: PrintWriter)
override def print(str: String) = super.print(str);
override def print(tree: Tree) = super.print(tree);
- override protected def printUnitHeader(unit: CompilationUnit): unit = {
+ override protected def printUnitHeader(unit: CompilationUnit): Unit = {
beginSection1(outSectionLevel + 1, unit.source.toString());
startTag("pre");
}
- override protected def printUnitFooter(unit: CompilationUnit): unit = {
+ override protected def printUnitFooter(unit: CompilationUnit): Unit = {
endTag("pre");
}
}