[Swift-commit] r5925 - trunk/src/org/griphyn/vdl/engine

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Sat Sep 15 03:40:24 CDT 2012


Author: hategan
Date: 2012-09-15 03:40:23 -0500 (Sat, 15 Sep 2012)
New Revision: 5925

Modified:
   trunk/src/org/griphyn/vdl/engine/VariableScope.java
Log:
don't clean up primitive data

Modified: trunk/src/org/griphyn/vdl/engine/VariableScope.java
===================================================================
--- trunk/src/org/griphyn/vdl/engine/VariableScope.java	2012-09-15 08:38:31 UTC (rev 5924)
+++ trunk/src/org/griphyn/vdl/engine/VariableScope.java	2012-09-15 08:40:23 UTC (rev 5925)
@@ -387,7 +387,12 @@
 
     public List<String> getCleanups() {
         List<String> cleanups = new ArrayList<String>();
-        cleanups.addAll(variables);
+        for (String var : variables) {
+            String type = getVariableType(var);
+            if (!org.griphyn.vdl.type.Types.isPrimitive(type)) {
+                cleanups.add(var);
+            }
+        }
         return cleanups;
     }
     




More information about the Swift-commit mailing list