about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-05 11:23:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-05 11:23:20 -0700
commit0d9d275314f98dceec1118e80eaab89a00c3ad3e (patch)
tree6c05af05479100eee8a12f9ffc11e927d97d9bf5
parentcbbcd47fa4c5571f3e72de0eaa5a43f466aae2fa (diff)
downloadmu-0d9d275314f98dceec1118e80eaab89a00c3ad3e.tar.gz
2154 - check types only after loading all layers
Follow-up to 2147, which switched transform_all to only run once, after
loading all layers.
-rw-r--r--011load.cc1
-rw-r--r--012transform.cc1
-rw-r--r--020run.cc2
-rw-r--r--030container.cc2
4 files changed, 3 insertions, 3 deletions
diff --git a/011load.cc b/011load.cc
index d3455217..1e43ead0 100644
--- a/011load.cc
+++ b/011load.cc
@@ -37,7 +37,6 @@ vector<recipe_ordinal> load(istream& in) {
       raise << "unknown top-level command: " << command << '\n' << end();
     }
   }
-  // End Load Sanity Checks
   return result;
 }
 
diff --git a/012transform.cc b/012transform.cc
index 614e53ed..59af0e22 100644
--- a/012transform.cc
+++ b/012transform.cc
@@ -25,6 +25,7 @@ void transform_all() {
     }
   }
   parse_int_reagents();  // do this after all other transforms have run
+  // End Transform
 }
 
 void parse_int_reagents() {
diff --git a/020run.cc b/020run.cc
index a194b7ab..7c2da3b7 100644
--- a/020run.cc
+++ b/020run.cc
@@ -220,8 +220,8 @@ transform_all();
 // helper for tests
 void run(string form) {
   vector<recipe_ordinal> tmp = load(form);
-  if (tmp.empty()) return;
   transform_all();
+  if (tmp.empty()) return;
   run(tmp.front());
 }
 
diff --git a/030container.cc b/030container.cc
index c89353a3..8505f475 100644
--- a/030container.cc
+++ b/030container.cc
@@ -455,7 +455,7 @@ container foo [
 +parse:   element name: y
 +parse:   type: 1
 
-:(before "End Load Sanity Checks")
+:(before "End Transform")
 check_container_field_types();
 
 :(code)