diff options
Diffstat (limited to 'src/library/scala/runtime/SymtabAttribute.cs')
-rw-r--r-- | src/library/scala/runtime/SymtabAttribute.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/library/scala/runtime/SymtabAttribute.cs b/src/library/scala/runtime/SymtabAttribute.cs new file mode 100644 index 0000000000..fcb273a857 --- /dev/null +++ b/src/library/scala/runtime/SymtabAttribute.cs @@ -0,0 +1,40 @@ +/* __ *\ +** ________ ___ / / ___ Scala API ** +** / __/ __// _ | / / / _ | (c) 2002-2005, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | ** +** /____/\___/_/ |_/____/_/ | | ** +** |/ ** +\* */ + +// $Id$ + +using System; + +namespace scala.runtime +{ + /// <summary> + /// Stores the symbol table for every top-level Scala class. + /// </summary> + + [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] + public class SymtabAttribute : Attribute + { + // stores scalac symbol table + public readonly byte[] symtab; + + // indicates if the type should be considered by the compiler; + // used for synthetic classes introduced by the Scala compiler + public readonly bool shouldLoadClass; + + public SymtabAttribute(byte[] symtab) + { + this.symtab = symtab; + this.shouldLoadClass = true; + } + + public SymtabAttribute() { + this.symtab = new byte[0]; + this.shouldLoadClass = false; + } + } +} |