src/Pure/codegen.ML
changeset 42425 2aa907d5ee4f
parent 42411 ff997038e8eb
child 42426 7ec150fcf3dc
--- a/src/Pure/codegen.ML	Wed Apr 20 13:17:25 2011 +0200
+++ b/src/Pure/codegen.ML	Wed Apr 20 13:54:07 2011 +0200
@@ -489,9 +489,11 @@
 
 fun mk_deftab thy =
   let
-    val axmss = map (fn thy' => (Context.theory_name thy', Theory.axiom_table thy'))
-      (thy :: Theory.ancestors_of thy);
-    fun add_def thyname (name, t) = (case dest_prim_def t of
+    val axmss =
+      map (fn thy' => (Context.theory_name thy', Theory.axiom_table thy'))
+        (Theory.nodes_of thy);
+    fun add_def thyname (name, t) =
+      (case dest_prim_def t of
         NONE => I
       | SOME (s, (T, _)) => Symtab.map_default (s, [])
           (cons (T, (thyname, Thm.axiom thy name))));