src/Pure/Isar/theory_target.ML
changeset 27690 24738db98d34
parent 27315 5d24085e0858
child 28083 103d9282a946
--- a/src/Pure/Isar/theory_target.ML	Tue Jul 29 08:15:38 2008 +0200
+++ b/src/Pure/Isar/theory_target.ML	Tue Jul 29 08:15:39 2008 +0200
@@ -70,7 +70,7 @@
 
 (* target declarations *)
 
-fun target_decl add (Target {target, ...}) d lthy =
+fun target_decl add (Target {target, is_class, ...}) d lthy =
   let
     val d' = Morphism.transform (LocalTheory.target_morphism lthy) d;
     val d0 = Morphism.form d';
@@ -82,6 +82,7 @@
     else
       lthy
       |> LocalTheory.target (add target d')
+      (*|> is_class ? LocalTheory.raw_theory (Class.declaration target d')*)
   end;
 
 val type_syntax = target_decl Locale.add_type_syntax;
@@ -147,7 +148,7 @@
   |> ProofContext.note_thmss_i kind facts
   ||> ProofContext.restore_naming ctxt;
 
-fun notes (Target {target, is_locale, ...}) kind facts lthy =
+fun notes (Target {target, is_locale, is_class, ...}) kind facts lthy =
   let
     val thy = ProofContext.theory_of lthy;
     val full = LocalTheory.full_name lthy;
@@ -166,10 +167,9 @@
       (Sign.qualified_names
         #> PureThy.note_thmss_grouped kind (LocalTheory.group_of lthy) global_facts #> snd
         #> Sign.restore_naming thy)
-
     |> not is_locale ? LocalTheory.target (note_local kind global_facts #> snd)
     |> is_locale ? LocalTheory.target (Locale.add_thmss target kind target_facts)
-
+    (*|> is_class ? LocalTheory.raw_theory (Class.note target kind target_facts #> snd)*)
     |> note_local kind local_facts
   end;