src/Pure/ML/ml_thms.ML
changeset 58045 ab2483fad861
parent 58033 154ae20ead35
child 58866 f81e11391562
--- a/src/Pure/ML/ml_thms.ML	Mon Aug 25 08:45:32 2014 +0200
+++ b/src/Pure/ML/ml_thms.ML	Mon Aug 25 12:58:20 2014 +0200
@@ -44,10 +44,10 @@
     (fn _ => fn raw_srcs => fn ctxt =>
       let
         val i = serial ();
-        val srcs = map (Attrib.check_src ctxt) raw_srcs;
-        val _ = map (Attrib.attribute ctxt) srcs;
+
         val (a, ctxt') = ctxt
-          |> ML_Antiquotation.variant "attributes" ||> put_attributes (i, srcs);
+          |> ML_Antiquotation.variant "attributes"
+          ||> put_attributes (i, Attrib.check_attribs ctxt raw_srcs);
         val ml =
           ("val " ^ a ^ " = ML_Thms.the_attributes ML_context " ^
             string_of_int i ^ ";\n", "Isabelle." ^ a);