src/Pure/global_theory.ML
changeset 48992 0518bf89c777
parent 47337 bd24e466bef9
child 49010 72808e956879
equal deleted inserted replaced
48991:0350245dec1c 48992:0518bf89c777
   101       | name => name);
   101       | name => name);
   102     val res = Facts.lookup context facts name;
   102     val res = Facts.lookup context facts name;
   103     val _ = Theory.check_thy thy;
   103     val _ = Theory.check_thy thy;
   104   in
   104   in
   105     (case res of
   105     (case res of
   106       NONE => error ("Unknown fact " ^ quote name ^ Position.str_of pos)
   106       NONE => error ("Unknown fact " ^ quote name ^ Position.here pos)
   107     | SOME (static, ths) =>
   107     | SOME (static, ths) =>
   108         (Context_Position.report_generic context pos (Name_Space.markup (Facts.space_of facts) name);
   108         (Context_Position.report_generic context pos (Name_Space.markup (Facts.space_of facts) name);
   109          if static then ()
   109          if static then ()
   110          else Context_Position.report_generic context pos (Isabelle_Markup.dynamic_fact name);
   110          else Context_Position.report_generic context pos (Isabelle_Markup.dynamic_fact name);
   111          Facts.select xthmref (map (Thm.transfer thy) ths)))
   111          Facts.select xthmref (map (Thm.transfer thy) ths)))