diff options
-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;
+ }
+ }
+}
|