summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2006-08-30 17:25:45 +0000
committermichelou <michelou@epfl.ch>2006-08-30 17:25:45 +0000
commit33637d5c2f9c10c027ec16e8be31c36fb0f2c9ff (patch)
treeeeb1939463aba37ddc980d51f6de4be93cba26e5 /src/compiler/scala/tools/nsc/ast/TreeInfo.scala
parent30ed1a370231b6ad6c339bc7b8cc0dad2700b4c9 (diff)
downloadscala-33637d5c2f9c10c027ec16e8be31c36fb0f2c9ff.tar.gz
scala-33637d5c2f9c10c027ec16e8be31c36fb0f2c9ff.tar.bz2
scala-33637d5c2f9c10c027ec16e8be31c36fb0f2c9ff.zip
removed leading/trailing tabs/blanks in ast/*.s...
removed leading/trailing tabs/blanks in ast/*.scala
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeInfo.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeInfo.scala21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
index 62bddd488a..e1a63d699e 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
@@ -8,13 +8,18 @@ package scala.tools.nsc.ast
import symtab.Flags._
+/** This class ...
+ *
+ * @author Martin Odersky
+ * @version 1.0
+ */
abstract class TreeInfo {
- val global: Global;
- import global._;
+ val global: Global
+ import global._
- def isTerm(tree: Tree): boolean = tree.isTerm;
- def isType(tree: Tree): boolean = tree.isType;
+ def isTerm(tree: Tree): boolean = tree.isTerm
+ def isType(tree: Tree): boolean = tree.isType
def isOwnerDefinition(tree: Tree): boolean = tree match {
case PackageDef(_, _)
@@ -25,7 +30,7 @@ abstract class TreeInfo {
case _ => false
}
- def isDefinition(tree: Tree): boolean = tree.isDef;
+ def isDefinition(tree: Tree): boolean = tree.isDef
def isDeclaration(tree: Tree): boolean = tree match {
case DefDef(_, _, _, _, _, EmptyTree)
@@ -66,7 +71,7 @@ abstract class TreeInfo {
false
}
- /** Is tree a stable & pure expression?
+ /** Is tree a stable and pure expression?
*/
def isPureExpr(tree: Tree): boolean = tree match {
case EmptyTree
@@ -124,7 +129,7 @@ abstract class TreeInfo {
case _ :: stats1 =>
superCall(stats1, name)
case _ =>
- assert(false, "no supercall to " + mix + " in " + stats);
+ assert(false, "no supercall to " + mix + " in " + stats)
}
*/
/** Is name a left-associative operator? */
@@ -160,7 +165,7 @@ abstract class TreeInfo {
case _ => isDefaultCase(cdef)
}
- private def isSimple(tp: Type): boolean = true;
+ private def isSimple(tp: Type): boolean = true
/* If we have run-time types, and these are used for pattern matching,
we should replace this by something like: