src/Tools/Code/code_runtime.ML
changeset 46737 09ab89658a5d
parent 45430 b8eb7a791dac
child 46947 b8c7eb0c2f89
equal deleted inserted replaced
46736:4dc7ddb47350 46737:09ab89658a5d
   308       |> fold (add_eval_constr o apsnd Code_Printer.str) constr_map
   308       |> fold (add_eval_constr o apsnd Code_Printer.str) constr_map
   309       |> fold (add_eval_const o apsnd Code_Printer.str) const_map
   309       |> fold (add_eval_const o apsnd Code_Printer.str) const_map
   310   | process_reflection (code, _) _ (SOME file_name) thy =
   310   | process_reflection (code, _) _ (SOME file_name) thy =
   311       let
   311       let
   312         val preamble =
   312         val preamble =
   313           "(* Generated from " ^ Path.implode (Thy_Header.thy_path (Context.theory_name thy))
   313           "(* Generated from " ^
   314           ^ "; DO NOT EDIT! *)";
   314             Path.implode (Thy_Load.thy_path (Path.basic (Context.theory_name thy))) ^
       
   315           "; DO NOT EDIT! *)";
   315         val _ = File.write (Path.explode file_name) (preamble ^ "\n\n" ^ code);
   316         val _ = File.write (Path.explode file_name) (preamble ^ "\n\n" ^ code);
   316       in
   317       in
   317         thy
   318         thy
   318       end;
   319       end;
   319 
   320