diff options
author | mihaylov <mihaylov@epfl.ch> | 2004-09-02 14:43:22 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2004-09-02 14:43:22 +0000 |
commit | 5c259cbc76648b0e36e27b47e07a6066704c3f52 (patch) | |
tree | 74a056ffc84e0c8a831e81d91fb22d4a7e2f502e /sources | |
parent | 89942c7a7fb6ef09e4f8358a1da0f3a1e1d1d749 (diff) | |
download | scala-5c259cbc76648b0e36e27b47e07a6066704c3f52.tar.gz scala-5c259cbc76648b0e36e27b47e07a6066704c3f52.tar.bz2 scala-5c259cbc76648b0e36e27b47e07a6066704c3f52.zip |
Initial import.
Diffstat (limited to 'sources')
-rw-r--r-- | sources/scala/runtime/MetaAttribute.cs | 22 | ||||
-rw-r--r-- | sources/scala/runtime/SymtabAttribute.cs | 18 |
2 files changed, 40 insertions, 0 deletions
diff --git a/sources/scala/runtime/MetaAttribute.cs b/sources/scala/runtime/MetaAttribute.cs new file mode 100644 index 0000000000..d9727d0f06 --- /dev/null +++ b/sources/scala/runtime/MetaAttribute.cs @@ -0,0 +1,22 @@ +using System;
+
+namespace scala.runtime
+{
+ /// <summary>
+ /// Stores additional meta-information about classes and members.
+ /// Used to augment type information in classes from the scala
+ /// library written in Java.
+ /// </summary>
+
+ [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface | AttributeTargets.Field
+ | AttributeTargets.Constructor | AttributeTargets.Method,
+ AllowMultiple = false, Inherited = false)]
+ public class MetaAttribute : Attribute
+ {
+ public readonly string meta;
+ public MetaAttribute(string meta)
+ {
+ this.meta = meta;
+ }
+ }
+}
\ No newline at end of file diff --git a/sources/scala/runtime/SymtabAttribute.cs b/sources/scala/runtime/SymtabAttribute.cs new file mode 100644 index 0000000000..a4cefa1327 --- /dev/null +++ b/sources/scala/runtime/SymtabAttribute.cs @@ -0,0 +1,18 @@ +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
+ {
+ public readonly byte[] symtab;
+ public SymtabAttribute(byte[] symtab)
+ {
+ this.symtab = symtab;
+ }
+ }
+}
|