src/Pure/Isar/method.ML
changeset 78072 001739cb8d08
parent 77908 a6bd716a6124
child 78080 b0bcba8afdd8
--- a/src/Pure/Isar/method.ML	Thu May 18 15:34:01 2023 +0200
+++ b/src/Pure/Isar/method.ML	Thu May 18 17:21:29 2023 +0200
@@ -335,8 +335,9 @@
                ML_Lex.read_source source @ ML_Lex.read ")))")
           |> the_tactic;
       in
-        fn phi => set_tactic (fn _ => Context.setmp_generic_context (SOME context) (tac phi))
-      end)) >> (fn decl => Morphism.form (the_tactic (Morphism.form decl context))));
+        Morphism.entity (fn phi =>
+          set_tactic (fn _ => Context.setmp_generic_context (SOME context) (tac phi)))
+      end)) >> (fn decl => Morphism.form_entity (the_tactic (Morphism.form decl context))));
 
 
 (* method facts *)
@@ -608,9 +609,10 @@
                   Attrib.partial_evaluation ctxt [((Binding.name "dummy", []), thms)]
                   |> map (fn (_, bs) => ((Binding.empty, [Attrib.internal (K attribute)]), bs));
 
-                fun decl phi =
-                  Context.mapping I init #>
-                  Attrib.generic_notes "" (Attrib.transform_facts phi facts) #> snd;
+                val decl =
+                  Morphism.entity (fn phi =>
+                    Context.mapping I init #>
+                    Attrib.generic_notes "" (Attrib.transform_facts phi facts) #> snd);
 
                 val modifier_report =
                   (#1 (Token.range_of modifier_toks),