aboutsummaryrefslogtreecommitdiff
path: root/src/scala/annotation
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-25 13:41:22 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-25 13:41:44 +0200
commit8cec943e961c4d82c132855e56d1747cf968830b (patch)
tree93d23149c9c9ffaac331cee99535bdeb197c4c90 /src/scala/annotation
parent7ebc9e2f74e5452749a39f9423de0ba4bd91d7c2 (diff)
downloaddotty-8cec943e961c4d82c132855e56d1747cf968830b.tar.gz
dotty-8cec943e961c4d82c132855e56d1747cf968830b.tar.bz2
dotty-8cec943e961c4d82c132855e56d1747cf968830b.zip
Allow separate compilation of Dotty using TASTY
Classfile parser now reads TASTY attributes or annotations and unpickles them in order to allow for separate compilation.
Diffstat (limited to 'src/scala/annotation')
-rw-r--r--src/scala/annotation/internal/TASTYLongSignature.java12
-rw-r--r--src/scala/annotation/internal/TASTYSignature.java12
2 files changed, 24 insertions, 0 deletions
diff --git a/src/scala/annotation/internal/TASTYLongSignature.java b/src/scala/annotation/internal/TASTYLongSignature.java
new file mode 100644
index 000000000..2278da258
--- /dev/null
+++ b/src/scala/annotation/internal/TASTYLongSignature.java
@@ -0,0 +1,12 @@
+package scala.annotation.internal;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+public @interface TASTYLongSignature {
+ public String[] bytes();
+}
diff --git a/src/scala/annotation/internal/TASTYSignature.java b/src/scala/annotation/internal/TASTYSignature.java
new file mode 100644
index 000000000..a6372f008
--- /dev/null
+++ b/src/scala/annotation/internal/TASTYSignature.java
@@ -0,0 +1,12 @@
+package scala.annotation.internal;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+public @interface TASTYSignature {
+ public String bytes();
+}