equal
deleted
inserted
replaced
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 |