summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2005-12-13 11:31:38 +0000
committermihaylov <mihaylov@epfl.ch>2005-12-13 11:31:38 +0000
commit41c615a461ca7d6cdbd226334fb3958e9d139b2c (patch)
tree0fd512fdf7ecbea85ac9aad2ec324900a0ebde38
parent03698af2fe2175d549188f8c72fdafcaa522a3b8 (diff)
downloadscala-41c615a461ca7d6cdbd226334fb3958e9d139b2c.tar.gz
scala-41c615a461ca7d6cdbd226334fb3958e9d139b2c.tar.bz2
scala-41c615a461ca7d6cdbd226334fb3958e9d139b2c.zip
added an entry for the scala.serializable attri...
added an entry for the scala.serializable attribute
-rwxr-xr-xsources/scala/tools/nsc/symtab/Definitions.scala8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/scala/tools/nsc/symtab/Definitions.scala b/sources/scala/tools/nsc/symtab/Definitions.scala
index 04606ce168..36d34f76f1 100755
--- a/sources/scala/tools/nsc/symtab/Definitions.scala
+++ b/sources/scala/tools/nsc/symtab/Definitions.scala
@@ -113,7 +113,7 @@ import Flags._;
def isFunctionType(tp: Type): boolean = tp match {
case TypeRef(_, sym, args) =>
((args.length > 0) && (args.length - 1 <= MaxFunctionArity) &&
- (sym == FunctionClass(args.length - 1)))
+ (sym == FunctionClass(args.length - 1)))
case _ =>
false
}
@@ -166,6 +166,10 @@ import Flags._;
def BoxedUnit_UNIT = getMember(BoxedUnitModule, "UNIT");
var ObjectRefClass: Symbol = _;
+ // special attributes
+ var SerializableAttr: Type = _;
+
+
def getModule(fullname: Name): Symbol =
getModuleOrClass(fullname, true);
@@ -406,6 +410,8 @@ import Flags._;
BoxedUnitClass = getClass("scala.runtime.BoxedUnit");
BoxedUnitModule = getModule("scala.runtime.BoxedUnit");
ObjectRefClass = getClass("scala.runtime.ObjectRef");
+
+ SerializableAttr = getClass("scala.serializable").tpe;
}
}
}