equal
deleted
inserted
replaced
790 in (sorting_report, (map o map_types) (replace_sortsT get_sort) tms) end; |
790 in (sorting_report, (map o map_types) (replace_sortsT get_sort) tms) end; |
791 |
791 |
792 fun check_tfree ctxt v = |
792 fun check_tfree ctxt v = |
793 let |
793 let |
794 val (sorting_report, [TFree a]) = prepare_sortsT ctxt [TFree v]; |
794 val (sorting_report, [TFree a]) = prepare_sortsT ctxt [TFree v]; |
795 val _ = if Context_Position.is_visible ctxt then Output.report sorting_report else (); |
795 val _ = if Context_Position.reports_enabled ctxt then Output.report sorting_report else (); |
796 in a end; |
796 in a end; |
797 |
797 |
798 end; |
798 end; |
799 |
799 |
800 |
800 |
1101 |
1101 |
1102 fun check_mixfix ctxt (b, T, mx) = |
1102 fun check_mixfix ctxt (b, T, mx) = |
1103 let |
1103 let |
1104 val ([x], ctxt') = Variable.add_fixes_binding [Binding.reset_pos b] ctxt; |
1104 val ([x], ctxt') = Variable.add_fixes_binding [Binding.reset_pos b] ctxt; |
1105 val mx' = Mixfix.reset_pos mx; |
1105 val mx' = Mixfix.reset_pos mx; |
1106 val _ = add_syntax [(x, T, if Context_Position.is_visible ctxt then mx else mx')] ctxt'; |
1106 val _ = add_syntax [(x, T, if Context_Position.reports_enabled ctxt then mx else mx')] ctxt'; |
1107 in mx' end; |
1107 in mx' end; |
1108 |
1108 |
1109 fun prep_var prep_typ internal (b, raw_T, mx) ctxt = |
1109 fun prep_var prep_typ internal (b, raw_T, mx) ctxt = |
1110 let |
1110 let |
1111 val x = check_var internal b; |
1111 val x = check_var internal b; |