about summary refs log tree commit diff stats
path: root/046closure_name.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-10-29 12:04:30 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-10-29 12:04:30 -0700
commitd9025124a102fb7b421699e4e0463a3c62b261cb (patch)
tree6f54fe4380ab9057e5656213e8240cdc3b1e4904 /046closure_name.cc
parentdd2e01e43e971c9325b343fa3e554097e829c508 (diff)
downloadmu-d9025124a102fb7b421699e4e0463a3c62b261cb.tar.gz
2312
Diffstat (limited to '046closure_name.cc')
-rw-r--r--046closure_name.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/046closure_name.cc b/046closure_name.cc
index 69847fd5..6671d00b 100644
--- a/046closure_name.cc
+++ b/046closure_name.cc
@@ -26,7 +26,7 @@ recipe increment-counter [
   reply y:number/space:1
 ]
 
-+name: recipe increment-counter is surrounded by new-counter
++name: lexically surrounding space for recipe increment-counter comes from new-counter
 +mem: storing 5 in location 3
 
 //: To make this work, compute the recipe that provides names for the
@@ -40,6 +40,7 @@ map<recipe_ordinal, recipe_ordinal> Surrounding_space;
 
 :(code)
 void collect_surrounding_spaces(const recipe_ordinal r) {
+  trace(9991, "transform") << "--- collect surrounding spaces for recipe " << Recipe[r].name << end();
   for (long long int i = 0; i < SIZE(Recipe[r].steps); ++i) {
     const instruction& inst = Recipe[r].steps.at(i);
     if (inst.is_label) continue;
@@ -69,7 +70,7 @@ void collect_surrounding_spaces(const recipe_ordinal r) {
         raise_error << "recipe " << Recipe[r].name << " can have only one 'surrounding' recipe but has " << Recipe[Surrounding_space[r]].name << " and " << surrounding_recipe_name << '\n' << end();
         continue;
       }
-      trace("name") << "recipe " << Recipe[r].name << " is surrounded by " << surrounding_recipe_name << end();
+      trace(9993, "name") << "lexically surrounding space for recipe " << Recipe[r].name << " comes from " << surrounding_recipe_name << end();
       Surrounding_space[r] = Recipe_ordinal[surrounding_recipe_name];
     }
   }