equal
deleted
inserted
replaced
342 val text_pos = put_id (Path.position thy_path); |
342 val text_pos = put_id (Path.position thy_path); |
343 val text_props = Position.properties_of text_pos; |
343 val text_props = Position.properties_of text_pos; |
344 |
344 |
345 val _ = remove_thy name; |
345 val _ = remove_thy name; |
346 val _ = writeln ("Loading theory " ^ quote name ^ required_by " " initiators); |
346 val _ = writeln ("Loading theory " ^ quote name ^ required_by " " initiators); |
347 val _ = Output.try_protocol_message (Markup.loading_theory name @ text_props) (XML.blob [text]); |
347 val _ = Output.try_protocol_message (Markup.loading_theory name @ text_props) [XML.blob [text]]; |
348 |
348 |
349 val _ = |
349 val _ = |
350 Position.setmp_thread_data (Position.id_only id) (fn () => |
350 Position.setmp_thread_data (Position.id_only id) (fn () => |
351 (parents, map #2 imports) |> ListPair.app (fn (thy, pos) => |
351 (parents, map #2 imports) |> ListPair.app (fn (thy, pos) => |
352 Context_Position.reports_global thy [(put_id pos, Theory.get_markup thy)])) (); |
352 Context_Position.reports_global thy [(put_id pos, Theory.get_markup thy)])) (); |
358 eval_thy options dir header text_pos text |
358 eval_thy options dir header text_pos text |
359 (if name = Context.PureN then [Context.the_global_context ()] else parents); |
359 (if name = Context.PureN then [Context.the_global_context ()] else parents); |
360 |
360 |
361 val timing_result = Timing.result timing_start; |
361 val timing_result = Timing.result timing_start; |
362 val timing_props = [Markup.theory_timing, (Markup.nameN, name)]; |
362 val timing_props = [Markup.theory_timing, (Markup.nameN, name)]; |
363 val _ = Output.try_protocol_message (timing_props @ Markup.timing_properties timing_result) [] |
363 val _ = Output.try_protocol_message (timing_props @ Markup.timing_properties timing_result) [] |
364 |
364 |
365 fun commit () = update_thy deps theory; |
365 fun commit () = update_thy deps theory; |
366 in |
366 in |
367 Result {theory = theory, exec_id = exec_id, present = present, commit = commit, weight = weight} |
367 Result {theory = theory, exec_id = exec_id, present = present, commit = commit, weight = weight} |
368 end; |
368 end; |