src/Tools/Code/code_runtime.ML
changeset 77889 5db014c36f42
parent 75604 39df30349778
child 78705 fde0b195cb7d
equal deleted inserted replaced
77888:3c837f8c8ed5 77889:5db014c36f42
   716   | process_reflection (code, _) _ (SOME binding) thy =
   716   | process_reflection (code, _) _ (SOME binding) thy =
   717       let
   717       let
   718         val code_binding = Path.map_binding Code_Target.code_path binding;
   718         val code_binding = Path.map_binding Code_Target.code_path binding;
   719         val preamble =
   719         val preamble =
   720           "(* Generated from " ^
   720           "(* Generated from " ^
   721             Path.implode (Resources.thy_path (Path.basic (Context.theory_name thy))) ^
   721             Path.implode (Resources.thy_path (Path.basic (Context.theory_base_name thy))) ^
   722           "; DO NOT EDIT! *)";
   722           "; DO NOT EDIT! *)";
   723         val thy' = Code_Target.export code_binding (Bytes.string (preamble ^ "\n\n" ^ code)) thy;
   723         val thy' = Code_Target.export code_binding (Bytes.string (preamble ^ "\n\n" ^ code)) thy;
   724         val _ = Code_Target.code_export_message thy';
   724         val _ = Code_Target.code_export_message thy';
   725       in thy' end;
   725       in thy' end;
   726 
   726