]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/effects/EffectConstructor.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / codegen / effects / EffectConstructor.java
diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/effects/EffectConstructor.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/effects/EffectConstructor.java
new file mode 100644 (file)
index 0000000..d008e85
--- /dev/null
@@ -0,0 +1,24 @@
+package org.simantics.scl.compiler.internal.codegen.effects;\r
+\r
+import java.util.ArrayList;\r
+import java.util.List;\r
+\r
+import org.simantics.scl.compiler.types.TCon;\r
+\r
+public class EffectConstructor {\r
+    public final TCon name;\r
+    ArrayList<ThreadLocalVariable> threadLocalVariables = \r
+            new ArrayList<ThreadLocalVariable>();\r
+    \r
+    public EffectConstructor(TCon name) {\r
+        this.name = name;\r
+    }\r
+\r
+    public List<ThreadLocalVariable> getThreadLocalVariables() {\r
+        return threadLocalVariables;\r
+    }\r
+    \r
+    public void addThreadLocalVariable(ThreadLocalVariable var) {\r
+        threadLocalVariables.add(var);\r
+    }\r
+}\r